diff options
| author | A4-Tacks <wdsjxhno1001@163.com> | 2025-09-20 14:59:59 +0800 |
|---|---|---|
| committer | A4-Tacks <wdsjxhno1001@163.com> | 2025-09-20 16:14:51 +0800 |
| commit | bb1ad20f59509ec9310125968ef30fae88f92245 (patch) | |
| tree | 1a8614cc8deea916941fedf941a044961f720ccd /compiler/rustc_codegen_llvm/src/asm.rs | |
| parent | 300aee8239168bfd07114322654da9840d0a2331 (diff) | |
| download | rust-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
