@@ -1225,7 +1225,7 @@ impl EncodeContext<'a, 'tcx> {
12251225 hir:: ItemKind :: Mod ( ref m) => {
12261226 return self . encode_info_for_mod( item. hir_id, m, & item. attrs) ;
12271227 }
1228- hir:: ItemKind :: ForeignMod ( _ ) => EntryKind :: ForeignMod ,
1228+ hir:: ItemKind :: ForeignMod { .. } => EntryKind :: ForeignMod ,
12291229 hir:: ItemKind :: GlobalAsm ( ..) => EntryKind :: GlobalAsm ,
12301230 hir:: ItemKind :: TyAlias ( ..) => EntryKind :: Type ,
12311231 hir:: ItemKind :: OpaqueTy ( ..) => {
@@ -1320,8 +1320,8 @@ impl EncodeContext<'a, 'tcx> {
13201320 record ! ( self . tables. expn_that_defined[ def_id] <- self . tcx. expansion_that_defined( def_id) ) ;
13211321 // FIXME(eddyb) there should be a nicer way to do this.
13221322 match item. kind {
1323- hir:: ItemKind :: ForeignMod ( ref fm ) => record ! ( self . tables. children[ def_id] <-
1324- fm . items
1323+ hir:: ItemKind :: ForeignMod { items , .. } => record ! ( self . tables. children[ def_id] <-
1324+ items
13251325 . iter( )
13261326 . map( |foreign_item| tcx. hir( ) . local_def_id(
13271327 foreign_item. id. hir_id) . local_def_index)
@@ -1836,7 +1836,7 @@ impl EncodeContext<'a, 'tcx> {
18361836 | hir:: ItemKind :: Const ( ..)
18371837 | hir:: ItemKind :: Fn ( ..)
18381838 | hir:: ItemKind :: Mod ( ..)
1839- | hir:: ItemKind :: ForeignMod ( .. )
1839+ | hir:: ItemKind :: ForeignMod { .. }
18401840 | hir:: ItemKind :: GlobalAsm ( ..)
18411841 | hir:: ItemKind :: ExternCrate ( ..)
18421842 | hir:: ItemKind :: Use ( ..)
0 commit comments