diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2014-01-31 18:25:08 -0800 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2014-02-02 01:44:50 +1100 |
| commit | c594e675eb3db25cd018d58d8fe06ef6ea2c90de (patch) | |
| tree | 4520d9b24ded21fcff4dfe3712de2665d3ed779f /src/libsyntax/parse/parser.rs | |
| parent | 449a7a817ff58288084b49665d5186674255c949 (diff) | |
| download | rust-c594e675eb3db25cd018d58d8fe06ef6ea2c90de.tar.gz rust-c594e675eb3db25cd018d58d8fe06ef6ea2c90de.zip | |
librustc: Remove `@str` from the language
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index dc16f32b872..fb679fa0460 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -2295,7 +2295,10 @@ impl Parser { ex = match e.node { ExprVec(..) | ExprRepeat(..) => ExprVstore(e, ExprVstoreBox), - ExprLit(lit) if lit_is_str(lit) => ExprVstore(e, ExprVstoreBox), + ExprLit(lit) if lit_is_str(lit) => { + self.obsolete(self.last_span, ObsoleteManagedString); + ExprVstore(e, ExprVstoreBox) + } _ => self.mk_unary(UnBox, e) }; } |
