@@ -22,7 +22,6 @@ use crate::mir::{
22
22
} ;
23
23
use crate :: traits;
24
24
use crate :: traits:: { Clause , Clauses , Goal , GoalKind , Goals } ;
25
- use crate :: ty:: free_region_map:: FreeRegionMap ;
26
25
use crate :: ty:: layout:: { LayoutDetails , TargetDataLayout , VariantIdx } ;
27
26
use crate :: ty:: query;
28
27
use crate :: ty:: steal:: Steal ;
@@ -415,11 +414,6 @@ pub struct TypeckTables<'tcx> {
415
414
/// this field will be set to `true`.
416
415
pub tainted_by_errors : bool ,
417
416
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
-
423
417
/// All the opaque types that are restricted to concrete types
424
418
/// by this function.
425
419
pub concrete_opaque_types : FxHashMap < DefId , ResolvedOpaqueTy < ' tcx > > ,
@@ -455,7 +449,6 @@ impl<'tcx> TypeckTables<'tcx> {
455
449
coercion_casts : Default :: default ( ) ,
456
450
used_trait_imports : Lrc :: new ( Default :: default ( ) ) ,
457
451
tainted_by_errors : false ,
458
- free_region_map : Default :: default ( ) ,
459
452
concrete_opaque_types : Default :: default ( ) ,
460
453
upvar_list : Default :: default ( ) ,
461
454
generator_interior_types : Default :: default ( ) ,
@@ -718,7 +711,6 @@ impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for TypeckTables<'tcx> {
718
711
719
712
ref used_trait_imports,
720
713
tainted_by_errors,
721
- ref free_region_map,
722
714
ref concrete_opaque_types,
723
715
ref upvar_list,
724
716
ref generator_interior_types,
@@ -756,7 +748,6 @@ impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for TypeckTables<'tcx> {
756
748
coercion_casts. hash_stable ( hcx, hasher) ;
757
749
used_trait_imports. hash_stable ( hcx, hasher) ;
758
750
tainted_by_errors. hash_stable ( hcx, hasher) ;
759
- free_region_map. hash_stable ( hcx, hasher) ;
760
751
concrete_opaque_types. hash_stable ( hcx, hasher) ;
761
752
upvar_list. hash_stable ( hcx, hasher) ;
762
753
generator_interior_types. hash_stable ( hcx, hasher) ;
0 commit comments