@@ -52,6 +52,7 @@ pub enum Def {
52
52
AssociatedExistential ( DefId ) ,
53
53
PrimTy ( hir:: PrimTy ) ,
54
54
TyParam ( DefId ) ,
55
+ ConstParam ( DefId ) ,
55
56
SelfTy ( Option < DefId > /* trait */ , Option < DefId > /* impl */ ) ,
56
57
ToolMod , // e.g., `rustfmt` in `#[rustfmt::skip]`
57
58
@@ -265,7 +266,8 @@ impl Def {
265
266
Def :: Fn ( id) | Def :: Mod ( id) | Def :: Static ( id, _) |
266
267
Def :: Variant ( id) | Def :: VariantCtor ( id, ..) | Def :: Enum ( id) |
267
268
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, ..) |
269
271
Def :: Union ( id) | Def :: Trait ( id) | Def :: Method ( id) | Def :: Const ( id) |
270
272
Def :: AssociatedConst ( id) | Def :: Macro ( id, ..) |
271
273
Def :: Existential ( id) | Def :: AssociatedExistential ( id) | Def :: ForeignTy ( id) => {
@@ -322,6 +324,7 @@ impl Def {
322
324
Def :: Const ( ..) => "constant" ,
323
325
Def :: AssociatedConst ( ..) => "associated constant" ,
324
326
Def :: TyParam ( ..) => "type parameter" ,
327
+ Def :: ConstParam ( ..) => "const parameter" ,
325
328
Def :: PrimTy ( ..) => "builtin type" ,
326
329
Def :: Local ( ..) => "local variable" ,
327
330
Def :: Upvar ( ..) => "closure capture" ,
0 commit comments