@@ -3141,15 +3141,6 @@ pub enum TraitItemKind<'hir> {
3141
3141
/// type.
3142
3142
Type ( GenericBounds < ' hir > , Option < & ' hir Ty < ' hir > > ) ,
3143
3143
}
3144
- impl TraitItemKind < ' _ > {
3145
- pub fn descr ( & self ) -> & ' static str {
3146
- match self {
3147
- TraitItemKind :: Const ( ..) => "associated constant" ,
3148
- TraitItemKind :: Fn ( ..) => "function" ,
3149
- TraitItemKind :: Type ( ..) => "associated type" ,
3150
- }
3151
- }
3152
- }
3153
3144
3154
3145
// The bodies for items are stored "out of line", in a separate
3155
3146
// hashmap in the `Crate`. Here we just record the hir-id of the item
@@ -3211,15 +3202,6 @@ pub enum ImplItemKind<'hir> {
3211
3202
/// An associated type.
3212
3203
Type ( & ' hir Ty < ' hir > ) ,
3213
3204
}
3214
- impl ImplItemKind < ' _ > {
3215
- pub fn descr ( & self ) -> & ' static str {
3216
- match self {
3217
- ImplItemKind :: Const ( ..) => "associated constant" ,
3218
- ImplItemKind :: Fn ( ..) => "function" ,
3219
- ImplItemKind :: Type ( ..) => "associated type" ,
3220
- }
3221
- }
3222
- }
3223
3205
3224
3206
/// A constraint on an associated item.
3225
3207
///
@@ -4545,16 +4527,6 @@ pub enum ForeignItemKind<'hir> {
4545
4527
Type ,
4546
4528
}
4547
4529
4548
- impl ForeignItemKind < ' _ > {
4549
- pub fn descr ( & self ) -> & ' static str {
4550
- match self {
4551
- ForeignItemKind :: Fn ( ..) => "function" ,
4552
- ForeignItemKind :: Static ( ..) => "static variable" ,
4553
- ForeignItemKind :: Type => "type" ,
4554
- }
4555
- }
4556
- }
4557
-
4558
4530
/// A variable captured by a closure.
4559
4531
#[ derive( Debug , Copy , Clone , HashStable_Generic ) ]
4560
4532
pub struct Upvar {
0 commit comments