@@ -4161,7 +4161,7 @@ impl<'hir> Item<'hir> {
4161
4161
Ident ,
4162
4162
& ' hir Generics <' hir>,
4163
4163
GenericBounds <' hir>,
4164
- & ' hir [ TraitItemRef ]
4164
+ & ' hir [ TraitItemId ]
4165
4165
) ,
4166
4166
ItemKind :: Trait ( is_auto, safety, ident, generics, bounds, items) ,
4167
4167
( * is_auto, * safety, * ident, generics, bounds, items) ;
@@ -4334,7 +4334,7 @@ pub enum ItemKind<'hir> {
4334
4334
/// A union definition, e.g., `union Foo<A, B> {x: A, y: B}`.
4335
4335
Union ( Ident , & ' hir Generics < ' hir > , VariantData < ' hir > ) ,
4336
4336
/// A trait definition.
4337
- Trait ( IsAuto , Safety , Ident , & ' hir Generics < ' hir > , GenericBounds < ' hir > , & ' hir [ TraitItemRef ] ) ,
4337
+ Trait ( IsAuto , Safety , Ident , & ' hir Generics < ' hir > , GenericBounds < ' hir > , & ' hir [ TraitItemId ] ) ,
4338
4338
/// A trait alias.
4339
4339
TraitAlias ( Ident , & ' hir Generics < ' hir > , GenericBounds < ' hir > ) ,
4340
4340
@@ -4361,7 +4361,7 @@ pub struct Impl<'hir> {
4361
4361
pub of_trait : Option < TraitRef < ' hir > > ,
4362
4362
4363
4363
pub self_ty : & ' hir Ty < ' hir > ,
4364
- pub items : & ' hir [ ImplItemRef ] ,
4364
+ pub items : & ' hir [ ImplItemId ] ,
4365
4365
}
4366
4366
4367
4367
impl ItemKind < ' _ > {
@@ -4425,32 +4425,6 @@ impl ItemKind<'_> {
4425
4425
}
4426
4426
}
4427
4427
4428
- /// A reference from an trait to one of its associated items. This
4429
- /// contains the item's id, naturally, but also the item's name and
4430
- /// some other high-level details (like whether it is an associated
4431
- /// type or method, and whether it is public). This allows other
4432
- /// passes to find the impl they want without loading the ID (which
4433
- /// means fewer edges in the incremental compilation graph).
4434
- #[ derive( Debug , Clone , Copy , HashStable_Generic ) ]
4435
- pub struct TraitItemRef {
4436
- pub id : TraitItemId ,
4437
- pub ident : Ident ,
4438
- pub span : Span ,
4439
- }
4440
-
4441
- /// A reference from an impl to one of its associated items. This
4442
- /// contains the item's ID, naturally, but also the item's name and
4443
- /// some other high-level details (like whether it is an associated
4444
- /// type or method, and whether it is public). This allows other
4445
- /// passes to find the impl they want without loading the ID (which
4446
- /// means fewer edges in the incremental compilation graph).
4447
- #[ derive( Debug , Clone , Copy , HashStable_Generic ) ]
4448
- pub struct ImplItemRef {
4449
- pub id : ImplItemId ,
4450
- pub ident : Ident ,
4451
- pub span : Span ,
4452
- }
4453
-
4454
4428
// The bodies for items are stored "out of line", in a separate
4455
4429
// hashmap in the `Crate`. Here we just record the hir-id of the item
4456
4430
// so it can fetched later.
0 commit comments