@@ -769,6 +769,7 @@ impl EncodeContext<'a, 'tcx> {
769769 } ) ;
770770 record ! ( self . tables. span[ def_id] <- tcx. def_span( def_id) ) ;
771771 record ! ( self . tables. attributes[ def_id] <- tcx. get_attrs( def_id) ) ;
772+ record ! ( self . tables. expn_that_defined[ def_id] <- self . tcx. expansion_that_defined( def_id) ) ;
772773 if should_encode_visibility ( def_kind) {
773774 record ! ( self . tables. visibility[ def_id] <- self . tcx. visibility( def_id) ) ;
774775 }
@@ -799,7 +800,6 @@ impl EncodeContext<'a, 'tcx> {
799800 } ;
800801
801802 record ! ( self . tables. kind[ def_id] <- EntryKind :: Variant ( self . lazy( data) ) ) ;
802- record ! ( self . tables. expn_that_defined[ def_id] <- self . tcx. expansion_that_defined( def_id) ) ;
803803 record ! ( self . tables. children[ def_id] <- variant. fields. iter( ) . map( |f| {
804804 assert!( f. did. is_local( ) ) ;
805805 f. did. index
@@ -910,7 +910,6 @@ impl EncodeContext<'a, 'tcx> {
910910 debug ! ( "EncodeContext::encode_field({:?})" , def_id) ;
911911
912912 record ! ( self . tables. kind[ def_id] <- EntryKind :: Field ) ;
913- record ! ( self . tables. expn_that_defined[ def_id] <- self . tcx. expansion_that_defined( def_id) ) ;
914913 self . encode_ident_span ( def_id, field. ident ) ;
915914 self . encode_stability ( def_id) ;
916915 self . encode_deprecation ( def_id) ;
@@ -933,7 +932,6 @@ impl EncodeContext<'a, 'tcx> {
933932 } ;
934933
935934 record ! ( self . tables. kind[ def_id] <- EntryKind :: Struct ( self . lazy( data) , adt_def. repr) ) ;
936- record ! ( self . tables. expn_that_defined[ def_id] <- self . tcx. expansion_that_defined( def_id) ) ;
937935 self . encode_stability ( def_id) ;
938936 self . encode_deprecation ( def_id) ;
939937 self . encode_item_type ( def_id) ;
@@ -1380,7 +1378,6 @@ impl EncodeContext<'a, 'tcx> {
13801378 }
13811379 } ;
13821380 record ! ( self . tables. kind[ def_id] <- entry_kind) ;
1383- record ! ( self . tables. expn_that_defined[ def_id] <- self . tcx. expansion_that_defined( def_id) ) ;
13841381 // FIXME(eddyb) there should be a nicer way to do this.
13851382 match item. kind {
13861383 hir:: ItemKind :: ForeignMod { items, .. } => record ! ( self . tables. children[ def_id] <-
0 commit comments