Rollup merge of #119410 - est31:fix_if_guard_unused, r=Nilstrieb

Rename test to be more descriptive

As suggested in https://github.com/rust-lang/rust/pull/119402#discussion_r1438171079

r? ``@Nilstrieb``
This commit is contained in:
Matthias Krüger 2023-12-29 21:40:24 +01:00 committed by GitHub
commit bfc1643071
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1,11 +1,11 @@
error: unused variable: `b`
--> $DIR/issue-119383.rs:6:24
--> $DIR/issue-119383-if-let-guard.rs:6:24
|
LL | () if let Some(b) = Some(()) => {}
| ^ help: if this is intentional, prefix it with an underscore: `_b`
|
note: the lint level is defined here
--> $DIR/issue-119383.rs:2:9
--> $DIR/issue-119383-if-let-guard.rs:2:9
|
LL | #![deny(unused_variables)]
| ^^^^^^^^^^^^^^^^