@@ -52,6 +52,7 @@ pub enum Def {
5252 AssociatedExistential ( DefId ) ,
5353 PrimTy ( hir:: PrimTy ) ,
5454 TyParam ( DefId ) ,
55+ ConstParam ( DefId ) ,
5556 SelfTy ( Option < DefId > /* trait */ , Option < DefId > /* impl */ ) ,
5657 ToolMod , // e.g., `rustfmt` in `#[rustfmt::skip]`
5758
@@ -265,7 +266,8 @@ impl Def {
265266 Def :: Fn ( id) | Def :: Mod ( id) | Def :: Static ( id, _) |
266267 Def :: Variant ( id) | Def :: VariantCtor ( id, ..) | Def :: Enum ( id) |
267268 Def :: TyAlias ( id) | Def :: TraitAlias ( id) |
268- Def :: AssociatedTy ( id) | Def :: TyParam ( id) | Def :: Struct ( id) | Def :: StructCtor ( id, ..) |
269+ Def :: AssociatedTy ( id) | Def :: TyParam ( id) | Def :: ConstParam ( id) | Def :: Struct ( id) |
270+ Def :: StructCtor ( id, ..) |
269271 Def :: Union ( id) | Def :: Trait ( id) | Def :: Method ( id) | Def :: Const ( id) |
270272 Def :: AssociatedConst ( id) | Def :: Macro ( id, ..) |
271273 Def :: Existential ( id) | Def :: AssociatedExistential ( id) | Def :: ForeignTy ( id) => {
@@ -322,6 +324,7 @@ impl Def {
322324 Def :: Const ( ..) => "constant" ,
323325 Def :: AssociatedConst ( ..) => "associated constant" ,
324326 Def :: TyParam ( ..) => "type parameter" ,
327+ Def :: ConstParam ( ..) => "const parameter" ,
325328 Def :: PrimTy ( ..) => "builtin type" ,
326329 Def :: Local ( ..) => "local variable" ,
327330 Def :: Upvar ( ..) => "closure capture" ,
0 commit comments