@@ -877,7 +877,7 @@ impl EncodeContext<'tcx> {
877877
878878 EntryKind :: AssocConst (
879879 container,
880- ConstQualif { mir : Default :: default ( ) } ,
880+ Default :: default ( ) ,
881881 rendered_const,
882882 )
883883 }
@@ -959,10 +959,11 @@ impl EncodeContext<'tcx> {
959959 record ! ( self . per_def. kind[ def_id] <- match impl_item. kind {
960960 ty:: AssocKind :: Const => {
961961 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) ;
963963
964- EntryKind :: AssocConst ( container,
965- ConstQualif { mir } ,
964+ EntryKind :: AssocConst (
965+ container,
966+ qualifs,
966967 self . encode_rendered_const_for_body( body_id) )
967968 } else {
968969 bug!( )
@@ -1093,9 +1094,9 @@ impl EncodeContext<'tcx> {
10931094 hir:: ItemKind :: Static ( _, hir:: Mutability :: Mutable , _) => EntryKind :: MutStatic ,
10941095 hir:: ItemKind :: Static ( _, hir:: Mutability :: Immutable , _) => EntryKind :: ImmStatic ,
10951096 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) ;
10971098 EntryKind :: Const (
1098- ConstQualif { mir } ,
1099+ qualifs ,
10991100 self . encode_rendered_const_for_body( body_id)
11001101 )
11011102 }
@@ -1372,9 +1373,9 @@ impl EncodeContext<'tcx> {
13721373 let id = self . tcx . hir ( ) . as_local_hir_id ( def_id) . unwrap ( ) ;
13731374 let body_id = self . tcx . hir ( ) . body_owned_by ( id) ;
13741375 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) ;
13761377
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) ) ;
13781379 record ! ( self . per_def. visibility[ def_id] <- ty:: Visibility :: Public ) ;
13791380 record ! ( self . per_def. span[ def_id] <- self . tcx. def_span( def_id) ) ;
13801381 self . encode_item_type ( def_id) ;
0 commit comments