We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e99657c commit 7266981Copy full SHA for 7266981
src/libsyntax/util/interner.rs
@@ -64,9 +64,6 @@ impl<T:Eq + IterBytes + Hash + Const + Copy> Interner<T> {
64
new_idx
65
}
66
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.
70
pub fn get(&self, idx: uint) -> T { self.vect[idx] }
71
72
pub fn len(&self) -> uint { let vect = &*self.vect; vect.len() }
0 commit comments