diff options
| author | Andy Caldwell <andrew.caldwell@metaswitch.com> | 2015-07-24 01:10:25 +0000 |
|---|---|---|
| committer | Andy Caldwell <andrew.caldwell@metaswitch.com> | 2015-07-24 01:10:25 +0000 |
| commit | 4f58db485d82a8d4d4f03f9584ba6de347f704a5 (patch) | |
| tree | 901a8f3499a45d1afcd5c477ef9b5e3275799438 /src/libsyntax | |
| parent | 610d1e312f4d8ec13755015c69d5ae410039b06a (diff) | |
| download | rust-4f58db485d82a8d4d4f03f9584ba6de347f704a5.tar.gz rust-4f58db485d82a8d4d4f03f9584ba6de347f704a5.zip | |
Make ICE an error and use a sensible error message
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ext/tt/macro_rules.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/ext/tt/macro_rules.rs b/src/libsyntax/ext/tt/macro_rules.rs index 634572d4694..e29e0ab54d1 100644 --- a/src/libsyntax/ext/tt/macro_rules.rs +++ b/src/libsyntax/ext/tt/macro_rules.rs @@ -302,8 +302,8 @@ fn check_lhs_nt_follows(cx: &mut ExtCtxt, lhs: &NamedMatch, sp: Span) { tt @ &TtSequence(..) => { check_matcher(cx, Some(tt).into_iter(), &Eof); }, - _ => cx.span_bug(sp, "wrong-structured lhs for follow check (didn't find \ - a TtDelimited or TtSequence)") + _ => cx.span_err(sp, "Invalid macro matcher; matchers must be contained \ + in balanced delimiters or a repetition indicator") }, _ => cx.span_bug(sp, "wrong-structured lhs for follow check (didn't find a \ MatchedNonterminal)") |
