diff options
| author | Benjamin Herr <ben@0x539.de> | 2013-10-03 11:53:46 +0200 |
|---|---|---|
| committer | Benjamin Herr <ben@0x539.de> | 2013-10-04 07:09:28 +0200 |
| commit | fa411500f969be6131aee62e3885460f90c150bb (patch) | |
| tree | 53582eebea0903a3b36837dafb468ac53be60990 /src/libsyntax/ast.rs | |
| parent | 4bae639d86bd4c63040874dd5c305983832162c0 (diff) | |
| download | rust-fa411500f969be6131aee62e3885460f90c150bb.tar.gz rust-fa411500f969be6131aee62e3885460f90c150bb.zip | |
Remove specific errors for very old obsolete syntax
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.
Diffstat (limited to 'src/libsyntax/ast.rs')
| -rw-r--r-- | src/libsyntax/ast.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index 5056bd5a00d..6de3b7aa0b0 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -531,9 +531,7 @@ pub enum Expr_ { ExprWhile(@Expr, Block), // FIXME #6993: change to Option<Name> ExprForLoop(@Pat, @Expr, Block, Option<Ident>), - /* Conditionless loop (can be exited with break, cont, or ret) - Same semantics as while(true) { body }, but typestate knows that the - (implicit) condition is always true. */ + // Conditionless loop (can be exited with break, cont, or ret) // FIXME #6993: change to Option<Name> ExprLoop(Block, Option<Ident>), ExprMatch(@Expr, ~[Arm]), |
