diff options
| author | Seo Sanghyeon <sanxiyn@gmail.com> | 2015-03-04 14:58:35 +0900 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-03-05 12:38:30 +0530 |
| commit | 951118b74f0cd6f61116ba9d21bb08e6af49cdf0 (patch) | |
| tree | 0a741e3c177a6df081e01c00e266da82da5b3c0a /src/libsyntax/ext | |
| parent | 68740b405404a3f885e388c8d31722797d519c30 (diff) | |
| download | rust-951118b74f0cd6f61116ba9d21bb08e6af49cdf0.tar.gz rust-951118b74f0cd6f61116ba9d21bb08e6af49cdf0.zip | |
Fix quoting of ?Sized
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/quote.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/ext/quote.rs b/src/libsyntax/ext/quote.rs index 2599a53e313..737648cd90c 100644 --- a/src/libsyntax/ext/quote.rs +++ b/src/libsyntax/ext/quote.rs @@ -676,9 +676,10 @@ fn expr_mk_token(cx: &ExtCtxt, sp: Span, tok: &token::Token) -> P<ast::Expr> { token::FatArrow => "FatArrow", token::Pound => "Pound", token::Dollar => "Dollar", + token::Question => "Question", token::Underscore => "Underscore", token::Eof => "Eof", - _ => panic!(), + _ => panic!("unhandled token in quote!"), }; mk_token_path(cx, sp, name) } |
