From cec1a9b8592b573e40d81ba52d658bdcd9acacb3 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Mon, 19 Mar 2012 10:45:29 +0100 Subject: Properly check kinds when instantiating types Closes #2011 --- src/libstd/smallintmap.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libstd') diff --git a/src/libstd/smallintmap.rs b/src/libstd/smallintmap.rs index e90fb1abd96..d58e0519387 100644 --- a/src/libstd/smallintmap.rs +++ b/src/libstd/smallintmap.rs @@ -7,10 +7,10 @@ import core::option::{some, none}; // FIXME: Should not be @; there's a bug somewhere in rustc that requires this // to be. -type smallintmap = @{mutable v: [mutable option]}; +type smallintmap = @{mutable v: [mutable option]}; #[doc = "Create a smallintmap"] -fn mk() -> smallintmap { +fn mk() -> smallintmap { let v: [mutable option] = [mutable]; ret @{mutable v: v}; } @@ -59,7 +59,7 @@ fn truncate(m: smallintmap, len: uint) { m.v = vec::to_mut(vec::slice::>(m.v, 0u, len)); } -fn max_key(m: smallintmap) -> uint { +fn max_key(m: smallintmap) -> uint { ret vec::len::>(m.v); } @@ -116,6 +116,6 @@ impl of map::map for smallintmap { } #[doc = "Cast the given smallintmap to a map::map"] -fn as_map(s: smallintmap) -> map::map { +fn as_map(s: smallintmap) -> map::map { s as map::map:: } -- cgit 1.4.1-3-g733a5