diff options
Diffstat (limited to 'tests/ui/rust-2024/unsafe-attributes')
| -rw-r--r-- | tests/ui/rust-2024/unsafe-attributes/unsafe-attributes-from-pm.edition2024.stderr | 17 | ||||
| -rw-r--r-- | tests/ui/rust-2024/unsafe-attributes/unsafe-attributes-from-pm.rs | 3 |
2 files changed, 1 insertions, 19 deletions
diff --git a/tests/ui/rust-2024/unsafe-attributes/unsafe-attributes-from-pm.edition2024.stderr b/tests/ui/rust-2024/unsafe-attributes/unsafe-attributes-from-pm.edition2024.stderr deleted file mode 100644 index 4bdfe6153e7..00000000000 --- a/tests/ui/rust-2024/unsafe-attributes/unsafe-attributes-from-pm.edition2024.stderr +++ /dev/null @@ -1,17 +0,0 @@ -error: unsafe attribute used without unsafe - --> $DIR/unsafe-attributes-from-pm.rs:13:1 - | -LL | unsafe_attributes_pm::macro_rules_missing_unsafe!(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute -... -LL | make_fn!(); - | ---------- in this macro invocation - | - = note: this error originates in the macro `make_fn` (in Nightly builds, run with -Z macro-backtrace for more info) -help: wrap the attribute in `unsafe(...)` - | -LL | ununsafe(safe_attributes_pm::macro_rules_missing_unsafe!()); - | +++++++ + - -error: aborting due to 1 previous error - diff --git a/tests/ui/rust-2024/unsafe-attributes/unsafe-attributes-from-pm.rs b/tests/ui/rust-2024/unsafe-attributes/unsafe-attributes-from-pm.rs index fbe3ffaf0b8..782a3942236 100644 --- a/tests/ui/rust-2024/unsafe-attributes/unsafe-attributes-from-pm.rs +++ b/tests/ui/rust-2024/unsafe-attributes/unsafe-attributes-from-pm.rs @@ -2,7 +2,7 @@ // See https://github.com/rust-lang/rust/issues/132906 //@ revisions: edition2021 edition2024 -//@[edition2021] check-pass +//@ check-pass //@[edition2021] edition:2021 //@[edition2024] edition:2024 //@[edition2024] compile-flags: -Zunstable-options @@ -11,7 +11,6 @@ unsafe_attributes_pm::missing_unsafe!(); unsafe_attributes_pm::macro_rules_missing_unsafe!(); -//[edition2024]~^ ERROR unsafe attribute used without unsafe make_fn!(); |
