@@ -231,7 +231,11 @@ pub struct TypeckTables<'tcx> {
231
231
/// of the struct - this is needed because it is non-trivial to
232
232
/// normalize while preserving regions. This table is used only in
233
233
/// MIR construction and hence is not serialized to metadata.
234
- pub fru_field_types : NodeMap < Vec < Ty < ' tcx > > >
234
+ pub fru_field_types : NodeMap < Vec < Ty < ' tcx > > > ,
235
+
236
+ /// Maps a cast expression to its kind. This is keyed on the
237
+ /// *from* expression of the cast, not the cast itself.
238
+ pub cast_kinds : NodeMap < ty:: cast:: CastKind > ,
235
239
}
236
240
237
241
impl < ' tcx > TypeckTables < ' tcx > {
@@ -246,7 +250,8 @@ impl<'tcx> TypeckTables<'tcx> {
246
250
closure_tys : NodeMap ( ) ,
247
251
closure_kinds : NodeMap ( ) ,
248
252
liberated_fn_sigs : NodeMap ( ) ,
249
- fru_field_types : NodeMap ( )
253
+ fru_field_types : NodeMap ( ) ,
254
+ cast_kinds : NodeMap ( ) ,
250
255
}
251
256
}
252
257
@@ -533,10 +538,6 @@ pub struct GlobalCtxt<'tcx> {
533
538
/// expression defining the closure.
534
539
pub closure_kinds : RefCell < DepTrackingMap < maps:: ClosureKinds < ' tcx > > > ,
535
540
536
- /// Maps a cast expression to its kind. This is keyed on the
537
- /// *from* expression of the cast, not the cast itself.
538
- pub cast_kinds : RefCell < NodeMap < ty:: cast:: CastKind > > ,
539
-
540
541
/// Maps Fn items to a collection of fragment infos.
541
542
///
542
543
/// The main goal is to identify data (each of which may be moved
@@ -792,7 +793,6 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
792
793
custom_coerce_unsized_kinds : RefCell :: new ( DefIdMap ( ) ) ,
793
794
closure_tys : RefCell :: new ( DepTrackingMap :: new ( dep_graph. clone ( ) ) ) ,
794
795
closure_kinds : RefCell :: new ( DepTrackingMap :: new ( dep_graph. clone ( ) ) ) ,
795
- cast_kinds : RefCell :: new ( NodeMap ( ) ) ,
796
796
fragment_infos : RefCell :: new ( DefIdMap ( ) ) ,
797
797
crate_name : Symbol :: intern ( crate_name) ,
798
798
data_layout : data_layout,
0 commit comments