diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-03-05 18:06:53 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-03-07 22:32:54 -0800 |
| commit | 4e3dbfe05257b4f5862e7b57777cba6d179d9cc0 (patch) | |
| tree | 62d9b6044fa74d11807e0f69dd56680e1747830e /src/libsyntax/parse | |
| parent | 239e64242c2f35b223403be611ad6a25ce8e76c2 (diff) | |
| download | rust-4e3dbfe05257b4f5862e7b57777cba6d179d9cc0.tar.gz rust-4e3dbfe05257b4f5862e7b57777cba6d179d9cc0.zip | |
librustc: Remove structural record types from the compiler
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index cb4a2ce6920..b159e79a09c 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -51,7 +51,7 @@ use ast::{token_tree, trait_method, trait_ref, tt_delim, tt_seq, tt_tok}; use ast::{tt_nonterminal, tuple_variant_kind, Ty, ty_, ty_bot, ty_box}; use ast::{ty_field, ty_fixed_length_vec, ty_closure, ty_bare_fn}; use ast::{ty_infer, ty_mac, ty_method}; -use ast::{ty_nil, TyParam, TyParamBound, ty_path, ty_ptr, ty_rec, ty_rptr}; +use ast::{ty_nil, TyParam, TyParamBound, ty_path, ty_ptr, ty_rptr}; use ast::{ty_tup, ty_u32, ty_uniq, ty_vec, type_value_ns, uniq}; use ast::{unnamed_field, unsafe_blk, unsafe_fn, variant, view_item}; use ast::{view_item_, view_item_extern_mod, view_item_use}; @@ -659,7 +659,7 @@ pub impl Parser { self.unexpected_last(&token::RBRACE); } self.obsolete(*self.last_span, ObsoleteRecordType); - ty_rec(elems) + ty_nil } else if *self.token == token::LBRACKET { self.expect(&token::LBRACKET); let mt = self.parse_mt(); |
