about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/asm.rs
diff options
context:
space:
mode:
authorA4-Tacks <wdsjxhno1001@163.com>2025-09-20 14:59:59 +0800
committerA4-Tacks <wdsjxhno1001@163.com>2025-09-20 16:14:51 +0800
commitbb1ad20f59509ec9310125968ef30fae88f92245 (patch)
tree1a8614cc8deea916941fedf941a044961f720ccd /compiler/rustc_codegen_llvm/src/asm.rs
parent300aee8239168bfd07114322654da9840d0a2331 (diff)
downloadrust-bb1ad20f59509ec9310125968ef30fae88f92245.tar.gz
rust-bb1ad20f59509ec9310125968ef30fae88f92245.zip
Fix panics on `Foo{mut x}` for destructure_struct_binding
Example
---
```rust
struct Foo { x: () }
struct Bar { foo: Foo }
fn f(Bar { mut $0foo }: Bar) {}
```

**Before this PR**:

Panic `Option::unwrap`

**After this PR**:

```rust
struct Foo { x: () }
struct Bar { foo: Foo }
fn f(Bar { foo: Foo { mut x } }: Bar) {}
```
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/asm.rs')
0 files changed, 0 insertions, 0 deletions