@@ -769,6 +769,7 @@ impl EncodeContext<'a, 'tcx> {
769
769
} ) ;
770
770
record ! ( self . tables. span[ def_id] <- tcx. def_span( def_id) ) ;
771
771
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) ) ;
772
773
if should_encode_visibility ( def_kind) {
773
774
record ! ( self . tables. visibility[ def_id] <- self . tcx. visibility( def_id) ) ;
774
775
}
@@ -799,7 +800,6 @@ impl EncodeContext<'a, 'tcx> {
799
800
} ;
800
801
801
802
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) ) ;
803
803
record ! ( self . tables. children[ def_id] <- variant. fields. iter( ) . map( |f| {
804
804
assert!( f. did. is_local( ) ) ;
805
805
f. did. index
@@ -910,7 +910,6 @@ impl EncodeContext<'a, 'tcx> {
910
910
debug ! ( "EncodeContext::encode_field({:?})" , def_id) ;
911
911
912
912
record ! ( self . tables. kind[ def_id] <- EntryKind :: Field ) ;
913
- record ! ( self . tables. expn_that_defined[ def_id] <- self . tcx. expansion_that_defined( def_id) ) ;
914
913
self . encode_ident_span ( def_id, field. ident ) ;
915
914
self . encode_stability ( def_id) ;
916
915
self . encode_deprecation ( def_id) ;
@@ -933,7 +932,6 @@ impl EncodeContext<'a, 'tcx> {
933
932
} ;
934
933
935
934
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) ) ;
937
935
self . encode_stability ( def_id) ;
938
936
self . encode_deprecation ( def_id) ;
939
937
self . encode_item_type ( def_id) ;
@@ -1380,7 +1378,6 @@ impl EncodeContext<'a, 'tcx> {
1380
1378
}
1381
1379
} ;
1382
1380
record ! ( self . tables. kind[ def_id] <- entry_kind) ;
1383
- record ! ( self . tables. expn_that_defined[ def_id] <- self . tcx. expansion_that_defined( def_id) ) ;
1384
1381
// FIXME(eddyb) there should be a nicer way to do this.
1385
1382
match item. kind {
1386
1383
hir:: ItemKind :: ForeignMod { items, .. } => record ! ( self . tables. children[ def_id] <-
0 commit comments