From 4e9c475527b0a4cbf43b14c028370b0f784fd99f Mon Sep 17 00:00:00 2001 From: Paul Stansifer Date: Tue, 17 Jul 2012 17:05:38 -0700 Subject: Work around bug #2935 by unautounboxing. --- src/libsyntax/util/interner.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libsyntax/util') 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 of interner for hash_interner { // 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 -- cgit 1.4.1-3-g733a5