diff options
| author | Jana Dönszelmann <jana@donsz.nl> | 2025-08-08 11:54:15 +0200 |
|---|---|---|
| committer | Jana Dönszelmann <jana@donsz.nl> | 2025-08-08 11:54:20 +0200 |
| commit | 866bc26475277c31f0fc5409ac061951ae48b827 (patch) | |
| tree | 6edeae7a93a2eceb99f5e4a258d6241efb9aa918 /tests | |
| parent | 2886b36df4a646dd8d82fb65bf0c9d8d96c1f71a (diff) | |
| download | rust-866bc26475277c31f0fc5409ac061951ae48b827.tar.gz rust-866bc26475277c31f0fc5409ac061951ae48b827.zip | |
Revert "Port `#[allow_internal_unsafe]` to the new attribute system"
This reverts commit 4f7a6ace9e2f2192af7b5d32f4b1664189e0e143.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ui/attributes/malformed-attrs.stderr | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/tests/ui/attributes/malformed-attrs.stderr b/tests/ui/attributes/malformed-attrs.stderr index 7fc28ed4664..e8ae4715398 100644 --- a/tests/ui/attributes/malformed-attrs.stderr +++ b/tests/ui/attributes/malformed-attrs.stderr @@ -145,6 +145,12 @@ 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 | @@ -555,15 +561,6 @@ 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 | |
