@@ -51,9 +51,7 @@ use rustc_errors::{Applicability, Diag, ErrCode, ErrorGuaranteed};
51
51
use rustc_expand:: base:: { DeriveResolution , SyntaxExtension , SyntaxExtensionKind } ;
52
52
use rustc_feature:: BUILTIN_ATTRIBUTES ;
53
53
use 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 } ;
57
55
use rustc_hir:: def_id:: { CRATE_DEF_ID , CrateNum , DefId , LOCAL_CRATE , LocalDefId , LocalDefIdMap } ;
58
56
use rustc_hir:: { PrimTy , TraitCandidate } ;
59
57
use rustc_index:: IndexVec ;
@@ -1073,8 +1071,8 @@ pub struct Resolver<'ra, 'tcx> {
1073
1071
import_res_map : NodeMap < PerNS < Option < Res > > > ,
1074
1072
/// An import will be inserted into this map if it has been used.
1075
1073
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 > > ,
1078
1076
1079
1077
/// `CrateNum` resolutions of `extern crate` items.
1080
1078
extern_crate_map : UnordMap < LocalDefId , CrateNum > ,
@@ -1492,7 +1490,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
1492
1490
partial_res_map : Default :: default ( ) ,
1493
1491
import_res_map : Default :: default ( ) ,
1494
1492
import_use_map : Default :: default ( ) ,
1495
- extra_lifetime_params_map : Default :: default ( ) ,
1493
+ extra_diagnostics_lifetime_params_map : Default :: default ( ) ,
1496
1494
extern_crate_map : Default :: default ( ) ,
1497
1495
module_children : Default :: default ( ) ,
1498
1496
underscore_disambiguator : 0 ,
@@ -1694,7 +1692,6 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
1694
1692
owners : self . owners ,
1695
1693
partial_res_map : self . partial_res_map ,
1696
1694
import_res_map : self . import_res_map ,
1697
- extra_lifetime_params_map : self . extra_lifetime_params_map ,
1698
1695
next_node_id : self . next_node_id ,
1699
1696
lint_buffer : Steal :: new ( self . lint_buffer ) ,
1700
1697
delegation_fn_sigs : self . delegation_fn_sigs ,
0 commit comments