diff options
| author | Adolfo OchagavĂa <aochagavia92@gmail.com> | 2015-01-11 16:52:51 +0100 |
|---|---|---|
| committer | Adolfo OchagavĂa <aochagavia92@gmail.com> | 2015-01-14 22:17:03 +0100 |
| commit | 21a2df6362dc07d9e1f707245e36ff5b7b9865db (patch) | |
| tree | bace0fd81116f52c586dc01bfbbd05102bf20af0 /src/libsyntax/parse/obsolete.rs | |
| parent | 896cb36ecab3eaeb7f101087e030e43771eca5ca (diff) | |
| download | rust-21a2df6362dc07d9e1f707245e36ff5b7b9865db.tar.gz rust-21a2df6362dc07d9e1f707245e36ff5b7b9865db.zip | |
Remove old obsolete syntax errors
Diffstat (limited to 'src/libsyntax/parse/obsolete.rs')
| -rw-r--r-- | src/libsyntax/parse/obsolete.rs | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/libsyntax/parse/obsolete.rs b/src/libsyntax/parse/obsolete.rs index e9e207e7dbc..9d03ec73af8 100644 --- a/src/libsyntax/parse/obsolete.rs +++ b/src/libsyntax/parse/obsolete.rs @@ -24,14 +24,6 @@ use ptr::P; pub enum ObsoleteSyntax { Sized, ForSized, - OwnedType, - OwnedExpr, - OwnedPattern, - OwnedVector, - OwnedSelf, - ImportRenaming, - SubsliceMatch, - ExternCrateRenaming, ProcType, ProcExpr, ClosureType, @@ -69,38 +61,6 @@ impl<'a> ParserObsoleteMethods for parser::Parser<'a> { "`proc` expression", "use a `move ||` expression instead", ), - ObsoleteSyntax::OwnedType => ( - "`~` notation for owned pointers", - "use `Box<T>` in `std::owned` instead" - ), - ObsoleteSyntax::OwnedExpr => ( - "`~` notation for owned pointer allocation", - "use the `box` operator instead of `~`" - ), - ObsoleteSyntax::OwnedPattern => ( - "`~` notation for owned pointer patterns", - "use the `box` operator instead of `~`" - ), - ObsoleteSyntax::OwnedVector => ( - "`~[T]` is no longer a type", - "use the `Vec` type instead" - ), - ObsoleteSyntax::OwnedSelf => ( - "`~self` is no longer supported", - "write `self: Box<Self>` instead" - ), - ObsoleteSyntax::ImportRenaming => ( - "`use foo = bar` syntax", - "write `use bar as foo` instead" - ), - ObsoleteSyntax::SubsliceMatch => ( - "subslice match syntax", - "instead of `..xs`, write `xs..` in a pattern" - ), - ObsoleteSyntax::ExternCrateRenaming => ( - "`extern crate foo = bar` syntax", - "write `extern crate bar as foo` instead" - ), ObsoleteSyntax::ClosureType => ( "`|uint| -> bool` closure type syntax", "use unboxed closures instead, no type annotation needed" |
