@@ -747,6 +747,7 @@ impl EncodeContext<'a, 'tcx> {
747
747
ty:: Visibility :: from_hir( enum_vis, enum_id, self . tcx) ) ;
748
748
record ! ( self . tables. span[ def_id] <- self . tcx. def_span( def_id) ) ;
749
749
record ! ( self . tables. attributes[ def_id] <- & self . tcx. get_attrs( def_id) [ ..] ) ;
750
+ record ! ( self . tables. expn_that_defined[ def_id] <- self . tcx. expansion_that_defined( def_id) ) ;
750
751
record ! ( self . tables. children[ def_id] <- variant. fields. iter( ) . map( |f| {
751
752
assert!( f. did. is_local( ) ) ;
752
753
f. did. index
@@ -883,6 +884,7 @@ impl EncodeContext<'a, 'tcx> {
883
884
record ! ( self . tables. visibility[ def_id] <- field. vis) ;
884
885
record ! ( self . tables. span[ def_id] <- self . tcx. def_span( def_id) ) ;
885
886
record ! ( self . tables. attributes[ def_id] <- variant_data. fields( ) [ field_index] . attrs) ;
887
+ record ! ( self . tables. expn_that_defined[ def_id] <- self . tcx. expansion_that_defined( def_id) ) ;
886
888
self . encode_ident_span ( def_id, field. ident ) ;
887
889
self . encode_stability ( def_id) ;
888
890
self . encode_deprecation ( def_id) ;
@@ -924,6 +926,7 @@ impl EncodeContext<'a, 'tcx> {
924
926
record ! ( self . tables. kind[ def_id] <- EntryKind :: Struct ( self . lazy( data) , adt_def. repr) ) ;
925
927
record ! ( self . tables. visibility[ def_id] <- ctor_vis) ;
926
928
record ! ( self . tables. span[ def_id] <- self . tcx. def_span( def_id) ) ;
929
+ record ! ( self . tables. expn_that_defined[ def_id] <- self . tcx. expansion_that_defined( def_id) ) ;
927
930
self . encode_stability ( def_id) ;
928
931
self . encode_deprecation ( def_id) ;
929
932
self . encode_item_type ( def_id) ;
@@ -1339,6 +1342,7 @@ impl EncodeContext<'a, 'tcx> {
1339
1342
ty:: Visibility :: from_hir( & item. vis, item. hir_id, tcx) ) ;
1340
1343
record ! ( self . tables. span[ def_id] <- self . tcx. def_span( def_id) ) ;
1341
1344
record ! ( self . tables. attributes[ def_id] <- item. attrs) ;
1345
+ record ! ( self . tables. expn_that_defined[ def_id] <- self . tcx. expansion_that_defined( def_id) ) ;
1342
1346
// FIXME(eddyb) there should be a nicer way to do this.
1343
1347
match item. kind {
1344
1348
hir:: ItemKind :: ForeignMod ( ref fm) => record ! ( self . tables. children[ def_id] <-
0 commit comments