@@ -1063,7 +1063,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
10631063 } ;
10641064
10651065 record ! ( self . tables. kind[ def_id] <- EntryKind :: Variant ( self . lazy( data) ) ) ;
1066- self . tables . impl_constness . set ( def_id. index , hir:: Constness :: Const ) ;
1066+ self . tables . constness . set ( def_id. index , hir:: Constness :: Const ) ;
10671067 record_array ! ( self . tables. children[ def_id] <- variant. fields. iter( ) . map( |f| {
10681068 assert!( f. did. is_local( ) ) ;
10691069 f. did. index
@@ -1092,7 +1092,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
10921092 } ;
10931093
10941094 record ! ( self . tables. kind[ def_id] <- EntryKind :: Variant ( self . lazy( data) ) ) ;
1095- self . tables . impl_constness . set ( def_id. index , hir:: Constness :: Const ) ;
1095+ self . tables . constness . set ( def_id. index , hir:: Constness :: Const ) ;
10961096 self . encode_item_type ( def_id) ;
10971097 if variant. ctor_kind == CtorKind :: Fn {
10981098 record ! ( self . tables. fn_sig[ def_id] <- tcx. fn_sig( def_id) ) ;
@@ -1175,7 +1175,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
11751175 } ;
11761176
11771177 record ! ( self . tables. repr_options[ def_id] <- adt_def. repr( ) ) ;
1178- self . tables . impl_constness . set ( def_id. index , hir:: Constness :: Const ) ;
1178+ self . tables . constness . set ( def_id. index , hir:: Constness :: Const ) ;
11791179 record ! ( self . tables. kind[ def_id] <- EntryKind :: Struct ( self . lazy( data) ) ) ;
11801180 self . encode_item_type ( def_id) ;
11811181 if variant. ctor_kind == CtorKind :: Fn {
@@ -1226,7 +1226,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
12261226 }
12271227 } ;
12281228 self . tables . asyncness . set ( def_id. index , m_sig. header . asyncness ) ;
1229- self . tables . impl_constness . set ( def_id. index , hir:: Constness :: NotConst ) ;
1229+ self . tables . constness . set ( def_id. index , hir:: Constness :: NotConst ) ;
12301230 record ! ( self . tables. kind[ def_id] <- EntryKind :: AssocFn ( self . lazy( AssocFnData {
12311231 container,
12321232 has_self: trait_item. fn_has_self_parameter,
@@ -1290,7 +1290,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
12901290 } else {
12911291 hir:: Constness :: NotConst
12921292 } ;
1293- self . tables . impl_constness . set ( def_id. index , constness) ;
1293+ self . tables . constness . set ( def_id. index , constness) ;
12941294 record ! ( self . tables. kind[ def_id] <- EntryKind :: AssocFn ( self . lazy( AssocFnData {
12951295 container,
12961296 has_self: impl_item. fn_has_self_parameter,
@@ -1413,7 +1413,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
14131413 hir:: ItemKind :: Fn ( ref sig, .., body) => {
14141414 self . tables . asyncness . set ( def_id. index , sig. header . asyncness ) ;
14151415 record_array ! ( self . tables. fn_arg_names[ def_id] <- self . tcx. hir( ) . body_param_names( body) ) ;
1416- self . tables . impl_constness . set ( def_id. index , sig. header . constness ) ;
1416+ self . tables . constness . set ( def_id. index , sig. header . constness ) ;
14171417 EntryKind :: Fn
14181418 }
14191419 hir:: ItemKind :: Macro ( ref macro_def, _) => {
@@ -1437,7 +1437,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
14371437 hir:: ItemKind :: Struct ( ref struct_def, _) => {
14381438 let adt_def = self . tcx . adt_def ( def_id) ;
14391439 record ! ( self . tables. repr_options[ def_id] <- adt_def. repr( ) ) ;
1440- self . tables . impl_constness . set ( def_id. index , hir:: Constness :: Const ) ;
1440+ self . tables . constness . set ( def_id. index , hir:: Constness :: Const ) ;
14411441
14421442 // Encode def_ids for each field and method
14431443 // for methods, write all the stuff get_trait_method
@@ -1468,7 +1468,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
14681468 }
14691469 hir:: ItemKind :: Impl ( hir:: Impl { defaultness, constness, .. } ) => {
14701470 self . tables . impl_defaultness . set ( def_id. index , * defaultness) ;
1471- self . tables . impl_constness . set ( def_id. index , * constness) ;
1471+ self . tables . constness . set ( def_id. index , * constness) ;
14721472
14731473 let trait_ref = self . tcx . impl_trait_ref ( def_id) ;
14741474 if let Some ( trait_ref) = trait_ref {
@@ -1934,7 +1934,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
19341934 } else {
19351935 hir:: Constness :: NotConst
19361936 } ;
1937- self . tables . impl_constness . set ( def_id. index , constness) ;
1937+ self . tables . constness . set ( def_id. index , constness) ;
19381938 record ! ( self . tables. kind[ def_id] <- EntryKind :: ForeignFn ) ;
19391939 }
19401940 hir:: ForeignItemKind :: Static ( ..) => {
0 commit comments