From 698f8c2f01ea549d77d7dc3338a12e04c11057b9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:02:58 +0200 Subject: Adding upstream version 1.64.0+dfsg1. Signed-off-by: Daniel Baumann --- src/tools/clippy/tests/ui/panicking_macros.stderr | 106 ++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 src/tools/clippy/tests/ui/panicking_macros.stderr (limited to 'src/tools/clippy/tests/ui/panicking_macros.stderr') diff --git a/src/tools/clippy/tests/ui/panicking_macros.stderr b/src/tools/clippy/tests/ui/panicking_macros.stderr new file mode 100644 index 000000000..4ceb6d144 --- /dev/null +++ b/src/tools/clippy/tests/ui/panicking_macros.stderr @@ -0,0 +1,106 @@ +error: `panic` should not be present in production code + --> $DIR/panicking_macros.rs:23:5 + | +LL | panic!(); + | ^^^^^^^^ + | + = note: `-D clippy::panic` implied by `-D warnings` + +error: `panic` should not be present in production code + --> $DIR/panicking_macros.rs:24:5 + | +LL | panic!("message"); + | ^^^^^^^^^^^^^^^^^ + +error: `panic` should not be present in production code + --> $DIR/panicking_macros.rs:25:5 + | +LL | panic!("{} {}", "panic with", "multiple arguments"); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +error: `todo` should not be present in production code + --> $DIR/panicking_macros.rs:31:5 + | +LL | todo!(); + | ^^^^^^^ + | + = note: `-D clippy::todo` implied by `-D warnings` + +error: `todo` should not be present in production code + --> $DIR/panicking_macros.rs:32:5 + | +LL | todo!("message"); + | ^^^^^^^^^^^^^^^^ + +error: `todo` should not be present in production code + --> $DIR/panicking_macros.rs:33:5 + | +LL | todo!("{} {}", "panic with", "multiple arguments"); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +error: `unimplemented` should not be present in production code + --> $DIR/panicking_macros.rs:39:5 + | +LL | unimplemented!(); + | ^^^^^^^^^^^^^^^^ + | + = note: `-D clippy::unimplemented` implied by `-D warnings` + +error: `unimplemented` should not be present in production code + --> $DIR/panicking_macros.rs:40:5 + | +LL | unimplemented!("message"); + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + +error: `unimplemented` should not be present in production code + --> $DIR/panicking_macros.rs:41:5 + | +LL | unimplemented!("{} {}", "panic with", "multiple arguments"); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +error: usage of the `unreachable!` macro + --> $DIR/panicking_macros.rs:47:5 + | +LL | unreachable!(); + | ^^^^^^^^^^^^^^ + | + = note: `-D clippy::unreachable` implied by `-D warnings` + +error: usage of the `unreachable!` macro + --> $DIR/panicking_macros.rs:48:5 + | +LL | unreachable!("message"); + | ^^^^^^^^^^^^^^^^^^^^^^^ + +error: usage of the `unreachable!` macro + --> $DIR/panicking_macros.rs:49:5 + | +LL | unreachable!("{} {}", "panic with", "multiple arguments"); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +error: `panic` should not be present in production code + --> $DIR/panicking_macros.rs:55:5 + | +LL | panic!(); + | ^^^^^^^^ + +error: `todo` should not be present in production code + --> $DIR/panicking_macros.rs:56:5 + | +LL | todo!(); + | ^^^^^^^ + +error: `unimplemented` should not be present in production code + --> $DIR/panicking_macros.rs:57:5 + | +LL | unimplemented!(); + | ^^^^^^^^^^^^^^^^ + +error: usage of the `unreachable!` macro + --> $DIR/panicking_macros.rs:58:5 + | +LL | unreachable!(); + | ^^^^^^^^^^^^^^ + +error: aborting due to 16 previous errors + -- cgit v1.2.3