mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
internal: Don't unnecessarily clone ModPaths in early name res
This commit is contained in:
parent
72dfbe95de
commit
855282fa53
12 changed files with 29 additions and 30 deletions
|
@ -719,12 +719,12 @@ impl<'a> AssocItemCollector<'a> {
|
|||
let MacroCall { ast_id, expand_to, ctxt, ref path } = item_tree[call];
|
||||
let module = self.expander.module.local_id;
|
||||
|
||||
let resolver = |path| {
|
||||
let resolver = |path: &_| {
|
||||
self.def_map
|
||||
.resolve_path(
|
||||
self.db,
|
||||
module,
|
||||
&path,
|
||||
path,
|
||||
crate::item_scope::BuiltinShadowMode::Other,
|
||||
Some(MacroSubNs::Bang),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue