Skip to content

Commit 4be97e0

Browse files
committed
Exposes false negative in clippy's diverging_sub_expression
1 parent cb109a6 commit 4be97e0

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/tools/clippy/tests/ui/diverging_sub_expression.stderr

+1-9
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,11 @@ error: sub-expression diverges
3030
LL | 3 => true || diverge(),
3131
| ^^^^^^^^^
3232

33-
error: sub-expression diverges
34-
--> $DIR/diverging_sub_expression.rs:36:30
35-
|
36-
LL | _ => true || panic!("boo"),
37-
| ^^^^^^^^^^^^^
38-
|
39-
= note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
40-
4133
error: sub-expression diverges
4234
--> $DIR/diverging_sub_expression.rs:38:26
4335
|
4436
LL | _ => true || break,
4537
| ^^^^^
4638

47-
error: aborting due to 7 previous errors
39+
error: aborting due to 6 previous errors
4840

0 commit comments

Comments
 (0)