@@ -231,7 +231,11 @@ pub struct TypeckTables<'tcx> {
231231 /// of the struct - this is needed because it is non-trivial to
232232 /// normalize while preserving regions. This table is used only in
233233 /// 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 > ,
235239}
236240
237241impl < ' tcx > TypeckTables < ' tcx > {
@@ -246,7 +250,8 @@ impl<'tcx> TypeckTables<'tcx> {
246250 closure_tys : NodeMap ( ) ,
247251 closure_kinds : NodeMap ( ) ,
248252 liberated_fn_sigs : NodeMap ( ) ,
249- fru_field_types : NodeMap ( )
253+ fru_field_types : NodeMap ( ) ,
254+ cast_kinds : NodeMap ( ) ,
250255 }
251256 }
252257
@@ -533,10 +538,6 @@ pub struct GlobalCtxt<'tcx> {
533538 /// expression defining the closure.
534539 pub closure_kinds : RefCell < DepTrackingMap < maps:: ClosureKinds < ' tcx > > > ,
535540
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-
540541 /// Maps Fn items to a collection of fragment infos.
541542 ///
542543 /// 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> {
792793 custom_coerce_unsized_kinds : RefCell :: new ( DefIdMap ( ) ) ,
793794 closure_tys : RefCell :: new ( DepTrackingMap :: new ( dep_graph. clone ( ) ) ) ,
794795 closure_kinds : RefCell :: new ( DepTrackingMap :: new ( dep_graph. clone ( ) ) ) ,
795- cast_kinds : RefCell :: new ( NodeMap ( ) ) ,
796796 fragment_infos : RefCell :: new ( DefIdMap ( ) ) ,
797797 crate_name : Symbol :: intern ( crate_name) ,
798798 data_layout : data_layout,
0 commit comments