diff options
Diffstat (limited to 'tests/ui/proc-macro')
3 files changed, 2 insertions, 14 deletions
diff --git a/tests/ui/proc-macro/macro_rules_edition_from_pm.edition2021.stderr b/tests/ui/proc-macro/macro_rules_edition_from_pm.edition2021.stderr deleted file mode 100644 index a783dac00cd..00000000000 --- a/tests/ui/proc-macro/macro_rules_edition_from_pm.edition2021.stderr +++ /dev/null @@ -1,11 +0,0 @@ -error[E0080]: evaluation of constant value failed - --> $DIR/macro_rules_edition_from_pm.rs:24:5 - | -LL | assert!(edition_inner!(const {}) == 2024); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'assertion failed: edition_inner!(const {}) == 2024', $DIR/macro_rules_edition_from_pm.rs:24:5 - | - = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info) - -error: aborting due to 1 previous error - -For more information about this error, try `rustc --explain E0080`. diff --git a/tests/ui/proc-macro/macro_rules_edition_from_pm.edition2024.stderr b/tests/ui/proc-macro/macro_rules_edition_from_pm.edition2024.stderr deleted file mode 100644 index e69de29bb2d..00000000000 --- a/tests/ui/proc-macro/macro_rules_edition_from_pm.edition2024.stderr +++ /dev/null diff --git a/tests/ui/proc-macro/macro_rules_edition_from_pm.rs b/tests/ui/proc-macro/macro_rules_edition_from_pm.rs index de614922d1f..3ba80f5177a 100644 --- a/tests/ui/proc-macro/macro_rules_edition_from_pm.rs +++ b/tests/ui/proc-macro/macro_rules_edition_from_pm.rs @@ -7,7 +7,7 @@ //@[edition2021] edition:2021 //@[edition2024] edition:2024 //@[edition2024] compile-flags: -Zunstable-options -//@[edition2024] check-pass +//@ check-pass // This checks how the expr fragment specifier works. macro_rules_edition_pm::make_edition_macro!{} @@ -21,8 +21,7 @@ macro_rules_edition_pm::make_nested_edition_macro!{} make_inner!{} const _: () = { - assert!(edition_inner!(const {}) == 2024); - //[edition2021]~^ ERROR evaluation of constant value failed + assert!(edition_inner!(const {}) == 2021); }; fn main() {} |
