@@ -4137,7 +4137,7 @@ impl<'hir> Item<'hir> {
41374137
41384138 expect_mod, ( Ident , & ' hir Mod <' hir>) , ItemKind :: Mod ( ident, m) , ( * ident, m) ;
41394139
4140- expect_foreign_mod, ( ExternAbi , & ' hir [ ForeignItemRef ] ) ,
4140+ expect_foreign_mod, ( ExternAbi , & ' hir [ ForeignItemId ] ) ,
41414141 ItemKind :: ForeignMod { abi, items } , ( * abi, items) ;
41424142
41434143 expect_global_asm, & ' hir InlineAsm <' hir>, ItemKind :: GlobalAsm { asm, .. } , asm;
@@ -4314,7 +4314,7 @@ pub enum ItemKind<'hir> {
43144314 /// A module.
43154315 Mod ( Ident , & ' hir Mod < ' hir > ) ,
43164316 /// An external module, e.g. `extern { .. }`.
4317- ForeignMod { abi : ExternAbi , items : & ' hir [ ForeignItemRef ] } ,
4317+ ForeignMod { abi : ExternAbi , items : & ' hir [ ForeignItemId ] } ,
43184318 /// Module-level inline assembly (from `global_asm!`).
43194319 GlobalAsm {
43204320 asm : & ' hir InlineAsm < ' hir > ,
@@ -4467,19 +4467,6 @@ impl ForeignItemId {
44674467 }
44684468}
44694469
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-
44834470#[ derive( Debug , Clone , Copy , HashStable_Generic ) ]
44844471pub struct ForeignItem < ' hir > {
44854472 pub ident : Ident ,
0 commit comments