diff --git a/clippy_lints/src/utils/mod.rs b/clippy_lints/src/utils/mod.rs index f4b1a2450bf..40daa2d0b00 100644 --- a/clippy_lints/src/utils/mod.rs +++ b/clippy_lints/src/utils/mod.rs @@ -997,6 +997,7 @@ pub fn opt_def_id(def: Def) -> Option { | Def::TyAlias(id) | Def::AssociatedTy(id) | Def::TyParam(id) + | Def::ConstParam(id) | Def::ForeignTy(id) | Def::Struct(id) | Def::StructCtor(id, ..)