resolve: Scope visiting doesn't need an Ident
This commit is contained in:
parent
bf5f30684a
commit
3ff866ed7c
6 changed files with 90 additions and 57 deletions
|
@ -618,8 +618,9 @@ impl<'a> Resolver<'a> {
|
|||
let break_result = self.visit_scopes(
|
||||
scope_set,
|
||||
parent_scope,
|
||||
orig_ident,
|
||||
|this, scope, use_prelude, ident| {
|
||||
orig_ident.span.ctxt(),
|
||||
|this, scope, use_prelude, ctxt| {
|
||||
let ident = Ident::new(orig_ident.name, orig_ident.span.with_ctxt(ctxt));
|
||||
let ok = |res, span, arenas| {
|
||||
Ok((
|
||||
(res, ty::Visibility::Public, span, ExpnId::root()).to_name_binding(arenas),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue