@@ -4137,7 +4137,7 @@ impl<'hir> Item<'hir> {
4137
4137
4138
4138
expect_mod, ( Ident , & ' hir Mod <' hir>) , ItemKind :: Mod ( ident, m) , ( * ident, m) ;
4139
4139
4140
- expect_foreign_mod, ( ExternAbi , & ' hir [ ForeignItemRef ] ) ,
4140
+ expect_foreign_mod, ( ExternAbi , & ' hir [ ForeignItemId ] ) ,
4141
4141
ItemKind :: ForeignMod { abi, items } , ( * abi, items) ;
4142
4142
4143
4143
expect_global_asm, & ' hir InlineAsm <' hir>, ItemKind :: GlobalAsm { asm, .. } , asm;
@@ -4314,7 +4314,7 @@ pub enum ItemKind<'hir> {
4314
4314
/// A module.
4315
4315
Mod ( Ident , & ' hir Mod < ' hir > ) ,
4316
4316
/// An external module, e.g. `extern { .. }`.
4317
- ForeignMod { abi : ExternAbi , items : & ' hir [ ForeignItemRef ] } ,
4317
+ ForeignMod { abi : ExternAbi , items : & ' hir [ ForeignItemId ] } ,
4318
4318
/// Module-level inline assembly (from `global_asm!`).
4319
4319
GlobalAsm {
4320
4320
asm : & ' hir InlineAsm < ' hir > ,
@@ -4467,19 +4467,6 @@ impl ForeignItemId {
4467
4467
}
4468
4468
}
4469
4469
4470
- /// A reference from a foreign block to one of its items. This
4471
- /// contains the item's ID, naturally, but also the item's name and
4472
- /// some other high-level details (like whether it is an associated
4473
- /// type or method, and whether it is public). This allows other
4474
- /// passes to find the impl they want without loading the ID (which
4475
- /// means fewer edges in the incremental compilation graph).
4476
- #[ derive( Debug , Clone , Copy , HashStable_Generic ) ]
4477
- pub struct ForeignItemRef {
4478
- pub id : ForeignItemId ,
4479
- pub ident : Ident ,
4480
- pub span : Span ,
4481
- }
4482
-
4483
4470
#[ derive( Debug , Clone , Copy , HashStable_Generic ) ]
4484
4471
pub struct ForeignItem < ' hir > {
4485
4472
pub ident : Ident ,
0 commit comments