@@ -51,9 +51,7 @@ use rustc_errors::{Applicability, Diag, ErrCode, ErrorGuaranteed};
5151use rustc_expand:: base:: { DeriveResolution , SyntaxExtension , SyntaxExtensionKind } ;
5252use rustc_feature:: BUILTIN_ATTRIBUTES ;
5353use rustc_hir:: def:: Namespace :: { self , * } ;
54- use rustc_hir:: def:: {
55- self , CtorOf , DefKind , DocLinkResMap , LifetimeRes , NonMacroAttrKind , PartialRes , PerNS ,
56- } ;
54+ use rustc_hir:: def:: { self , CtorOf , DefKind , DocLinkResMap , NonMacroAttrKind , PartialRes , PerNS } ;
5755use rustc_hir:: def_id:: { CRATE_DEF_ID , CrateNum , DefId , LOCAL_CRATE , LocalDefId , LocalDefIdMap } ;
5856use rustc_hir:: { PrimTy , TraitCandidate } ;
5957use rustc_index:: IndexVec ;
@@ -1073,8 +1071,8 @@ pub struct Resolver<'ra, 'tcx> {
10731071 import_res_map : NodeMap < PerNS < Option < Res > > > ,
10741072 /// An import will be inserted into this map if it has been used.
10751073 import_use_map : FxHashMap < Import < ' ra > , Used > ,
1076- /// Lifetime parameters that lowering will have to introduce .
1077- extra_lifetime_params_map : NodeMap < Vec < ( Ident , NodeId , LifetimeRes ) > > ,
1074+ /// Lifetimes that have no AST that got generated on the fly .
1075+ extra_diagnostics_lifetime_params_map : NodeMap < Vec < Span > > ,
10781076
10791077 /// `CrateNum` resolutions of `extern crate` items.
10801078 extern_crate_map : UnordMap < LocalDefId , CrateNum > ,
@@ -1492,7 +1490,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
14921490 partial_res_map : Default :: default ( ) ,
14931491 import_res_map : Default :: default ( ) ,
14941492 import_use_map : Default :: default ( ) ,
1495- extra_lifetime_params_map : Default :: default ( ) ,
1493+ extra_diagnostics_lifetime_params_map : Default :: default ( ) ,
14961494 extern_crate_map : Default :: default ( ) ,
14971495 module_children : Default :: default ( ) ,
14981496 underscore_disambiguator : 0 ,
@@ -1694,7 +1692,6 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
16941692 owners : self . owners ,
16951693 partial_res_map : self . partial_res_map ,
16961694 import_res_map : self . import_res_map ,
1697- extra_lifetime_params_map : self . extra_lifetime_params_map ,
16981695 next_node_id : self . next_node_id ,
16991696 lint_buffer : Steal :: new ( self . lint_buffer ) ,
17001697 delegation_fn_sigs : self . delegation_fn_sigs ,
0 commit comments