@@ -74,11 +74,11 @@ struct LegacyMacroImports {
74
74
reexports : Vec < ( Name , Span ) > ,
75
75
}
76
76
77
- impl < ' b > Resolver < ' b > {
77
+ impl < ' a > Resolver < ' a > {
78
78
/// Defines `name` in namespace `ns` of module `parent` to be `def` if it is not yet defined;
79
79
/// otherwise, reports an error.
80
- fn define < T > ( & mut self , parent : Module < ' b > , ident : Ident , ns : Namespace , def : T )
81
- where T : ToNameBinding < ' b > ,
80
+ fn define < T > ( & mut self , parent : Module < ' a > , ident : Ident , ns : Namespace , def : T )
81
+ where T : ToNameBinding < ' a > ,
82
82
{
83
83
let binding = def. to_name_binding ( self . arenas ) ;
84
84
if let Err ( old_binding) = self . try_define ( parent, ident, ns, binding) {
@@ -363,7 +363,7 @@ impl<'b> Resolver<'b> {
363
363
// type and value namespaces.
364
364
fn build_reduced_graph_for_variant ( & mut self ,
365
365
variant : & Variant ,
366
- parent : Module < ' b > ,
366
+ parent : Module < ' a > ,
367
367
vis : ty:: Visibility ,
368
368
expansion : Mark ) {
369
369
let ident = variant. node . name ;
@@ -412,7 +412,7 @@ impl<'b> Resolver<'b> {
412
412
}
413
413
414
414
/// Builds the reduced graph for a single item in an external crate.
415
- fn build_reduced_graph_for_external_crate_def ( & mut self , parent : Module < ' b > , child : Export ) {
415
+ fn build_reduced_graph_for_external_crate_def ( & mut self , parent : Module < ' a > , child : Export ) {
416
416
let ident = Ident :: with_empty_ctxt ( child. name ) ;
417
417
let def = child. def ;
418
418
let def_id = def. def_id ( ) ;
@@ -488,7 +488,7 @@ impl<'b> Resolver<'b> {
488
488
}
489
489
}
490
490
491
- fn get_extern_crate_root ( & mut self , cnum : CrateNum ) -> Module < ' b > {
491
+ fn get_extern_crate_root ( & mut self , cnum : CrateNum ) -> Module < ' a > {
492
492
let def_id = DefId { krate : cnum, index : CRATE_DEF_INDEX } ;
493
493
let macros_only = self . session . cstore . dep_kind ( cnum) . macros_only ( ) ;
494
494
let arenas = self . arenas ;
@@ -531,7 +531,7 @@ impl<'b> Resolver<'b> {
531
531
532
532
/// Ensures that the reduced graph rooted at the given external module
533
533
/// is built, building it if it is not.
534
- pub fn populate_module_if_necessary ( & mut self , module : Module < ' b > ) {
534
+ pub fn populate_module_if_necessary ( & mut self , module : Module < ' a > ) {
535
535
if module. populated . get ( ) { return }
536
536
for child in self . session . cstore . item_children ( module. def_id ( ) . unwrap ( ) ) {
537
537
self . build_reduced_graph_for_external_crate_def ( module, child) ;
@@ -541,7 +541,7 @@ impl<'b> Resolver<'b> {
541
541
542
542
fn legacy_import_macro ( & mut self ,
543
543
name : Name ,
544
- binding : & ' b NameBinding < ' b > ,
544
+ binding : & ' a NameBinding < ' a > ,
545
545
span : Span ,
546
546
allow_shadowing : bool ) {
547
547
self . used_crates . insert ( binding. def ( ) . def_id ( ) . krate ) ;
@@ -554,7 +554,7 @@ impl<'b> Resolver<'b> {
554
554
}
555
555
}
556
556
557
- fn process_legacy_macro_imports ( & mut self , item : & Item , module : Module < ' b > , expansion : Mark ) {
557
+ fn process_legacy_macro_imports ( & mut self , item : & Item , module : Module < ' a > , expansion : Mark ) {
558
558
let allow_shadowing = expansion == Mark :: root ( ) ;
559
559
let legacy_imports = self . legacy_macro_imports ( & item. attrs ) ;
560
560
let cnum = module. def_id ( ) . unwrap ( ) . krate ;
0 commit comments