@@ -877,7 +877,7 @@ impl EncodeContext<'tcx> {
877
877
878
878
EntryKind :: AssocConst (
879
879
container,
880
- ConstQualif { mir : Default :: default ( ) } ,
880
+ Default :: default ( ) ,
881
881
rendered_const,
882
882
)
883
883
}
@@ -959,10 +959,11 @@ impl EncodeContext<'tcx> {
959
959
record ! ( self . per_def. kind[ def_id] <- match impl_item. kind {
960
960
ty:: AssocKind :: Const => {
961
961
if let hir:: ImplItemKind :: Const ( _, body_id) = ast_item. kind {
962
- let mir = self . tcx. at( ast_item. span) . mir_const_qualif( def_id) ;
962
+ let qualifs = self . tcx. at( ast_item. span) . mir_const_qualif( def_id) ;
963
963
964
- EntryKind :: AssocConst ( container,
965
- ConstQualif { mir } ,
964
+ EntryKind :: AssocConst (
965
+ container,
966
+ qualifs,
966
967
self . encode_rendered_const_for_body( body_id) )
967
968
} else {
968
969
bug!( )
@@ -1093,9 +1094,9 @@ impl EncodeContext<'tcx> {
1093
1094
hir:: ItemKind :: Static ( _, hir:: Mutability :: Mutable , _) => EntryKind :: MutStatic ,
1094
1095
hir:: ItemKind :: Static ( _, hir:: Mutability :: Immutable , _) => EntryKind :: ImmStatic ,
1095
1096
hir:: ItemKind :: Const ( _, body_id) => {
1096
- let mir = self . tcx. at( item. span) . mir_const_qualif( def_id) ;
1097
+ let qualifs = self . tcx. at( item. span) . mir_const_qualif( def_id) ;
1097
1098
EntryKind :: Const (
1098
- ConstQualif { mir } ,
1099
+ qualifs ,
1099
1100
self . encode_rendered_const_for_body( body_id)
1100
1101
)
1101
1102
}
@@ -1372,9 +1373,9 @@ impl EncodeContext<'tcx> {
1372
1373
let id = self . tcx . hir ( ) . as_local_hir_id ( def_id) . unwrap ( ) ;
1373
1374
let body_id = self . tcx . hir ( ) . body_owned_by ( id) ;
1374
1375
let const_data = self . encode_rendered_const_for_body ( body_id) ;
1375
- let mir = self . tcx . mir_const_qualif ( def_id) ;
1376
+ let qualifs = self . tcx . mir_const_qualif ( def_id) ;
1376
1377
1377
- record ! ( self . per_def. kind[ def_id] <- EntryKind :: Const ( ConstQualif { mir } , const_data) ) ;
1378
+ record ! ( self . per_def. kind[ def_id] <- EntryKind :: Const ( qualifs , const_data) ) ;
1378
1379
record ! ( self . per_def. visibility[ def_id] <- ty:: Visibility :: Public ) ;
1379
1380
record ! ( self . per_def. span[ def_id] <- self . tcx. def_span( def_id) ) ;
1380
1381
self . encode_item_type ( def_id) ;
0 commit comments