@@ -22,7 +22,6 @@ use crate::mir::{
2222} ;
2323use crate :: traits;
2424use crate :: traits:: { Clause , Clauses , Goal , GoalKind , Goals } ;
25- use crate :: ty:: free_region_map:: FreeRegionMap ;
2625use crate :: ty:: layout:: { LayoutDetails , TargetDataLayout , VariantIdx } ;
2726use crate :: ty:: query;
2827use crate :: ty:: steal:: Steal ;
@@ -415,11 +414,6 @@ pub struct TypeckTables<'tcx> {
415414 /// this field will be set to `true`.
416415 pub tainted_by_errors : bool ,
417416
418- /// Stores the free-region relationships that were deduced from
419- /// its where-clauses and parameter types. These are then
420- /// read-again by borrowck.
421- pub free_region_map : FreeRegionMap < ' tcx > ,
422-
423417 /// All the opaque types that are restricted to concrete types
424418 /// by this function.
425419 pub concrete_opaque_types : FxHashMap < DefId , ResolvedOpaqueTy < ' tcx > > ,
@@ -455,7 +449,6 @@ impl<'tcx> TypeckTables<'tcx> {
455449 coercion_casts : Default :: default ( ) ,
456450 used_trait_imports : Lrc :: new ( Default :: default ( ) ) ,
457451 tainted_by_errors : false ,
458- free_region_map : Default :: default ( ) ,
459452 concrete_opaque_types : Default :: default ( ) ,
460453 upvar_list : Default :: default ( ) ,
461454 generator_interior_types : Default :: default ( ) ,
@@ -718,7 +711,6 @@ impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for TypeckTables<'tcx> {
718711
719712 ref used_trait_imports,
720713 tainted_by_errors,
721- ref free_region_map,
722714 ref concrete_opaque_types,
723715 ref upvar_list,
724716 ref generator_interior_types,
@@ -756,7 +748,6 @@ impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for TypeckTables<'tcx> {
756748 coercion_casts. hash_stable ( hcx, hasher) ;
757749 used_trait_imports. hash_stable ( hcx, hasher) ;
758750 tainted_by_errors. hash_stable ( hcx, hasher) ;
759- free_region_map. hash_stable ( hcx, hasher) ;
760751 concrete_opaque_types. hash_stable ( hcx, hasher) ;
761752 upvar_list. hash_stable ( hcx, hasher) ;
762753 generator_interior_types. hash_stable ( hcx, hasher) ;
0 commit comments