mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
fix: Fix completions panicking with certain macro setups
This commit is contained in:
parent
5fead606bc
commit
cc7fe32ba3
6 changed files with 19 additions and 6 deletions
|
@ -963,6 +963,7 @@ fn classify_name_ref(
|
|||
|
||||
match find_node_in_file_compensated(sema, original_file, &expr) {
|
||||
Some(it) => {
|
||||
// buggy
|
||||
let innermost_ret_ty = sema
|
||||
.ancestors_with_macros(it.syntax().clone())
|
||||
.find_map(find_ret_ty)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue