Skip to content

Commit

Permalink
Add known-bug and update comments to describe correct behavior in lig…
Browse files Browse the repository at this point in the history
…ht of bug
  • Loading branch information
eholk committed Sep 18, 2024
1 parent 7653811 commit dd6460b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/ui/macros/metavar_cross_edition_recursive_macros.rs
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -23,19 +24,15 @@ 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);
dbg!(from_2018);
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
}

0 comments on commit dd6460b

Please sign in to comment.