From 1f849dff9ea9f9d5dff27087502c1317424e3ba8 Mon Sep 17 00:00:00 2001 From: Sven Kanoldt Date: Mon, 14 Oct 2024 00:34:12 +0200 Subject: [PATCH] fix: test error output and formatting --- .../mixed_export_name_and_no_mangle.stderr | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/tests/ui/attributes/mixed_export_name_and_no_mangle.stderr b/tests/ui/attributes/mixed_export_name_and_no_mangle.stderr index 4cb92245eddcc..816f018264510 100644 --- a/tests/ui/attributes/mixed_export_name_and_no_mangle.stderr +++ b/tests/ui/attributes/mixed_export_name_and_no_mangle.stderr @@ -1,17 +1,23 @@ -warning: the attribute `export_name` may not be used in combination with `no_mangle` - --> $DIR/E47446.rs:2:1 +error: the attribute `export_name` may not be used in combination with `no_mangle` + --> $DIR/mixed_export_name_and_no_mangle.rs:5:1 | LL | #[export_name = "foo"] | ^^^^^^^^^^^^^^^^^^^^^^ `export_name` takes precedence | - = note: when `export_name` is used `no_mangle` is ignored note: the `no_mangle` attribute is ignored - --> $DIR/E47446.rs:1:1 + --> $DIR/mixed_export_name_and_no_mangle.rs:4:1 | LL | #[no_mangle] | ^^^^^^^^^^^^ - = note: `#[warn(mixed_export_name_and_no_mangle)]` on by default +note: the lint level is defined here + --> $DIR/mixed_export_name_and_no_mangle.rs:1:9 + | +LL | #![deny(mixed_export_name_and_no_mangle)] + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the `no_mangle` attribute | LL - #[no_mangle] | + +error: aborting due to 1 previous error +