mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-19 02:13:57 +00:00
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:
commit
bfc1643071
@ -1,11 +1,11 @@
|
|||||||
error: unused variable: `b`
|
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(()) => {}
|
LL | () if let Some(b) = Some(()) => {}
|
||||||
| ^ help: if this is intentional, prefix it with an underscore: `_b`
|
| ^ help: if this is intentional, prefix it with an underscore: `_b`
|
||||||
|
|
|
|
||||||
note: the lint level is defined here
|
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)]
|
LL | #![deny(unused_variables)]
|
||||||
| ^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^
|
Loading…
Reference in New Issue
Block a user