@@ -1063,7 +1063,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1063
1063
} ;
1064
1064
1065
1065
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 ) ;
1067
1067
record_array ! ( self . tables. children[ def_id] <- variant. fields. iter( ) . map( |f| {
1068
1068
assert!( f. did. is_local( ) ) ;
1069
1069
f. did. index
@@ -1092,7 +1092,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1092
1092
} ;
1093
1093
1094
1094
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 ) ;
1096
1096
self . encode_item_type ( def_id) ;
1097
1097
if variant. ctor_kind == CtorKind :: Fn {
1098
1098
record ! ( self . tables. fn_sig[ def_id] <- tcx. fn_sig( def_id) ) ;
@@ -1175,7 +1175,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1175
1175
} ;
1176
1176
1177
1177
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 ) ;
1179
1179
record ! ( self . tables. kind[ def_id] <- EntryKind :: Struct ( self . lazy( data) ) ) ;
1180
1180
self . encode_item_type ( def_id) ;
1181
1181
if variant. ctor_kind == CtorKind :: Fn {
@@ -1226,7 +1226,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1226
1226
}
1227
1227
} ;
1228
1228
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 ) ;
1230
1230
record ! ( self . tables. kind[ def_id] <- EntryKind :: AssocFn ( self . lazy( AssocFnData {
1231
1231
container,
1232
1232
has_self: trait_item. fn_has_self_parameter,
@@ -1290,7 +1290,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1290
1290
} else {
1291
1291
hir:: Constness :: NotConst
1292
1292
} ;
1293
- self . tables . impl_constness . set ( def_id. index , constness) ;
1293
+ self . tables . constness . set ( def_id. index , constness) ;
1294
1294
record ! ( self . tables. kind[ def_id] <- EntryKind :: AssocFn ( self . lazy( AssocFnData {
1295
1295
container,
1296
1296
has_self: impl_item. fn_has_self_parameter,
@@ -1413,7 +1413,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1413
1413
hir:: ItemKind :: Fn ( ref sig, .., body) => {
1414
1414
self . tables . asyncness . set ( def_id. index , sig. header . asyncness ) ;
1415
1415
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 ) ;
1417
1417
EntryKind :: Fn
1418
1418
}
1419
1419
hir:: ItemKind :: Macro ( ref macro_def, _) => {
@@ -1437,7 +1437,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1437
1437
hir:: ItemKind :: Struct ( ref struct_def, _) => {
1438
1438
let adt_def = self . tcx . adt_def ( def_id) ;
1439
1439
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 ) ;
1441
1441
1442
1442
// Encode def_ids for each field and method
1443
1443
// for methods, write all the stuff get_trait_method
@@ -1468,7 +1468,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1468
1468
}
1469
1469
hir:: ItemKind :: Impl ( hir:: Impl { defaultness, constness, .. } ) => {
1470
1470
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) ;
1472
1472
1473
1473
let trait_ref = self . tcx . impl_trait_ref ( def_id) ;
1474
1474
if let Some ( trait_ref) = trait_ref {
@@ -1934,7 +1934,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1934
1934
} else {
1935
1935
hir:: Constness :: NotConst
1936
1936
} ;
1937
- self . tables . impl_constness . set ( def_id. index , constness) ;
1937
+ self . tables . constness . set ( def_id. index , constness) ;
1938
1938
record ! ( self . tables. kind[ def_id] <- EntryKind :: ForeignFn ) ;
1939
1939
}
1940
1940
hir:: ForeignItemKind :: Static ( ..) => {
0 commit comments