mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22: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
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue