@@ -1225,7 +1225,7 @@ impl EncodeContext<'a, 'tcx> {
1225
1225
hir:: ItemKind :: Mod ( ref m) => {
1226
1226
return self . encode_info_for_mod( item. hir_id, m, & item. attrs) ;
1227
1227
}
1228
- hir:: ItemKind :: ForeignMod ( _ ) => EntryKind :: ForeignMod ,
1228
+ hir:: ItemKind :: ForeignMod { .. } => EntryKind :: ForeignMod ,
1229
1229
hir:: ItemKind :: GlobalAsm ( ..) => EntryKind :: GlobalAsm ,
1230
1230
hir:: ItemKind :: TyAlias ( ..) => EntryKind :: Type ,
1231
1231
hir:: ItemKind :: OpaqueTy ( ..) => {
@@ -1320,8 +1320,8 @@ impl EncodeContext<'a, 'tcx> {
1320
1320
record ! ( self . tables. expn_that_defined[ def_id] <- self . tcx. expansion_that_defined( def_id) ) ;
1321
1321
// FIXME(eddyb) there should be a nicer way to do this.
1322
1322
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
1325
1325
. iter( )
1326
1326
. map( |foreign_item| tcx. hir( ) . local_def_id(
1327
1327
foreign_item. id. hir_id) . local_def_index)
@@ -1836,7 +1836,7 @@ impl EncodeContext<'a, 'tcx> {
1836
1836
| hir:: ItemKind :: Const ( ..)
1837
1837
| hir:: ItemKind :: Fn ( ..)
1838
1838
| hir:: ItemKind :: Mod ( ..)
1839
- | hir:: ItemKind :: ForeignMod ( .. )
1839
+ | hir:: ItemKind :: ForeignMod { .. }
1840
1840
| hir:: ItemKind :: GlobalAsm ( ..)
1841
1841
| hir:: ItemKind :: ExternCrate ( ..)
1842
1842
| hir:: ItemKind :: Use ( ..)
0 commit comments