@@ -622,7 +622,7 @@ impl EncodeContext<'tcx> {
622
622
record ! ( self . tables. kind[ def_id] <- EntryKind :: Variant ( self . lazy( data) ) ) ;
623
623
record ! ( self . tables. visibility[ def_id] <-
624
624
ty:: Visibility :: from_hir( enum_vis, enum_id, self . tcx) ) ;
625
- record ! ( self . tables. span[ def_id] <- self . tcx. def_span ( def_id) ) ;
625
+ record ! ( self . tables. span[ def_id] <- self . tcx. real_def_span ( def_id) ) ;
626
626
record ! ( self . tables. attributes[ def_id] <- & self . tcx. get_attrs( def_id) [ ..] ) ;
627
627
record ! ( self . tables. children[ def_id] <- variant. fields. iter( ) . map( |f| {
628
628
assert!( f. did. is_local( ) ) ;
@@ -671,7 +671,7 @@ impl EncodeContext<'tcx> {
671
671
672
672
record ! ( self . tables. kind[ def_id] <- EntryKind :: Variant ( self . lazy( data) ) ) ;
673
673
record ! ( self . tables. visibility[ def_id] <- ctor_vis) ;
674
- record ! ( self . tables. span[ def_id] <- self . tcx. def_span ( def_id) ) ;
674
+ record ! ( self . tables. span[ def_id] <- self . tcx. real_def_span ( def_id) ) ;
675
675
self . encode_stability ( def_id) ;
676
676
self . encode_deprecation ( def_id) ;
677
677
self . encode_item_type ( def_id) ;
@@ -706,7 +706,7 @@ impl EncodeContext<'tcx> {
706
706
707
707
record ! ( self . tables. kind[ def_id] <- EntryKind :: Mod ( self . lazy( data) ) ) ;
708
708
record ! ( self . tables. visibility[ def_id] <- ty:: Visibility :: from_hir( vis, id, self . tcx) ) ;
709
- record ! ( self . tables. span[ def_id] <- self . tcx. def_span ( def_id) ) ;
709
+ record ! ( self . tables. span[ def_id] <- self . tcx. real_def_span ( def_id) ) ;
710
710
record ! ( self . tables. attributes[ def_id] <- attrs) ;
711
711
record ! ( self . tables. children[ def_id] <- md. item_ids. iter( ) . map( |item_id| {
712
712
tcx. hir( ) . local_def_id( item_id. id) . local_def_index
@@ -733,7 +733,7 @@ impl EncodeContext<'tcx> {
733
733
734
734
record ! ( self . tables. kind[ def_id] <- EntryKind :: Field ) ;
735
735
record ! ( self . tables. visibility[ def_id] <- field. vis) ;
736
- record ! ( self . tables. span[ def_id] <- self . tcx. def_span ( def_id) ) ;
736
+ record ! ( self . tables. span[ def_id] <- self . tcx. real_def_span ( def_id) ) ;
737
737
record ! ( self . tables. attributes[ def_id] <- variant_data. fields( ) [ field_index] . attrs) ;
738
738
self . encode_ident_span ( def_id, field. ident ) ;
739
739
self . encode_stability ( def_id) ;
@@ -774,7 +774,7 @@ impl EncodeContext<'tcx> {
774
774
775
775
record ! ( self . tables. kind[ def_id] <- EntryKind :: Struct ( self . lazy( data) , adt_def. repr) ) ;
776
776
record ! ( self . tables. visibility[ def_id] <- ctor_vis) ;
777
- record ! ( self . tables. span[ def_id] <- self . tcx. def_span ( def_id) ) ;
777
+ record ! ( self . tables. span[ def_id] <- self . tcx. real_def_span ( def_id) ) ;
778
778
self . encode_stability ( def_id) ;
779
779
self . encode_deprecation ( def_id) ;
780
780
self . encode_item_type ( def_id) ;
@@ -1301,7 +1301,7 @@ impl EncodeContext<'tcx> {
1301
1301
fn encode_info_for_generic_param ( & mut self , def_id : DefId , kind : EntryKind , encode_type : bool ) {
1302
1302
record ! ( self . tables. kind[ def_id] <- kind) ;
1303
1303
record ! ( self . tables. visibility[ def_id] <- ty:: Visibility :: Public ) ;
1304
- record ! ( self . tables. span[ def_id] <- self . tcx. def_span ( def_id) ) ;
1304
+ record ! ( self . tables. span[ def_id] <- self . tcx. real_def_span ( def_id) ) ;
1305
1305
if encode_type {
1306
1306
self . encode_item_type ( def_id) ;
1307
1307
}
@@ -1326,7 +1326,7 @@ impl EncodeContext<'tcx> {
1326
1326
_ => bug!( "closure that is neither generator nor closure" ) ,
1327
1327
} ) ;
1328
1328
record ! ( self . tables. visibility[ def_id. to_def_id( ) ] <- ty:: Visibility :: Public ) ;
1329
- record ! ( self . tables. span[ def_id. to_def_id( ) ] <- self . tcx. def_span ( def_id) ) ;
1329
+ record ! ( self . tables. span[ def_id. to_def_id( ) ] <- self . tcx. real_def_span ( def_id) ) ;
1330
1330
record ! ( self . tables. attributes[ def_id. to_def_id( ) ] <- & self . tcx. get_attrs( def_id. to_def_id( ) ) [ ..] ) ;
1331
1331
self . encode_item_type ( def_id. to_def_id ( ) ) ;
1332
1332
if let ty:: Closure ( def_id, substs) = ty. kind {
@@ -1346,7 +1346,7 @@ impl EncodeContext<'tcx> {
1346
1346
1347
1347
record ! ( self . tables. kind[ def_id. to_def_id( ) ] <- EntryKind :: Const ( qualifs, const_data) ) ;
1348
1348
record ! ( self . tables. visibility[ def_id. to_def_id( ) ] <- ty:: Visibility :: Public ) ;
1349
- record ! ( self . tables. span[ def_id. to_def_id( ) ] <- self . tcx. def_span ( def_id) ) ;
1349
+ record ! ( self . tables. span[ def_id. to_def_id( ) ] <- self . tcx. real_def_span ( def_id) ) ;
1350
1350
self . encode_item_type ( def_id. to_def_id ( ) ) ;
1351
1351
self . encode_generics ( def_id. to_def_id ( ) ) ;
1352
1352
self . encode_explicit_predicates ( def_id. to_def_id ( ) ) ;
0 commit comments