Skip to content

Commit dd6460b

Browse files
committed
Add known-bug and update comments to describe correct behavior in light of bug
1 parent 7653811 commit dd6460b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tests/ui/macros/metavar_cross_edition_recursive_macros.rs

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//@ compile-flags: --edition=2024 -Z unstable-options
22
//@ aux-build: metavar_2018.rs
3+
//@ known-bug: #130484
34
//@ run-pass
45

56
// This test captures the behavior of macro-generating-macros with fragment
@@ -23,19 +24,15 @@ fn main() {
2324
let from_2024 = is_expr_from_2024!(const { 0 });
2425
dbg!(from_2024);
2526

26-
// These capture the current, empirically determined behavior.
27-
// It's not clear whether this is the desired behavior.
2827
assert!(!from_2018);
29-
assert!(!from_2024);
28+
assert!(!from_2024); // from_2024 will be true once #130484 is fixed
3029

3130
// Check pat
3231
let from_2018 = is_pat_from_2018!(A | B);
3332
dbg!(from_2018);
3433
let from_2024 = is_pat_from_2024!(A | B);
3534
dbg!(from_2024);
3635

37-
// These capture the current, empirically determined behavior.
38-
// It's not clear whether this is the desired behavior.
3936
assert!(!from_2018);
40-
assert!(!from_2024);
37+
assert!(!from_2024); // from_2024 will be true once #130484 is fixed
4138
}

0 commit comments

Comments
 (0)