diff options
| author | cgswords <cameronswords@gmail.com> | 2016-07-19 13:00:45 -0700 |
|---|---|---|
| committer | cgswords <cameronswords@gmail.com> | 2016-07-19 16:05:44 -0700 |
| commit | 536c3157955b76297ff667087807ffe463b48018 (patch) | |
| tree | 0adb329d65351837834a198080ef86c78d0b2887 /src/libsyntax/ext | |
| parent | bbfcb471db0799a7d92d62e66cf44bbd68051675 (diff) | |
| download | rust-536c3157955b76297ff667087807ffe463b48018.tar.gz rust-536c3157955b76297ff667087807ffe463b48018.zip | |
Introduced `NoDelim` and modified the compiler to support it.
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/quote.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libsyntax/ext/quote.rs b/src/libsyntax/ext/quote.rs index ffc950d76dd..b70e270df54 100644 --- a/src/libsyntax/ext/quote.rs +++ b/src/libsyntax/ext/quote.rs @@ -581,9 +581,10 @@ fn mk_binop(cx: &ExtCtxt, sp: Span, bop: token::BinOpToken) -> P<ast::Expr> { fn mk_delim(cx: &ExtCtxt, sp: Span, delim: token::DelimToken) -> P<ast::Expr> { let name = match delim { - token::Paren => "Paren", - token::Bracket => "Bracket", - token::Brace => "Brace", + token::Paren => "Paren", + token::Bracket => "Bracket", + token::Brace => "Brace", + token::NoDelim => "NoDelim", }; mk_token_path(cx, sp, name) } |
