File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments