@@ -23,7 +23,6 @@ use crate::mir::{
23
23
} ;
24
24
use crate :: traits;
25
25
use crate :: traits:: { Clause , Clauses , Goal , GoalKind , Goals } ;
26
- use crate :: ty:: free_region_map:: FreeRegionMap ;
27
26
use crate :: ty:: layout:: { LayoutDetails , TargetDataLayout , VariantIdx } ;
28
27
use crate :: ty:: query;
29
28
use crate :: ty:: steal:: Steal ;
@@ -416,11 +415,6 @@ pub struct TypeckTables<'tcx> {
416
415
/// this field will be set to `true`.
417
416
pub tainted_by_errors : bool ,
418
417
419
- /// Stores the free-region relationships that were deduced from
420
- /// its where-clauses and parameter types. These are then
421
- /// read-again by borrowck.
422
- pub free_region_map : FreeRegionMap < ' tcx > ,
423
-
424
418
/// All the opaque types that are restricted to concrete types
425
419
/// by this function.
426
420
pub concrete_opaque_types : FxHashMap < DefId , ResolvedOpaqueTy < ' tcx > > ,
@@ -456,7 +450,6 @@ impl<'tcx> TypeckTables<'tcx> {
456
450
coercion_casts : Default :: default ( ) ,
457
451
used_trait_imports : Lrc :: new ( Default :: default ( ) ) ,
458
452
tainted_by_errors : false ,
459
- free_region_map : Default :: default ( ) ,
460
453
concrete_opaque_types : Default :: default ( ) ,
461
454
upvar_list : Default :: default ( ) ,
462
455
generator_interior_types : Default :: default ( ) ,
@@ -719,7 +712,6 @@ impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for TypeckTables<'tcx> {
719
712
720
713
ref used_trait_imports,
721
714
tainted_by_errors,
722
- ref free_region_map,
723
715
ref concrete_opaque_types,
724
716
ref upvar_list,
725
717
ref generator_interior_types,
@@ -757,7 +749,6 @@ impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for TypeckTables<'tcx> {
757
749
coercion_casts. hash_stable ( hcx, hasher) ;
758
750
used_trait_imports. hash_stable ( hcx, hasher) ;
759
751
tainted_by_errors. hash_stable ( hcx, hasher) ;
760
- free_region_map. hash_stable ( hcx, hasher) ;
761
752
concrete_opaque_types. hash_stable ( hcx, hasher) ;
762
753
upvar_list. hash_stable ( hcx, hasher) ;
763
754
generator_interior_types. hash_stable ( hcx, hasher) ;
0 commit comments