resolve: Stop passing unused spans and node ids to path resolution functions
This commit is contained in:
parent
15a8b981e0
commit
74d079d566
8 changed files with 189 additions and 268 deletions
|
@ -296,8 +296,7 @@ impl<'a, 'b> BuildReducedGraphVisitor<'a, 'b> {
|
|||
&segments,
|
||||
Some(TypeNS),
|
||||
parent_scope,
|
||||
path.span,
|
||||
if speculative { CrateLint::No } else { CrateLint::SimplePath(id) },
|
||||
if speculative { CrateLint::No } else { CrateLint::SimplePath(id, path.span) },
|
||||
) {
|
||||
PathResult::Module(ModuleOrUniformRoot::Module(module)) => {
|
||||
let res = module.res().expect("visibility resolved to unnamed block");
|
||||
|
@ -1130,8 +1129,7 @@ impl<'a, 'b> BuildReducedGraphVisitor<'a, 'b> {
|
|||
ident,
|
||||
MacroNS,
|
||||
&self.parent_scope,
|
||||
false,
|
||||
ident.span,
|
||||
None,
|
||||
);
|
||||
if let Ok(binding) = result {
|
||||
let import = macro_use_import(self, ident.span);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue