@@ -1070,7 +1070,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
10701070 } ;
10711071
10721072 record ! ( self . tables. kind[ def_id] <- EntryKind :: Variant ( self . lazy( data) ) ) ;
1073- self . tables . impl_constness . set ( def_id. index , hir:: Constness :: Const ) ;
1073+ self . tables . constness . set ( def_id. index , hir:: Constness :: Const ) ;
10741074 record_array ! ( self . tables. children[ def_id] <- variant. fields. iter( ) . map( |f| {
10751075 assert!( f. did. is_local( ) ) ;
10761076 f. did. index
@@ -1099,7 +1099,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
10991099 } ;
11001100
11011101 record ! ( self . tables. kind[ def_id] <- EntryKind :: Variant ( self . lazy( data) ) ) ;
1102- self . tables . impl_constness . set ( def_id. index , hir:: Constness :: Const ) ;
1102+ self . tables . constness . set ( def_id. index , hir:: Constness :: Const ) ;
11031103 self . encode_item_type ( def_id) ;
11041104 if variant. ctor_kind == CtorKind :: Fn {
11051105 record ! ( self . tables. fn_sig[ def_id] <- tcx. fn_sig( def_id) ) ;
@@ -1182,7 +1182,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
11821182 } ;
11831183
11841184 record ! ( self . tables. repr_options[ def_id] <- adt_def. repr( ) ) ;
1185- self . tables . impl_constness . set ( def_id. index , hir:: Constness :: Const ) ;
1185+ self . tables . constness . set ( def_id. index , hir:: Constness :: Const ) ;
11861186 record ! ( self . tables. kind[ def_id] <- EntryKind :: Struct ( self . lazy( data) ) ) ;
11871187 self . encode_item_type ( def_id) ;
11881188 if variant. ctor_kind == CtorKind :: Fn {
@@ -1233,7 +1233,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
12331233 }
12341234 } ;
12351235 self . tables . asyncness . set ( def_id. index , m_sig. header . asyncness ) ;
1236- self . tables . impl_constness . set ( def_id. index , hir:: Constness :: NotConst ) ;
1236+ self . tables . constness . set ( def_id. index , hir:: Constness :: NotConst ) ;
12371237 record ! ( self . tables. kind[ def_id] <- EntryKind :: AssocFn ( self . lazy( AssocFnData {
12381238 container,
12391239 has_self: trait_item. fn_has_self_parameter,
@@ -1297,7 +1297,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
12971297 } else {
12981298 hir:: Constness :: NotConst
12991299 } ;
1300- self . tables . impl_constness . set ( def_id. index , constness) ;
1300+ self . tables . constness . set ( def_id. index , constness) ;
13011301 record ! ( self . tables. kind[ def_id] <- EntryKind :: AssocFn ( self . lazy( AssocFnData {
13021302 container,
13031303 has_self: impl_item. fn_has_self_parameter,
@@ -1420,7 +1420,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
14201420 hir:: ItemKind :: Fn ( ref sig, .., body) => {
14211421 self . tables . asyncness . set ( def_id. index , sig. header . asyncness ) ;
14221422 record_array ! ( self . tables. fn_arg_names[ def_id] <- self . tcx. hir( ) . body_param_names( body) ) ;
1423- self . tables . impl_constness . set ( def_id. index , sig. header . constness ) ;
1423+ self . tables . constness . set ( def_id. index , sig. header . constness ) ;
14241424 EntryKind :: Fn
14251425 }
14261426 hir:: ItemKind :: Macro ( ref macro_def, _) => {
@@ -1444,7 +1444,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
14441444 hir:: ItemKind :: Struct ( ref struct_def, _) => {
14451445 let adt_def = self . tcx . adt_def ( def_id) ;
14461446 record ! ( self . tables. repr_options[ def_id] <- adt_def. repr( ) ) ;
1447- self . tables . impl_constness . set ( def_id. index , hir:: Constness :: Const ) ;
1447+ self . tables . constness . set ( def_id. index , hir:: Constness :: Const ) ;
14481448
14491449 // Encode def_ids for each field and method
14501450 // for methods, write all the stuff get_trait_method
@@ -1475,7 +1475,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
14751475 }
14761476 hir:: ItemKind :: Impl ( hir:: Impl { defaultness, constness, .. } ) => {
14771477 self . tables . impl_defaultness . set ( def_id. index , * defaultness) ;
1478- self . tables . impl_constness . set ( def_id. index , * constness) ;
1478+ self . tables . constness . set ( def_id. index , * constness) ;
14791479
14801480 let trait_ref = self . tcx . impl_trait_ref ( def_id) ;
14811481 if let Some ( trait_ref) = trait_ref {
@@ -1941,7 +1941,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
19411941 } else {
19421942 hir:: Constness :: NotConst
19431943 } ;
1944- self . tables . impl_constness . set ( def_id. index , constness) ;
1944+ self . tables . constness . set ( def_id. index , constness) ;
19451945 record ! ( self . tables. kind[ def_id] <- EntryKind :: ForeignFn ) ;
19461946 }
19471947 hir:: ForeignItemKind :: Static ( ..) => {
0 commit comments