diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2012-07-27 18:06:24 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2012-07-27 18:06:24 -0700 |
| commit | eabd233dcd208bc21ca0f8eea02d87d56e5314eb (patch) | |
| tree | 2ce72ee16c9e2fd5ad84b5f150bc791daffc49da /src/libsyntax/parse | |
| parent | 1d9f01cb421eae8e7ace0fa6b4d7f5ddf3ce4f65 (diff) | |
| download | rust-eabd233dcd208bc21ca0f8eea02d87d56e5314eb.tar.gz rust-eabd233dcd208bc21ca0f8eea02d87d56e5314eb.zip | |
Start killing off obsolete/unused quoters, and fix long lines.
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 0723103877b..51f6ae021cd 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -38,8 +38,8 @@ import ast::{_mod, add, alt_check, alt_exhaustive, arg, arm, attribute, item_foreign_mod, item_impl, item_mac, item_mod, item_trait, item_ty, lit, lit_, lit_bool, lit_float, lit_int, lit_int_unsuffixed, lit_nil, lit_str, lit_uint, local, m_const, - m_imm, m_mutbl, mac_, mac_aq, mac_ellipsis, mac_embed_block, - mac_embed_type, mac_invoc, mac_invoc_tt, mac_var, matcher, + m_imm, m_mutbl, mac_, mac_aq, mac_ellipsis, + mac_invoc, mac_invoc_tt, mac_var, matcher, method, mode, mt, mtc_bb, mtc_rep, mtc_tok, mul, mutability, neg, noreturn, not, pat, pat_box, pat_enum, pat_ident, pat_lit, pat_range, pat_rec, pat_tup, pat_uniq, pat_wild, path, private, @@ -831,21 +831,6 @@ class parser { |p| p.parse_expr()); hi = self.span.hi; ex = expr_vec(es, mutbl); - } else if self.token == token::POUND - && self.look_ahead(1u) == token::LT { - self.bump(); self.bump(); - let ty = self.parse_ty(false); - self.expect(token::GT); - - /* hack: early return to take advantage of specialized function */ - ret pexpr(self.mk_mac_expr(lo, self.span.hi, - mac_embed_type(ty))); - } else if self.token == token::POUND - && self.look_ahead(1u) == token::LBRACE { - self.bump(); self.bump(); - let blk = mac_embed_block( - self.parse_block_tail(lo, default_blk)); - ret pexpr(self.mk_mac_expr(lo, self.span.hi, blk)); } else if self.token == token::ELLIPSIS { self.bump(); ret pexpr(self.mk_mac_expr(lo, self.span.hi, mac_ellipsis)); |
