Skip to content

Commit ae79ff0

Browse files
committed
Tweak unexpected macro arg tt panic message
1 parent 0cc8969 commit ae79ff0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libsyntax/ext/tt/macro_rules.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,6 @@ fn quoted_tt_to_string(tt: &quoted::TokenTree) -> String {
11661166
quoted::TokenTree::Token(_, ref tok) => ::print::pprust::token_to_string(tok),
11671167
quoted::TokenTree::MetaVar(_, name) => format!("${}", name),
11681168
quoted::TokenTree::MetaVarDecl(_, name, kind) => format!("${}:{}", name, kind),
1169-
_ => panic!("unexpected quoted::TokenTree::{{Sequence or Delimited}} \
1170-
in follow set checker"),
1169+
ref tt => panic!("unexpected {:?} in follow set checker", tt),
11711170
}
11721171
}

0 commit comments

Comments
 (0)