Skip to content

Commit 7266981

Browse files
committed
removed obsolete reference to purity
1 parent e99657c commit 7266981

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/libsyntax/util/interner.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ impl<T:Eq + IterBytes + Hash + Const + Copy> Interner<T> {
6464
new_idx
6565
}
6666

67-
// this isn't "pure" in the traditional sense, because it can go from
68-
// failing to returning a value as items are interned. But for typestate,
69-
// where we first check a pred and then rely on it, ceasing to fail is ok.
7067
pub fn get(&self, idx: uint) -> T { self.vect[idx] }
7168

7269
pub fn len(&self) -> uint { let vect = &*self.vect; vect.len() }

0 commit comments

Comments
 (0)