@@ -227,8 +227,8 @@ impl DefKind {
227227 DefKind :: Trait => "trait" ,
228228 DefKind :: ForeignTy => "foreign type" ,
229229 DefKind :: AssocFn => "associated function" ,
230- DefKind :: Const { .. } => "constant" ,
231- DefKind :: AssocConst { .. } => "associated constant" ,
230+ DefKind :: Const => "constant" ,
231+ DefKind :: AssocConst => "associated constant" ,
232232 DefKind :: TyParam => "type parameter" ,
233233 DefKind :: ConstParam => "const parameter" ,
234234 DefKind :: Macro ( kinds) => kinds. descr ( ) ,
@@ -254,7 +254,7 @@ impl DefKind {
254254 pub fn article ( & self ) -> & ' static str {
255255 match * self {
256256 DefKind :: AssocTy
257- | DefKind :: AssocConst { .. }
257+ | DefKind :: AssocConst
258258 | DefKind :: AssocFn
259259 | DefKind :: Enum
260260 | DefKind :: OpaqueTy
@@ -281,12 +281,12 @@ impl DefKind {
281281 | DefKind :: TyParam => Some ( Namespace :: TypeNS ) ,
282282
283283 DefKind :: Fn
284- | DefKind :: Const { .. }
284+ | DefKind :: Const
285285 | DefKind :: ConstParam
286286 | DefKind :: Static { .. }
287287 | DefKind :: Ctor ( ..)
288288 | DefKind :: AssocFn
289- | DefKind :: AssocConst { .. } => Some ( Namespace :: ValueNS ) ,
289+ | DefKind :: AssocConst => Some ( Namespace :: ValueNS ) ,
290290
291291 DefKind :: Macro ( ..) => Some ( Namespace :: MacroNS ) ,
292292
@@ -327,11 +327,11 @@ impl DefKind {
327327 DefKind :: AssocTy => DefPathData :: TypeNs ( name. unwrap ( ) ) ,
328328
329329 DefKind :: Fn
330- | DefKind :: Const { .. }
330+ | DefKind :: Const
331331 | DefKind :: ConstParam
332332 | DefKind :: Static { .. }
333333 | DefKind :: AssocFn
334- | DefKind :: AssocConst { .. }
334+ | DefKind :: AssocConst
335335 | DefKind :: Field => DefPathData :: ValueNs ( name. unwrap ( ) ) ,
336336 DefKind :: Macro ( ..) => DefPathData :: MacroNs ( name. unwrap ( ) ) ,
337337 DefKind :: LifetimeParam => DefPathData :: LifetimeNs ( name. unwrap ( ) ) ,
@@ -349,7 +349,7 @@ impl DefKind {
349349 }
350350
351351 pub fn is_assoc ( self ) -> bool {
352- matches ! ( self , DefKind :: AssocConst { .. } | DefKind :: AssocFn | DefKind :: AssocTy )
352+ matches ! ( self , DefKind :: AssocConst | DefKind :: AssocFn | DefKind :: AssocTy )
353353 }
354354
355355 /// This is a "module" in name resolution sense.
@@ -375,11 +375,11 @@ impl DefKind {
375375 pub fn has_generics ( self ) -> bool {
376376 match self {
377377 DefKind :: AnonConst
378- | DefKind :: AssocConst { .. }
378+ | DefKind :: AssocConst
379379 | DefKind :: AssocFn
380380 | DefKind :: AssocTy
381381 | DefKind :: Closure
382- | DefKind :: Const { .. }
382+ | DefKind :: Const
383383 | DefKind :: Ctor ( ..)
384384 | DefKind :: Enum
385385 | DefKind :: Field
@@ -427,8 +427,8 @@ impl DefKind {
427427 | DefKind :: ForeignTy
428428 | DefKind :: TraitAlias
429429 | DefKind :: AssocTy
430- | DefKind :: Const { .. }
431- | DefKind :: AssocConst { .. }
430+ | DefKind :: Const
431+ | DefKind :: AssocConst
432432 | DefKind :: Macro ( ..)
433433 | DefKind :: Use
434434 | DefKind :: ForeignMod
0 commit comments