resolve: Remove ImportResolver
It's a trivial wrapper over `Resolver` that doesn't bring any benefits
This commit is contained in:
parent
3b4d6e0804
commit
d275114bda
4 changed files with 87 additions and 103 deletions
|
@ -1,7 +1,6 @@
|
|||
//! A bunch of methods and structures more or less related to resolving macros and
|
||||
//! interface provided by `Resolver` to macro expander.
|
||||
|
||||
use crate::imports::ImportResolver;
|
||||
use crate::Namespace::*;
|
||||
use crate::{BuiltinMacroState, Determinacy};
|
||||
use crate::{DeriveData, Finalize, ParentScope, ResolutionError, Resolver, ScopeSet};
|
||||
|
@ -233,7 +232,7 @@ impl<'a, 'tcx> ResolverExpand for Resolver<'a, 'tcx> {
|
|||
}
|
||||
|
||||
fn resolve_imports(&mut self) {
|
||||
ImportResolver { r: self }.resolve_imports()
|
||||
self.resolve_imports()
|
||||
}
|
||||
|
||||
fn resolve_macro_invocation(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue