@@ -762,11 +762,9 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
762762     /// reference to the context, to allow formatting values that need it. 
763763     pub  fn  create_and_enter < F ,  R > ( s :  & ' tcx  Session , 
764764                                  arenas :  & ' tcx  CtxtArenas < ' tcx > , 
765-                                   trait_map :   TraitMap , 
765+                                   resolutions :  ty :: Resolutions , 
766766                                  named_region_map :  resolve_lifetime:: NamedRegionMap , 
767767                                  map :  ast_map:: Map < ' tcx > , 
768-                                   freevars :  FreevarMap , 
769-                                  maybe_unused_trait_imports :  NodeSet , 
770768                                  region_maps :  RegionMaps , 
771769                                  lang_items :  middle:: lang_items:: LanguageItems , 
772770                                  stability :  stability:: Index < ' tcx > , 
@@ -790,7 +788,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
790788            item_variance_map :  RefCell :: new ( DepTrackingMap :: new ( dep_graph. clone ( ) ) ) , 
791789            variance_computed :  Cell :: new ( false ) , 
792790            sess :  s, 
793-             trait_map :  trait_map, 
791+             trait_map :  resolutions . trait_map , 
794792            tables :  RefCell :: new ( Tables :: empty ( ) ) , 
795793            impl_trait_refs :  RefCell :: new ( DepTrackingMap :: new ( dep_graph. clone ( ) ) ) , 
796794            trait_defs :  RefCell :: new ( DepTrackingMap :: new ( dep_graph. clone ( ) ) ) , 
@@ -802,8 +800,8 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
802800            fulfilled_predicates :  RefCell :: new ( fulfilled_predicates) , 
803801            map :  map, 
804802            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 , 
807805            item_types :  RefCell :: new ( DepTrackingMap :: new ( dep_graph. clone ( ) ) ) , 
808806            rcache :  RefCell :: new ( FxHashMap ( ) ) , 
809807            tc_cache :  RefCell :: new ( FxHashMap ( ) ) , 
0 commit comments