diff --git a/clippy_lints/src/utils/mod.rs b/clippy_lints/src/utils/mod.rs index e0ed66894..a3b0e928a 100644 --- a/clippy_lints/src/utils/mod.rs +++ b/clippy_lints/src/utils/mod.rs @@ -924,6 +924,7 @@ pub fn opt_def_id(def: Def) -> Option { Def::TyAlias(id) | Def::AssociatedTy(id) | Def::TyParam(id) | + Def::TyForeign(id) | Def::Struct(id) | Def::StructCtor(id, ..) | Def::Union(id) |