mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +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
|
@ -403,12 +403,12 @@ impl GenericParamsCollector {
|
|||
let (def_map, expander) = &mut **exp;
|
||||
|
||||
let module = expander.module.local_id;
|
||||
let resolver = |path| {
|
||||
let resolver = |path: &_| {
|
||||
def_map
|
||||
.resolve_path(
|
||||
db,
|
||||
module,
|
||||
&path,
|
||||
path,
|
||||
crate::item_scope::BuiltinShadowMode::Other,
|
||||
Some(MacroSubNs::Bang),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue