about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-03-15 09:32:34 +0000
committerbors <bors@rust-lang.org>2023-03-15 09:32:34 +0000
commit1a318965fe3f9afa153a620d4a261e68c9589c87 (patch)
treeeb55442e0b20f25538b5925cb8ae3c5215cb3392 /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parent05f95cbb0cc2c07d3f273838c6023e7dcfd0c0d3 (diff)
parent01bf0725b146b0cf71c21ec8452067f9bd3de1d8 (diff)
downloadrust-1a318965fe3f9afa153a620d4a261e68c9589c87.tar.gz
rust-1a318965fe3f9afa153a620d4a261e68c9589c87.zip
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).
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions