about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/lib.rs
diff options
context:
space:
mode:
authorA4-Tacks <wdsjxhno1001@163.com>2025-09-23 13:18:33 +0800
committerA4-Tacks <wdsjxhno1001@163.com>2025-09-26 14:44:05 +0800
commit38284d10dc45b3bb2c9aa412dce1e5b1e16c639a (patch)
tree978ebaeede7059e1a40f1d3ae72cca0d802e2c03 /compiler/rustc_codegen_llvm/src/lib.rs
parent35f76dfcd99f66684544ebee4c9c25bdba01dd82 (diff)
downloadrust-38284d10dc45b3bb2c9aa412dce1e5b1e16c639a.tar.gz
rust-38284d10dc45b3bb2c9aa412dce1e5b1e16c639a.zip
Fix expand rest pattern in tuple and slice pattern
Assist: expand_tuple_rest_pattern

Fills fields by replacing rest pattern in tuple patterns.

Example
---
```
fn foo(bar: (char, i32, i32)) {
    let (ch, ..$0) = bar;
}
```
->
```
fn foo(bar: (char, i32, i32)) {
    let (ch, _1, _2) = bar;
}
```

---

Assist: expand_slice_rest_pattern

Fills fields by replacing rest pattern in slice patterns.

Example
---
```
fn foo(bar: [i32; 3]) {
    let [first, ..$0] = bar;
}
```
->
```
fn foo(bar: [i32; 3]) {
    let [first, _1, _2] = bar;
}
```
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/lib.rs')
0 files changed, 0 insertions, 0 deletions