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

@ -56,7 +56,7 @@ impl Expander {
&mut self,
db: &dyn DefDatabase,
macro_call: ast::MacroCall,
resolver: impl Fn(ModPath) -> Option<MacroId>,
resolver: impl Fn(&ModPath) -> Option<MacroId>,
) -> Result<ExpandResult<Option<(Mark, Parse<T>)>>, UnresolvedMacro> {
// FIXME: within_limit should support this, instead of us having to extract the error
let mut unresolved_macro_err = None;