]> git.lizzy.rs Git - rust.git/commitdiff
Add new Def type ConstParam
authorHirokazu Hata <h.hata.ai.t@gmail.com>
Sat, 9 Feb 2019 02:42:13 +0000 (11:42 +0900)
committerHirokazu Hata <h.hata.ai.t@gmail.com>
Sat, 9 Feb 2019 02:42:13 +0000 (11:42 +0900)
clippy_lints/src/utils/mod.rs

index f4b1a2450bfe194fdc420fe1fda422c8420d2335..40daa2d0b0092e28992f76707477b2433253e509 100644 (file)
@@ -997,6 +997,7 @@ pub fn opt_def_id(def: Def) -> Option<DefId> {
         | Def::TyAlias(id)
         | Def::AssociatedTy(id)
         | Def::TyParam(id)
+        | Def::ConstParam(id)
         | Def::ForeignTy(id)
         | Def::Struct(id)
         | Def::StructCtor(id, ..)