]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/hir/map/mod.rs
Take Const into account in HIR
[rust.git] / src / librustc / hir / map / mod.rs
index b6cf4c1b84d0c6454b91bfb8374518c31eef8756..e933e4b7180c49c525460f394a28a4f6c206e17b 100644 (file)
@@ -398,6 +398,7 @@ pub fn describe_def(&self, node_id: NodeId) -> Option<Def> {
                 Some(match param.kind {
                     GenericParamKind::Lifetime { .. } => Def::Local(param.id),
                     GenericParamKind::Type { .. } => Def::TyParam(self.local_def_id(param.id)),
+                    GenericParamKind::Const { .. } => Def::ConstParam(self.local_def_id(param.id)),
                 })
             }
         }