Fix #3145 by removing assert

This commit is contained in:
flip1995 2018-09-07 17:18:00 +02:00
parent 63a46b1e1a
commit fa3e3cb6ea
No known key found for this signature in database
GPG Key ID: 9F184E1164831181
1 changed files with 0 additions and 1 deletions

View File

@ -284,7 +284,6 @@ fn check_tts<'a>(cx: &EarlyContext<'a>, tts: &ThinTokenStream, is_write: bool) -
let mut idx = 0; let mut idx = 0;
loop { loop {
if !parser.eat(&token::Comma) { if !parser.eat(&token::Comma) {
assert!(parser.eat(&token::Eof));
return (Some(fmtstr), expr); return (Some(fmtstr), expr);
} }
let token_expr = match parser.parse_expr().map_err(|mut err| err.cancel()) { let token_expr = match parser.parse_expr().map_err(|mut err| err.cancel()) {