Skip to content

Commit ab3836d

Browse files
committed
Accept invalid macros for now.
1 parent 14ef167 commit ab3836d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libsyntax/ext/tt/macro_rules.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,12 +317,12 @@ pub fn compile<'cx>(cx: &'cx mut ExtCtxt,
317317
'a: for (i, lhs) in lhses.iter().enumerate() {
318318
for lhs_ in lhses[i + 1 ..].iter() {
319319
if !check_lhs_firsts(cx, lhs, lhs_) {
320-
cx.struct_span_err(def.span, "macro is not future-proof")
320+
cx.struct_span_warn(def.span, "macro is not future-proof")
321321
.span_help(lhs.get_span(), "parsing of this arm is ambiguous...")
322322
.span_help(lhs_.get_span(), "with the parsing of this arm.")
323323
.help("the behaviour of this macro might change in the future")
324324
.emit();
325-
valid = false;
325+
//valid = false;
326326
break 'a;
327327
}
328328
}

0 commit comments

Comments
 (0)