about summary refs log tree commit diff
path: root/tests/ui
diff options
context:
space:
mode:
authorTrevor Gross <t.gross35@gmail.com>2025-08-07 19:36:35 -0500
committerGitHub <noreply@github.com>2025-08-07 19:36:35 -0500
commit8f519761a535b3ff0c4c8edc82ddec8e4da3e1e1 (patch)
treeddee463123f7c91450342e53e14bea28610d1939 /tests/ui
parenta8f36867e009ee39f1e51e5ddc8a6587cd241d06 (diff)
parent4f7a6ace9e2f2192af7b5d32f4b1664189e0e143 (diff)
downloadrust-8f519761a535b3ff0c4c8edc82ddec8e4da3e1e1.tar.gz
rust-8f519761a535b3ff0c4c8edc82ddec8e4da3e1e1.zip
Rollup merge of #144857 - scrabsha:push-pwtyrnmqkrtr, r=jdonszelmann
Port `#[allow_internal_unsafe]` to the new attribute system

Related to https://github.com/rust-lang/rust/issues/131229#issue-2565886367.

r? ````@jdonszelmann````
Diffstat (limited to 'tests/ui')
-rw-r--r--tests/ui/attributes/malformed-attrs.stderr15
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/ui/attributes/malformed-attrs.stderr b/tests/ui/attributes/malformed-attrs.stderr
index e8ae4715398..7fc28ed4664 100644
--- a/tests/ui/attributes/malformed-attrs.stderr
+++ b/tests/ui/attributes/malformed-attrs.stderr
@@ -145,12 +145,6 @@ LL - #[macro_export = 18]
 LL + #[macro_export]
    |
 
-error: malformed `allow_internal_unsafe` attribute input
-  --> $DIR/malformed-attrs.rs:213:1
-   |
-LL | #[allow_internal_unsafe = 1]
-   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[allow_internal_unsafe]`
-
 error: the `#[proc_macro]` attribute is only usable with crates of the `proc-macro` crate type
   --> $DIR/malformed-attrs.rs:96:1
    |
@@ -561,6 +555,15 @@ error: valid forms for the attribute are `#[macro_use(name1, name2, ...)]` and `
 LL | #[macro_use = 1]
    | ^^^^^^^^^^^^^^^^
 
+error[E0565]: malformed `allow_internal_unsafe` attribute input
+  --> $DIR/malformed-attrs.rs:213:1
+   |
+LL | #[allow_internal_unsafe = 1]
+   | ^^^^^^^^^^^^^^^^^^^^^^^^---^
+   | |                       |
+   | |                       didn't expect any arguments here
+   | help: must be of the form: `#[allow_internal_unsafe]`
+
 error[E0565]: malformed `type_const` attribute input
   --> $DIR/malformed-attrs.rs:140:5
    |