Skip to content

Commit a2960bc

Browse files
committed
update test to reflect other sources of brokenness in it under new
macro future proofing rules. (We may want to think about what this test was actually testing and figure out a way to test it without running afoul of macro future proofing. I spent some time trying to do this, e.g. by inserting parenthesis in the macro input pattern, but I could not quickly get it working, so I took this tack instead.)
1 parent c032e0c commit a2960bc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/test/compile-fail/issue-30715.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010

1111
macro_rules! parallel {
1212
(
13-
for $id:ident in $iter:expr {
13+
// If future has `pred`/`moelarry` fragments (where "pred" is
14+
// "like expr, but with `{` in its FOLLOW set"), then could
15+
// use `pred` instead of future-proof erroring here. See also:
16+
//
17+
// https://github.com/rust-lang/rfcs/pull/1384#issuecomment-160165525
18+
for $id:ident in $iter:expr { //~ WARN `$iter:expr` is followed by `{`
1419
$( $inner:expr; )*
1520
}
1621
) => {};

0 commit comments

Comments
 (0)