@@ -1364,8 +1364,6 @@ pub struct Resolver<'ra, 'tcx> {
13641364
13651365 /// Resolutions for nodes that have a single resolution.
13661366 partial_res_map : NodeMap < PartialRes > = Default :: default ( ) ,
1367- /// Resolutions for import nodes, which have multiple resolutions in different namespaces.
1368- import_res_map : NodeMap < PerNS < Option < Res > > > = Default :: default ( ) ,
13691367 /// An import will be inserted into this map if it has been used.
13701368 import_use_map : FxHashMap < Import < ' ra > , Used > = default:: fx_hash_map ( ) ,
13711369 /// Lifetime parameters that lowering will have to introduce.
@@ -1375,7 +1373,6 @@ pub struct Resolver<'ra, 'tcx> {
13751373 extern_crate_map : UnordMap < LocalDefId , CrateNum > = Default :: default ( ) ,
13761374 module_children : LocalDefIdMap < Vec < ModChild > > = Default :: default ( ) ,
13771375 ambig_module_children : LocalDefIdMap < Vec < AmbigModChild > > = Default :: default ( ) ,
1378- trait_map : NodeMap < & ' tcx [ TraitCandidate < ' tcx > ] > = Default :: default ( ) ,
13791376
13801377 /// A map from nodes to anonymous modules.
13811378 /// Anonymous modules are pseudo-modules that are implicitly created around items
@@ -1490,10 +1487,10 @@ pub struct Resolver<'ra, 'tcx> {
14901487 next_node_id : NodeId = CRATE_NODE_ID ,
14911488
14921489 /// Preserves per owner data once the owner is finished resolving.
1493- owners : NodeMap < PerOwnerResolverData > ,
1490+ owners : NodeMap < PerOwnerResolverData < ' tcx > > ,
14941491
14951492 /// An entry of `owners` that gets taken out and reinserted whenever an owner is handled.
1496- current_owner : PerOwnerResolverData ,
1493+ current_owner : PerOwnerResolverData < ' tcx > ,
14971494
14981495 disambiguators : LocalDefIdMap < PerParentDisambiguatorState > ,
14991496
@@ -1997,11 +1994,9 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
19971994 } ;
19981995 let ast_lowering = ty:: ResolverAstLowering {
19991996 partial_res_map : self . partial_res_map ,
2000- import_res_map : self . import_res_map ,
20011997 extra_lifetime_params_map : self . extra_lifetime_params_map ,
20021998 next_node_id : self . next_node_id ,
20031999 owners : self . owners ,
2004- trait_map : self . trait_map ,
20052000 lint_buffer : Steal :: new ( self . lint_buffer ) ,
20062001 delegation_infos : self . delegation_infos ,
20072002 disambiguators,
@@ -2658,7 +2653,7 @@ fn with_owner<'ra, 'tcx, R: AsMut<Resolver<'ra, 'tcx>>, T>(
26582653fn with_owner_tables < ' ra , ' tcx , R : AsMut < Resolver < ' ra , ' tcx > > , T > (
26592654 this : & mut R ,
26602655 owner : NodeId ,
2661- tables : PerOwnerResolverData ,
2656+ tables : PerOwnerResolverData < ' tcx > ,
26622657 work : impl FnOnce ( & mut R ) -> T ,
26632658) -> T {
26642659 debug_assert ! ( !this. as_mut( ) . owners. contains_key( & owner) ) ;
0 commit comments