about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorSasha Pourcelot <sasha.pourcelot@protonmail.com>2025-08-03 11:54:07 +0200
committerSasha Pourcelot <sasha.pourcelot@protonmail.com>2025-08-11 15:01:52 +0200
commit6603fe1caa9aefea78aea19c587828cdcffc883d (patch)
tree598fa31565a96e679286e1bd1fe2830428bd7ab5 /tests
parent577166503aee7290e09374da21f4045c455acfd5 (diff)
downloadrust-6603fe1caa9aefea78aea19c587828cdcffc883d.tar.gz
rust-6603fe1caa9aefea78aea19c587828cdcffc883d.zip
Port `#[allow_internal_unsafe]` to the new attribute system (attempt 2)
Diffstat (limited to 'tests')
-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 dd9dd3a6ce7..74110183450 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
    |