syntax: remove ObsoleteManaged{Type,Expr}.

This commit is contained in:
Eduard Burtescu 2014-10-02 00:29:16 +03:00
parent db55e70c97
commit aa59693565
2 changed files with 0 additions and 24 deletions

View file

@ -31,8 +31,6 @@ pub enum ObsoleteSyntax {
ObsoleteOwnedPattern,
ObsoleteOwnedVector,
ObsoleteOwnedSelf,
ObsoleteManagedType,
ObsoleteManagedExpr,
ObsoleteImportRenaming,
ObsoleteSubsliceMatch,
ObsoleteExternCrateRenaming,
@ -77,14 +75,6 @@ impl<'a> ParserObsoleteMethods for parser::Parser<'a> {
"`~self` is no longer supported",
"write `self: Box<Self>` instead"
),
ObsoleteManagedType => (
"`@` notation for managed pointers",
"use `Gc<T>` in `std::gc` instead"
),
ObsoleteManagedExpr => (
"`@` notation for a managed pointer allocation",
"use the `box(GC)` operator instead of `@`"
),
ObsoleteImportRenaming => (
"`use foo = bar` syntax",
"write `use bar as foo` instead"

View file

@ -1449,12 +1449,6 @@ impl<'a> Parser<'a> {
t
}
}
} else if self.token == token::AT {
// MANAGED POINTER
self.bump();
let span = self.last_span;
self.obsolete(span, ObsoleteManagedType);
TyUniq(self.parse_ty(plus_allowed))
} else if self.token == token::TILDE {
// OWNED POINTER
self.bump();
@ -2722,14 +2716,6 @@ impl<'a> Parser<'a> {
hi = e.span.hi;
ex = ExprAddrOf(m, e);
}
token::AT => {
self.bump();
let span = self.last_span;
self.obsolete(span, ObsoleteManagedExpr);
let e = self.parse_prefix_expr();
hi = e.span.hi;
ex = self.mk_unary(UnUniq, e);
}
token::TILDE => {
self.bump();
let last_span = self.last_span;