about summary refs log tree commit diff
path: root/src/libsyntax/util
diff options
context:
space:
mode:
authorBenjamin Herr <ben@0x539.de>2013-10-03 11:53:46 +0200
committerBenjamin Herr <ben@0x539.de>2013-10-04 07:09:28 +0200
commitfa411500f969be6131aee62e3885460f90c150bb (patch)
tree53582eebea0903a3b36837dafb468ac53be60990 /src/libsyntax/util
parent4bae639d86bd4c63040874dd5c305983832162c0 (diff)
downloadrust-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/util')
-rw-r--r--src/libsyntax/util/interner.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libsyntax/util/interner.rs b/src/libsyntax/util/interner.rs
index 2b1e7eaa9b2..82249453ac2 100644
--- a/src/libsyntax/util/interner.rs
+++ b/src/libsyntax/util/interner.rs
@@ -134,9 +134,6 @@ impl StrInterner {
         new_idx
     }
 
-    // this isn't "pure" in the traditional sense, because it can go from
-    // failing to returning a value as items are interned. But for typestate,
-    // where we first check a pred and then rely on it, ceasing to fail is ok.
     pub fn get(&self, idx: uint) -> @str { self.vect[idx] }
 
     pub fn len(&self) -> uint { let vect = &*self.vect; vect.len() }