about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/allocator.rs
diff options
context:
space:
mode:
authorA4-Tacks <wdsjxhno1001@163.com>2025-09-19 13:35:34 +0800
committerA4-Tacks <wdsjxhno1001@163.com>2025-09-19 13:35:34 +0800
commit5a043cef02229eb6eb777277745cd7e12b350311 (patch)
treec72bc0137544b6de5bb6429da51c25c888b8dfc9 /compiler/rustc_codegen_llvm/src/allocator.rs
parentbb7cdc25d48f18667056adcb2380630b7d3b9f0b (diff)
downloadrust-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/allocator.rs')
0 files changed, 0 insertions, 0 deletions