Skip to content

Commit 4d638fd

Browse files
committed
Canonicalize lifetime names.
1 parent 532b013 commit 4d638fd

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/librustc_resolve/build_reduced_graph.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ struct LegacyMacroImports {
7474
reexports: Vec<(Name, Span)>,
7575
}
7676

77-
impl<'b> Resolver<'b> {
77+
impl<'a> Resolver<'a> {
7878
/// Defines `name` in namespace `ns` of module `parent` to be `def` if it is not yet defined;
7979
/// 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>,
8282
{
8383
let binding = def.to_name_binding(self.arenas);
8484
if let Err(old_binding) = self.try_define(parent, ident, ns, binding) {
@@ -363,7 +363,7 @@ impl<'b> Resolver<'b> {
363363
// type and value namespaces.
364364
fn build_reduced_graph_for_variant(&mut self,
365365
variant: &Variant,
366-
parent: Module<'b>,
366+
parent: Module<'a>,
367367
vis: ty::Visibility,
368368
expansion: Mark) {
369369
let ident = variant.node.name;
@@ -412,7 +412,7 @@ impl<'b> Resolver<'b> {
412412
}
413413

414414
/// 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) {
416416
let ident = Ident::with_empty_ctxt(child.name);
417417
let def = child.def;
418418
let def_id = def.def_id();
@@ -488,7 +488,7 @@ impl<'b> Resolver<'b> {
488488
}
489489
}
490490

491-
fn get_extern_crate_root(&mut self, cnum: CrateNum) -> Module<'b> {
491+
fn get_extern_crate_root(&mut self, cnum: CrateNum) -> Module<'a> {
492492
let def_id = DefId { krate: cnum, index: CRATE_DEF_INDEX };
493493
let macros_only = self.session.cstore.dep_kind(cnum).macros_only();
494494
let arenas = self.arenas;
@@ -531,7 +531,7 @@ impl<'b> Resolver<'b> {
531531

532532
/// Ensures that the reduced graph rooted at the given external module
533533
/// 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>) {
535535
if module.populated.get() { return }
536536
for child in self.session.cstore.item_children(module.def_id().unwrap()) {
537537
self.build_reduced_graph_for_external_crate_def(module, child);
@@ -541,7 +541,7 @@ impl<'b> Resolver<'b> {
541541

542542
fn legacy_import_macro(&mut self,
543543
name: Name,
544-
binding: &'b NameBinding<'b>,
544+
binding: &'a NameBinding<'a>,
545545
span: Span,
546546
allow_shadowing: bool) {
547547
self.used_crates.insert(binding.def().def_id().krate);
@@ -554,7 +554,7 @@ impl<'b> Resolver<'b> {
554554
}
555555
}
556556

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) {
558558
let allow_shadowing = expansion == Mark::root();
559559
let legacy_imports = self.legacy_macro_imports(&item.attrs);
560560
let cnum = module.def_id().unwrap().krate;

0 commit comments

Comments
 (0)