Skip to content

Commit 6b1dcea

Browse files
authored
Unrolled build for rust-lang#119410
Rollup merge of rust-lang#119410 - est31:fix_if_guard_unused, r=Nilstrieb Rename test to be more descriptive As suggested in rust-lang#119402 (comment) r? ``@Nilstrieb``
2 parents 3cdd004 + 740378c commit 6b1dcea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/ui/lint/unused/issue-119383.stderr tests/ui/lint/unused/issue-119383-if-let-guard.stderr

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

0 commit comments

Comments
 (0)