@@ -762,11 +762,9 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
762
762
/// reference to the context, to allow formatting values that need it.
763
763
pub fn create_and_enter < F , R > ( s : & ' tcx Session ,
764
764
arenas : & ' tcx CtxtArenas < ' tcx > ,
765
- trait_map : TraitMap ,
765
+ resolutions : ty :: Resolutions ,
766
766
named_region_map : resolve_lifetime:: NamedRegionMap ,
767
767
map : ast_map:: Map < ' tcx > ,
768
- freevars : FreevarMap ,
769
- maybe_unused_trait_imports : NodeSet ,
770
768
region_maps : RegionMaps ,
771
769
lang_items : middle:: lang_items:: LanguageItems ,
772
770
stability : stability:: Index < ' tcx > ,
@@ -790,7 +788,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
790
788
item_variance_map : RefCell :: new ( DepTrackingMap :: new ( dep_graph. clone ( ) ) ) ,
791
789
variance_computed : Cell :: new ( false ) ,
792
790
sess : s,
793
- trait_map : trait_map,
791
+ trait_map : resolutions . trait_map ,
794
792
tables : RefCell :: new ( Tables :: empty ( ) ) ,
795
793
impl_trait_refs : RefCell :: new ( DepTrackingMap :: new ( dep_graph. clone ( ) ) ) ,
796
794
trait_defs : RefCell :: new ( DepTrackingMap :: new ( dep_graph. clone ( ) ) ) ,
@@ -802,8 +800,8 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
802
800
fulfilled_predicates : RefCell :: new ( fulfilled_predicates) ,
803
801
map : map,
804
802
mir_map : RefCell :: new ( DepTrackingMap :: new ( dep_graph. clone ( ) ) ) ,
805
- freevars : RefCell :: new ( freevars) ,
806
- maybe_unused_trait_imports : maybe_unused_trait_imports,
803
+ freevars : RefCell :: new ( resolutions . freevars ) ,
804
+ maybe_unused_trait_imports : resolutions . maybe_unused_trait_imports ,
807
805
item_types : RefCell :: new ( DepTrackingMap :: new ( dep_graph. clone ( ) ) ) ,
808
806
rcache : RefCell :: new ( FxHashMap ( ) ) ,
809
807
tc_cache : RefCell :: new ( FxHashMap ( ) ) ,
0 commit comments