rust-analyzer/crates
bors 88b3d9f6f4 Auto merge of #14144 - lowr:fix/find-occurrence-of-raw-ident, r=Veykril
fix: Search raw identifiers without prefix

When we find references/usages of a raw identifier, we should disregard `r#` prefix because there are keywords one can use without the prefix in earlier editions (see #13034; this bug is actually fallout from the PR). `name`, the text we're searching for, has already been stripped of the prefix, but the text of nodes we compare it to hasn't been.

The second commit is strictly refactoring, I can remove it if it's not much of value.
2023-02-14 11:15:55 +00:00
..
base-db ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
cfg ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
flycheck ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
hir ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
hir-def Auto merge of #14122 - lowr:patch/abort-macro-expansion-on-overflow, r=Veykril 2023-02-14 07:37:53 +00:00
hir-expand Auto merge of #14122 - lowr:patch/abort-macro-expansion-on-overflow, r=Veykril 2023-02-14 07:37:53 +00:00
hir-ty ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
ide Auto merge of #14144 - lowr:fix/find-occurrence-of-raw-ident, r=Veykril 2023-02-14 11:15:55 +00:00
ide-assists ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
ide-completion ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
ide-db Auto merge of #14144 - lowr:fix/find-occurrence-of-raw-ident, r=Veykril 2023-02-14 11:15:55 +00:00
ide-diagnostics ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
ide-ssr ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
intern ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
limit ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
mbe ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
parser ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
paths ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
proc-macro-api ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
proc-macro-srv ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
proc-macro-srv-cli ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
proc-macro-test ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
profile ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
project-model ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
rust-analyzer Support UTF-32 position encoding 2023-02-14 01:09:50 +00:00
sourcegen ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
stdx Support UTF-32 position encoding 2023-02-14 01:09:50 +00:00
syntax ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
test-utils ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
text-edit ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
toolchain ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
tt ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
vfs ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
vfs-notify ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00