From 64d98f8ee037282c35007b64c2649055c56af1db Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:03 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/rust-2018/macro-use-warned-against.stderr | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tests/ui/rust-2018/macro-use-warned-against.stderr (limited to 'tests/ui/rust-2018/macro-use-warned-against.stderr') diff --git a/tests/ui/rust-2018/macro-use-warned-against.stderr b/tests/ui/rust-2018/macro-use-warned-against.stderr new file mode 100644 index 000000000..6b46f002e --- /dev/null +++ b/tests/ui/rust-2018/macro-use-warned-against.stderr @@ -0,0 +1,27 @@ +warning: deprecated `#[macro_use]` attribute used to import macros should be replaced at use sites with a `use` item to import the macro instead + --> $DIR/macro-use-warned-against.rs:7:1 + | +LL | #[macro_use] + | ^^^^^^^^^^^^ + | +note: the lint level is defined here + --> $DIR/macro-use-warned-against.rs:5:9 + | +LL | #![warn(macro_use_extern_crate, unused)] + | ^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused `#[macro_use]` import + --> $DIR/macro-use-warned-against.rs:9:1 + | +LL | #[macro_use] + | ^^^^^^^^^^^^ + | +note: the lint level is defined here + --> $DIR/macro-use-warned-against.rs:5:33 + | +LL | #![warn(macro_use_extern_crate, unused)] + | ^^^^^^ + = note: `#[warn(unused_imports)]` implied by `#[warn(unused)]` + +warning: 2 warnings emitted + -- cgit v1.2.3