about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2019-01-18 05:23:25 +0900
committerYuki Okushi <huyuumi.dev@gmail.com>2019-01-18 05:23:25 +0900
commit7e2e61c618b53ccaa5d64b57b4c1872bc73746aa (patch)
tree0c601e5a0220b8f68924108ab199e4b1b36d38ef /src/libsyntax
parentbde3795d465c1a1768afa49cc5e79cea93cb99f3 (diff)
downloadrust-7e2e61c618b53ccaa5d64b57b4c1872bc73746aa.tar.gz
rust-7e2e61c618b53ccaa5d64b57b4c1872bc73746aa.zip
Change from mk_lit! to cx.expr
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/ext/quote.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ext/quote.rs b/src/libsyntax/ext/quote.rs
index 17c88a30bcd..01cb1341b9f 100644
--- a/src/libsyntax/ext/quote.rs
+++ b/src/libsyntax/ext/quote.rs
@@ -646,7 +646,7 @@ fn expr_mk_token(cx: &ExtCtxt, sp: Span, tok: &token::Token) -> P<ast::Expr> {
 
         token::Literal(token::Byte(i), suf) => return mk_lit!("Byte", suf, i),
         token::Literal(token::Char(i), suf) => return mk_lit!("Char", suf, i),
-        token::Literal(token::Err(i), suf) => return mk_lit!("Err", suf, i),
+        token::Literal(token::Err(_i), _suf) => return cx.expr(sp, ast::ExprKind::Err),
         token::Literal(token::Integer(i), suf) => return mk_lit!("Integer", suf, i),
         token::Literal(token::Float(i), suf) => return mk_lit!("Float", suf, i),
         token::Literal(token::Str_(i), suf) => return mk_lit!("Str_", suf, i),