From fa411500f969be6131aee62e3885460f90c150bb Mon Sep 17 00:00:00 2001 From: Benjamin Herr Date: Thu, 3 Oct 2013 11:53:46 +0200 Subject: 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. --- src/libsyntax/util/interner.rs | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/libsyntax/util') 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() } -- cgit 1.4.1-3-g733a5