diff options
| author | Paul Stansifer <paul.stansifer@gmail.com> | 2012-07-17 17:05:38 -0700 |
|---|---|---|
| committer | Paul Stansifer <paul.stansifer@gmail.com> | 2012-07-30 18:04:19 -0700 |
| commit | 4e9c475527b0a4cbf43b14c028370b0f784fd99f (patch) | |
| tree | b59eed14241a82c1f2bed7e45fa2f0b5ebd2c789 /src/libsyntax/util | |
| parent | be3b733c49a1aeb5b99eb55a943f563531e1fc45 (diff) | |
| download | rust-4e9c475527b0a4cbf43b14c028370b0f784fd99f.tar.gz rust-4e9c475527b0a4cbf43b14c028370b0f784fd99f.zip | |
Work around bug #2935 by unautounboxing.
Diffstat (limited to 'src/libsyntax/util')
| -rw-r--r-- | src/libsyntax/util/interner.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/util/interner.rs b/src/libsyntax/util/interner.rs index f25604ab991..b6320b4f9cb 100644 --- a/src/libsyntax/util/interner.rs +++ b/src/libsyntax/util/interner.rs @@ -42,5 +42,6 @@ impl <T: const copy> of interner<T> for hash_interner<T> { // 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. pure fn get(idx: uint) -> T { self.vect.get_elt(idx) } + fn len() -> uint { ret self.vect.len(); } } \ No newline at end of file |
