about summary refs log tree commit diff
path: root/src/libsyntax/parse/obsolete.rs
AgeCommit message (Collapse)AuthorLines
2014-07-09syntax: doc comments all the thingsCorey Richardson-4/+4
2014-06-14rustc: Obsolete the `@` syntax entirelyAlex Crichton-1/+11
This removes all remnants of `@` pointers from rustc. Additionally, this removes the `GC` structure from the prelude as it seems odd exporting an experimental type in the prelude by default. Closes #14193 [breaking-change]
2014-06-11rustc: Remove ~[T] from the languageAlex Crichton-0/+5
The following features have been removed * box [a, b, c] * ~[a, b, c] * box [a, ..N] * ~[a, ..N] * ~[T] (as a type) * deprecated_owned_vector lint All users of ~[T] should move to using Vec<T> instead.
2014-06-11syntax: Move the AST from @T to Gc<T>Alex Crichton-3/+5
2014-06-01std: Drop Total from Total{Eq,Ord}Alex Crichton-1/+1
This completes the last stage of the renaming of the comparison hierarchy of traits. This change renames TotalEq to Eq and TotalOrd to Ord. In the future the new Eq/Ord will be filled out with their appropriate methods, but for now this change is purely a renaming change. [breaking-change]
2014-05-30std: Rename {Eq,Ord} to Partial{Eq,Ord}Alex Crichton-1/+1
This is part of the ongoing renaming of the equality traits. See #12517 for more details. All code using Eq/Ord will temporarily need to move to Partial{Eq,Ord} or the Total{Eq,Ord} traits. The Total traits will soon be renamed to {Eq,Ord}. cc #12517 [breaking-change]
2014-05-30libsyntax: Fix snake_case errors.Kevin Butler-3/+3
A number of functions/methods have been moved or renamed to align better with rust standard conventions. syntax::ext::mtwt::xorPush => xor_push syntax::parse::parser::Parser => Parser::new [breaking-change]
2014-05-23auto merge of #14360 : alexcrichton/rust/remove-deprecated, r=kballardbors-80/+0
These have all been deprecated for awhile now, so it's likely time to start removing them.
2014-05-23syntax: Clean out obsolete syntax parsingAlex Crichton-80/+0
All of these features have been obsolete since February 2014, where most have been obsolete since 2013. There shouldn't be any more need to keep around the parser hacks after this length of time.
2014-05-22libstd: Remove `~str` from all `libstd` modules except `fmt` and `str`.Patrick Walton-2/+6
2014-05-08libsyntax: Remove uses of `~str` from libsyntax, and fix falloutPatrick Walton-1/+1
2014-05-06librustc: Remove `~EXPR`, `~TYPE`, and `~PAT` from the language, exceptPatrick Walton-0/+15
for `~str`/`~[]`. Note that `~self` still remains, since I forgot to add support for `Box<self>` before the snapshot. How to update your code: * Instead of `~EXPR`, you should write `box EXPR`. * Instead of `~TYPE`, you should write `Box<Type>`. * Instead of `~PATTERN`, you should write `box PATTERN`. [breaking-change]
2014-04-06syntax: Tweak parsing lifetime bounds on closuresAlex Crichton-12/+0
In summary these are some example transitions this change makes: 'a || => ||: 'a proc:Send() => proc():Send The intended syntax for closures is to put the lifetime bound not at the front but rather in the list of bounds. Currently there is no official support in the AST for bounds that are not 'static, so this case is currently specially handled in the parser to desugar to what the AST is expecting. Additionally, this moves the bounds on procedures to the correct position, which is after the argument list. The current grammar for closures and procedures is: procedure := 'proc' [ '<' lifetime-list '>' ] '(' arg-list ')' [ ':' bound-list ] [ '->' type ] closure := [ 'unsafe' ] ['<' lifetime-list '>' ] '|' arg-list '|' [ ':' bound-list ] [ '->' type ] lifetime-list := lifetime | lifetime ',' lifetime-list arg-list := ident ':' type | ident ':' type ',' arg-list bound-list := bound | bound '+' bound-list bound := path | lifetime This does not currently handle the << ambiguity in `Option<<'a>||>`, I am deferring that to a later patch. Additionally, this removes the support for the obsolete syntaxes of ~fn and &fn. Closes #10553 Closes #10767 Closes #11209 Closes #11210 Closes #11211
2014-03-23use TotalEq for HashMapDaniel Micay-1/+1
Closes #5283
2014-03-17De-@ ParseSess uses.Eduard Burtescu-1/+1
2014-02-24Transition to new `Hash`, removing IterBytes and std::to_bytes.Huon Wilson-10/+1
2014-02-14Refactored ast_map and friends, mainly to have Paths without storing them.Eduard Burtescu-2/+1
2014-02-13Remove obsolete warnings for `extern mod`Flavio Percoco-12/+0
This patch gets rid of ObsoleteExternModAttributesInParens and ObsoleteNamedExternModule since the replacement of `extern mod` with `extern crate` avoids those cases and raises different errors. Both have been around for at least a version which makes this a good moment to get rid of them.
2014-02-11Move replace and swap to std::mem. Get rid of std::utilEdward Wang-1/+1
Also move Void to std::any, move drop to std::mem and reexport in prelude.
2014-02-08Fixed error starting with uppercasemr.Shu-1/+1
Error messages cleaned in librustc/middle Error messages cleaned in libsyntax Error messages cleaned in libsyntax more agressively Error messages cleaned in librustc more aggressively Fixed affected tests Fixed other failing tests Last failing tests fixed
2014-02-02syntax: add an obsolete syntax warning for @[].Huon Wilson-0/+5
2014-02-02librustc: Remove `@str` from the languagePatrick Walton-0/+5
2014-02-02libsyntax: Remove `ident_to_str` from the parser, which was returningPatrick Walton-2/+2
`@str` values
2014-01-31Remove the obsolete handler for `impl A;`.Huon Wilson-5/+0
This is has been obsolete for quite a while now (including a release), so removing the special handling seems fine. (The error message is quite good still anyway.) Fixes #9580.
2014-01-13libsyntax: Make managed box `@` patterns obsoletePatrick Walton-2/+8
2014-01-09libsyntax: Renamed types, traits and enum variants to CamelCase.Eduard Burtescu-2/+2
2014-01-02libsyntax: De-`@mut` `token` in the parserPatrick Walton-9/+2
2014-01-02libsyntax: Make the parser mutablePatrick Walton-13/+13
2014-01-01Remove `extern mod foo (name="bar")` syntax, closes #9543Florian Hahn-0/+6
2013-12-15Forbid multiple imports in use statementsAlex Crichton-0/+5
Closes #10911
2013-11-26libsyntax: Remove the old-style borrowed closure type syntax from thePatrick Walton-0/+6
language.
2013-11-19libsyntax: Change all uses of `&fn` to `||`.Patrick Walton-1/+1
2013-11-18libsyntax: Remove `~fn()` from the languagePatrick Walton-1/+7
2013-11-18Use '..' as slice wildcard in vectorsBrian Anderson-1/+6
2013-11-18Use '..' as multi-field wildcard in enums and structs.Brian Anderson-0/+10
2013-10-25libsyntax: Get rid of obsolete obsolete warning.Luqman Aden-6/+0
2013-10-04Remove specific errors for very old obsolete syntaxBenjamin Herr-166/+2
Replaces existing tests for removed obsolete-syntax errors with tests for the resulting regular errors, adds a test for each of the removed parser errors to make sure that obsolete forms don't start working again, removes some obsolete/superfluous tests that were now failing. Deletes some amount of dead code in the parser, also includes some small changes to parser error messages to accomodate new tests.
2013-10-01Obsolete parsing 'loop' as 'continue'Alex Crichton-0/+6
2013-09-30syntax: Remove usage of fmt!Alex Crichton-2/+2
2013-09-25auto merge of #9432 : alexcrichton/rust/correct-item-visibility, r=pcwaltonbors-17/+0
This fixes private statics and functions from being usable cross-crates, along with some bad privacy error messages. This is a reopening of #8365 with all the privacy checks in privacy.rs instead of resolve.rs (where they should be anyway). These maps of exported items will hopefully get used for generating documentation by rustdoc Closes #8592
2013-09-24Stop accepting 'impl ...;', require {} insteadAlex Crichton-0/+5
Progress on #7981
2013-09-24Correctly encode item visibility in metadataAlex Crichton-17/+0
This fixes private statics and functions from being usable cross-crates, along with some bad privacy error messages. This is a reopening of #8365 with all the privacy checks in privacy.rs instead of resolve.rs (where they should be anyway). These maps of exported items will hopefully get used for generating documentation by rustdoc Closes #8592
2013-09-03Modernized a few more types in syntax::astMarvin Löbel-4/+4
2013-09-01Modernized a few type names in rustc and syntaxMarvin Löbel-7/+7
2013-08-27librustc: Remove `&const` and `*const` from the language.Patrick Walton-5/+6
They are still present as part of the borrow check.
2013-08-18fix for #8088 (Cannot name a struct field `new` due to ancient syntax)Do Nhat Minh-19/+0
remove code for parsing ancient syntax added a run-pass test
2013-08-12Forbid pub/priv where it has no effectAlex Crichton-8/+13
Closes #5495
2013-08-07Forbid `priv` where it has no effectAlex Crichton-0/+5
This is everywhere except struct fields and enum variants.
2013-08-02librustc: Disallow "unsafe" for external functionsPatrick Walton-1/+7
2013-07-31rm ancient error for lowercase kindsDaniel Micay-7/+0
3 of these kinds no longer even exist in the CamelCase form