diff options
| author | A4-Tacks <wdsjxhno1001@163.com> | 2025-09-22 14:45:31 +0800 |
|---|---|---|
| committer | A4-Tacks <wdsjxhno1001@163.com> | 2025-09-22 15:13:13 +0800 |
| commit | c5e668274b56a0c83745336352fd9df9fe68e50a (patch) | |
| tree | a824c7239de7595455eefc6f25f6458a67bd56d8 /compiler/rustc_mir_transform/src/coverage/mod.rs | |
| parent | 45dda35957ed322c3bccd094dcfa9b925336cc8d (diff) | |
| download | rust-c5e668274b56a0c83745336352fd9df9fe68e50a.tar.gz rust-c5e668274b56a0c83745336352fd9df9fe68e50a.zip | |
Fix applicable on underscore for bind_unused_param
Fixes:
- applicable on underscore prefix parameter
- using binding mode as an expression
Examples
---
```rust
fn foo($0_x: i32, y: i32) {}
```
**Before this PR**:
```rust
fn foo(_x: i32, y: i32) {
let _ = _x;
}
```
**After this PR**:
Assist not applicable
---
```rust
fn foo(ref $0y: i32) {}
```
**Before this PR**:
```rust
fn foo(ref y: i32) {
let _ = ref y;
}
```
**After this PR**:
```rust
fn foo(ref y: i32) {
let _ = y;
}
```
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/mod.rs')
0 files changed, 0 insertions, 0 deletions
