syntax: Switch function parameter order in TokenTree::token

This commit is contained in:
Vadim Petrochenkov
2019-06-05 13:25:26 +03:00
parent 350a34f85c
commit 67ce3f4589
15 changed files with 63 additions and 62 deletions

View File

@@ -30,11 +30,11 @@ pub fn expand_assert<'cx>(
path: Path::from_ident(Ident::new(sym::panic, sp)),
tts: custom_message.unwrap_or_else(|| {
TokenStream::from(TokenTree::token(
DUMMY_SP,
TokenKind::lit(token::Str, Symbol::intern(&format!(
"assertion failed: {}",
pprust::expr_to_string(&cond_expr).escape_debug()
)), None),
DUMMY_SP,
))
}).into(),
delim: MacDelimiter::Parenthesis,