@@ -1070,7 +1070,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1070
1070
} ;
1071
1071
1072
1072
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 ) ;
1074
1074
record_array ! ( self . tables. children[ def_id] <- variant. fields. iter( ) . map( |f| {
1075
1075
assert!( f. did. is_local( ) ) ;
1076
1076
f. did. index
@@ -1099,7 +1099,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1099
1099
} ;
1100
1100
1101
1101
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 ) ;
1103
1103
self . encode_item_type ( def_id) ;
1104
1104
if variant. ctor_kind == CtorKind :: Fn {
1105
1105
record ! ( self . tables. fn_sig[ def_id] <- tcx. fn_sig( def_id) ) ;
@@ -1182,7 +1182,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1182
1182
} ;
1183
1183
1184
1184
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 ) ;
1186
1186
record ! ( self . tables. kind[ def_id] <- EntryKind :: Struct ( self . lazy( data) ) ) ;
1187
1187
self . encode_item_type ( def_id) ;
1188
1188
if variant. ctor_kind == CtorKind :: Fn {
@@ -1233,7 +1233,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1233
1233
}
1234
1234
} ;
1235
1235
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 ) ;
1237
1237
record ! ( self . tables. kind[ def_id] <- EntryKind :: AssocFn ( self . lazy( AssocFnData {
1238
1238
container,
1239
1239
has_self: trait_item. fn_has_self_parameter,
@@ -1297,7 +1297,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1297
1297
} else {
1298
1298
hir:: Constness :: NotConst
1299
1299
} ;
1300
- self . tables . impl_constness . set ( def_id. index , constness) ;
1300
+ self . tables . constness . set ( def_id. index , constness) ;
1301
1301
record ! ( self . tables. kind[ def_id] <- EntryKind :: AssocFn ( self . lazy( AssocFnData {
1302
1302
container,
1303
1303
has_self: impl_item. fn_has_self_parameter,
@@ -1420,7 +1420,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1420
1420
hir:: ItemKind :: Fn ( ref sig, .., body) => {
1421
1421
self . tables . asyncness . set ( def_id. index , sig. header . asyncness ) ;
1422
1422
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 ) ;
1424
1424
EntryKind :: Fn
1425
1425
}
1426
1426
hir:: ItemKind :: Macro ( ref macro_def, _) => {
@@ -1444,7 +1444,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1444
1444
hir:: ItemKind :: Struct ( ref struct_def, _) => {
1445
1445
let adt_def = self . tcx . adt_def ( def_id) ;
1446
1446
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 ) ;
1448
1448
1449
1449
// Encode def_ids for each field and method
1450
1450
// for methods, write all the stuff get_trait_method
@@ -1475,7 +1475,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1475
1475
}
1476
1476
hir:: ItemKind :: Impl ( hir:: Impl { defaultness, constness, .. } ) => {
1477
1477
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) ;
1479
1479
1480
1480
let trait_ref = self . tcx . impl_trait_ref ( def_id) ;
1481
1481
if let Some ( trait_ref) = trait_ref {
@@ -1941,7 +1941,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1941
1941
} else {
1942
1942
hir:: Constness :: NotConst
1943
1943
} ;
1944
- self . tables . impl_constness . set ( def_id. index , constness) ;
1944
+ self . tables . constness . set ( def_id. index , constness) ;
1945
1945
record ! ( self . tables. kind[ def_id] <- EntryKind :: ForeignFn ) ;
1946
1946
}
1947
1947
hir:: ForeignItemKind :: Static ( ..) => {
0 commit comments