librustc: Remove @str from the language

This commit is contained in:
Patrick Walton
2014-01-31 18:25:08 -08:00
committed by Huon Wilson
parent 449a7a817f
commit c594e675eb
13 changed files with 36 additions and 19 deletions

View File

@@ -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)
};
}