diff options
| author | A4-Tacks <wdsjxhno1001@163.com> | 2025-09-19 13:35:34 +0800 |
|---|---|---|
| committer | A4-Tacks <wdsjxhno1001@163.com> | 2025-09-19 13:35:34 +0800 |
| commit | 5a043cef02229eb6eb777277745cd7e12b350311 (patch) | |
| tree | c72bc0137544b6de5bb6429da51c25c888b8dfc9 /compiler/rustc_codegen_llvm/src | |
| parent | bb7cdc25d48f18667056adcb2380630b7d3b9f0b (diff) | |
| download | rust-5a043cef02229eb6eb777277745cd7e12b350311.tar.gz rust-5a043cef02229eb6eb777277745cd7e12b350311.zip | |
Fix extract_variable on LetExpr
Example
---
```rust
fn main() {
if $0let$0 Some(x) = Some(2+2) {}
}
```
**Before this PR**:
```rust
fn main() {
let $0var_name = let Some(x) = Some(2+2);
if var_name {}
}
```
**After this PR**:
```rust
fn main() {
let $0var_name = Some(2+2);
if let Some(x) = var_name {}
}
```
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
