Fix rustdoc: Referencing methods on extern_types does not resolve #78777: handle DefKind::ForeignTy variant
Fix rustdoc: Referencing methods on extern_types does not resolve #78777: handle DefKind::ForeignTy variant

graydon/rust,aidancully/rust,aidancully/rust,graydon/rust,aidancully/rust,aidancully/rust,aidancully/rust,graydon/rust,graydon/rust,graydon/rust,aidancully/rust,graydon/rust