Skip to content

Commit 7e2e61c

Browse files
committed
Change from mk_lit! to cx.expr
1 parent bde3795 commit 7e2e61c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/ext/quote.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ fn expr_mk_token(cx: &ExtCtxt, sp: Span, tok: &token::Token) -> P<ast::Expr> {
646646

647647
token::Literal(token::Byte(i), suf) => return mk_lit!("Byte", suf, i),
648648
token::Literal(token::Char(i), suf) => return mk_lit!("Char", suf, i),
649-
token::Literal(token::Err(i), suf) => return mk_lit!("Err", suf, i),
649+
token::Literal(token::Err(_i), _suf) => return cx.expr(sp, ast::ExprKind::Err),
650650
token::Literal(token::Integer(i), suf) => return mk_lit!("Integer", suf, i),
651651
token::Literal(token::Float(i), suf) => return mk_lit!("Float", suf, i),
652652
token::Literal(token::Str_(i), suf) => return mk_lit!("Str_", suf, i),

0 commit comments

Comments
 (0)