From dd6460ba9f6c325211c6b2d819fe0653dc94a1ba Mon Sep 17 00:00:00 2001 From: Eric Holk Date: Wed, 18 Sep 2024 15:13:07 -0700 Subject: [PATCH] Add known-bug and update comments to describe correct behavior in light of bug --- .../ui/macros/metavar_cross_edition_recursive_macros.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/ui/macros/metavar_cross_edition_recursive_macros.rs b/tests/ui/macros/metavar_cross_edition_recursive_macros.rs index 4c4d3cda45e0a..3eec1208b89ae 100644 --- a/tests/ui/macros/metavar_cross_edition_recursive_macros.rs +++ b/tests/ui/macros/metavar_cross_edition_recursive_macros.rs @@ -1,5 +1,6 @@ //@ compile-flags: --edition=2024 -Z unstable-options //@ aux-build: metavar_2018.rs +//@ known-bug: #130484 //@ run-pass // This test captures the behavior of macro-generating-macros with fragment @@ -23,10 +24,8 @@ fn main() { let from_2024 = is_expr_from_2024!(const { 0 }); dbg!(from_2024); - // These capture the current, empirically determined behavior. - // It's not clear whether this is the desired behavior. assert!(!from_2018); - assert!(!from_2024); + assert!(!from_2024); // from_2024 will be true once #130484 is fixed // Check pat let from_2018 = is_pat_from_2018!(A | B); @@ -34,8 +33,6 @@ fn main() { let from_2024 = is_pat_from_2024!(A | B); dbg!(from_2024); - // These capture the current, empirically determined behavior. - // It's not clear whether this is the desired behavior. assert!(!from_2018); - assert!(!from_2024); + assert!(!from_2024); // from_2024 will be true once #130484 is fixed }