internal: Don't unnecessarily clone ModPaths in early name res

This commit is contained in:
Lukas Wirth 2024-06-12 11:25:19 +02:00
parent 72dfbe95de
commit 855282fa53
12 changed files with 29 additions and 30 deletions

View file

@ -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),
)