rust-analyzer/crates
bors 1a318965fe Auto merge of #14353 - lowr:fix/inline-call-bad-ast, r=Veykril
fix: don't replace `SyntaxToken` with `SyntaxNode`

Fixes #14339

When we inline method calls, we replace the `self` parameter with a local variable `this`. We have been replacing the `self` **tokens** with `NameRef` **nodes**, which makes the AST malformed. This leads to crash when we apply path transformation after the replacement (which only takes place when the method is generic and such scenario was not tested).
2023-03-15 09:32:34 +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-03-13 10:42:24 +02:00
hir Add signature help for record struct patterns 2023-03-14 21:55:03 +01:00
hir-def Add fundamental attributes to data 2023-03-14 20:16:41 +01:00
hir-expand Shrink ProcMacroExpander size 2023-03-13 16:49:38 +01:00
hir-ty Simplify 2023-03-14 20:22:11 +01:00
ide Add signature help for tuple struct patterns 2023-03-15 10:17:30 +01:00
ide-assists fix: don't replace SyntaxToken with SyntaxNode 2023-03-15 17:18:09 +09:00
ide-completion Fix tests 2023-03-14 19:55:20 +01:00
ide-db Add signature help for record struct patterns 2023-03-14 21:55:03 +01:00
ide-diagnostics do not offer fixit for macro expansions and refactor the code 2023-03-15 09:12:40 +08:00
ide-ssr ⬆️ rust-analyzer 2023-03-13 10:42:24 +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-20 10:14:12 +02:00
parser Add signature help for tuple struct patterns 2023-03-15 10:17:30 +01:00
paths ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
proc-macro-api ⬆️ rust-analyzer 2023-02-20 10:14:12 +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 Auto merge of #14348 - Veykril:rustc-proc, r=Veykril 2023-03-14 10:34:23 +00:00
rust-analyzer Auto merge of #14307 - davidbarsky:davidbarsky/add-cargo-style-project-discovery-for-buck-and-bazel-sickos, r=Veykril 2023-03-14 17:48:49 +00:00
sourcegen ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
stdx ⬆️ rust-analyzer 2023-02-20 10:14:12 +02:00
syntax fix: Only skip adjustment hints for block, if and match expressions for reborrows 2023-03-13 16:10:49 +01:00
test-utils lint incoherent inherent impls 2023-03-14 19:20:44 +01:00
text-edit ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
toolchain ⬆️ rust-analyzer 2023-03-13 10:42:24 +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