about summary refs log tree commit diff
path: root/src/test/compile-fail/removed-syntax-uniq-mut-expr.rs
AgeCommit message (Collapse)AuthorLines
2015-02-06Move compile-fail tests that are rejected by the parser to parse-failFlorian Hahn-15/+0
2014-12-04Make the parser’s ‘expected <foo>, found <bar>’ errors more accurateP1start-1/+1
As an example of what this changes, the following code: let x: [int ..4]; Currently spits out ‘expected `]`, found `..`’. However, a comma would also be valid there, as would a number of other tokens. This change adjusts the parser to produce more accurate errors, so that that example now produces ‘expected one of `(`, `+`, `,`, `::`, or `]`, found `..`’.
2014-08-29Tweak error message for use of a keyword in ident position.Jonas Hietala-1/+1
Closes #15358
2014-08-24Adjust the error messages to match the pattern "expected foo, found bar"Jonas Hietala-1/+1
Closes #8492
2014-05-06librustc: Remove `~EXPR`, `~TYPE`, and `~PAT` from the language, exceptPatrick Walton-1/+1
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]
2013-12-15librustc: Remove identifiers named `box`, since it's about to become a keyword.Patrick Walton-1/+1
2013-10-04Remove specific errors for very old obsolete syntaxBenjamin Herr-0/+15
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.