mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Don't use non cache syntaxnodes in generate_function for lookups
This commit is contained in:
parent
c1a7169bf0
commit
37ad9cb2a5
4 changed files with 32 additions and 40 deletions
|
@ -884,6 +884,7 @@ to_def_impls![
|
|||
(crate::Local, ast::IdentPat, bind_pat_to_def),
|
||||
(crate::Local, ast::SelfParam, self_param_to_def),
|
||||
(crate::Label, ast::Label, label_to_def),
|
||||
(crate::Adt, ast::Adt, adt_to_def),
|
||||
];
|
||||
|
||||
fn find_root(node: &SyntaxNode) -> SyntaxNode {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue