about summary refs log tree commit diff
path: root/tests/ui/link-native-libs
diff options
context:
space:
mode:
authorJonathan Brouwer <jonathantbrouwer@gmail.com>2025-07-27 22:45:10 +0200
committerJonathan Brouwer <jonathantbrouwer@gmail.com>2025-08-10 10:48:08 +0200
commitb2b4bd41fa844bed05a21872162f5a6a333f2bcc (patch)
treec8f2a038a0b33e40244eb324acbf766dcce9819b /tests/ui/link-native-libs
parent915a766b2f9fd53a8cd7b1fad003d3f8e488ff4b (diff)
downloadrust-b2b4bd41fa844bed05a21872162f5a6a333f2bcc.tar.gz
rust-b2b4bd41fa844bed05a21872162f5a6a333f2bcc.zip
Start reporting future breakage for `ILL_FORMED_ATTRIBUTE_INPUT` in dependencies
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
Diffstat (limited to 'tests/ui/link-native-libs')
-rw-r--r--tests/ui/link-native-libs/link-attr-validation-early.stderr22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/ui/link-native-libs/link-attr-validation-early.stderr b/tests/ui/link-native-libs/link-attr-validation-early.stderr
index 24ad9d825f8..c69899275d5 100644
--- a/tests/ui/link-native-libs/link-attr-validation-early.stderr
+++ b/tests/ui/link-native-libs/link-attr-validation-early.stderr
@@ -19,3 +19,25 @@ LL | #[link = "foo"]
 
 error: aborting due to 2 previous errors
 
+Future incompatibility report: Future breakage diagnostic:
+error: attribute must be of the form `#[link(name = "...", /*opt*/ kind = "dylib|static|...", /*opt*/ wasm_import_module = "...", /*opt*/ import_name_type = "decorated|noprefix|undecorated")]`
+  --> $DIR/link-attr-validation-early.rs:2:1
+   |
+LL | #[link]
+   | ^^^^^^^
+   |
+   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+   = note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
+   = note: `#[deny(ill_formed_attribute_input)]` on by default
+
+Future breakage diagnostic:
+error: attribute must be of the form `#[link(name = "...", /*opt*/ kind = "dylib|static|...", /*opt*/ wasm_import_module = "...", /*opt*/ import_name_type = "decorated|noprefix|undecorated")]`
+  --> $DIR/link-attr-validation-early.rs:4:1
+   |
+LL | #[link = "foo"]
+   | ^^^^^^^^^^^^^^^
+   |
+   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+   = note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
+   = note: `#[deny(ill_formed_attribute_input)]` on by default
+