From 66f8fa320b9776c2008dcc9b3e6999c3074bea46 Mon Sep 17 00:00:00 2001 From: Hirokazu Hata Date: Sat, 9 Feb 2019 11:42:13 +0900 Subject: [PATCH] Add new Def type ConstParam --- clippy_lints/src/utils/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/clippy_lints/src/utils/mod.rs b/clippy_lints/src/utils/mod.rs index f4b1a2450..40daa2d0b 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, ..)