summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2023-05-14 07:58:06 -0700
committerDavid Tolnay <dtolnay@gmail.com>2023-05-14 07:58:45 -0700
commit4be97e0b24246891eefe5eef90509b5c0450b313 (patch)
tree10dd3951e9ddc61f5419f8dedcfaa73025c50752 /src/tools
parentcb109a672d161ee305d21c98edb84ef50c6f997b (diff)
downloadrust-4be97e0b24246891eefe5eef90509b5c0450b313.tar.gz
Exposes false negative in clippy's diverging_sub_expression
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/clippy/tests/ui/diverging_sub_expression.stderr10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/tools/clippy/tests/ui/diverging_sub_expression.stderr b/src/tools/clippy/tests/ui/diverging_sub_expression.stderr
index 9c91d935716..51a3b0d972e 100644
--- a/src/tools/clippy/tests/ui/diverging_sub_expression.stderr
+++ b/src/tools/clippy/tests/ui/diverging_sub_expression.stderr
@@ -31,18 +31,10 @@ LL | 3 => true || diverge(),
| ^^^^^^^^^
error: sub-expression diverges
- --> $DIR/diverging_sub_expression.rs:36:30
- |
-LL | _ => true || panic!("boo"),
- | ^^^^^^^^^^^^^
- |
- = 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)
-
-error: sub-expression diverges
--> $DIR/diverging_sub_expression.rs:38:26
|
LL | _ => true || break,
| ^^^^^
-error: aborting due to 7 previous errors
+error: aborting due to 6 previous errors