diff --git a/src/lib/vec.rs b/src/lib/vec.rs index dc0dab58d0c..71d0be56f2b 100644 --- a/src/lib/vec.rs +++ b/src/lib/vec.rs @@ -17,14 +17,6 @@ native "rust" mod rustrt { count: uint); } -fn from_vec<@T>(v: &vec) -> [T] { - let iv = ~[]; - for e in v { - iv += ~[e]; - } - ret iv; -} - /// Reserves space for `n` elements in the given vector. fn reserve<@T>(v: &mutable [mutable? T], n: uint) { rustrt::ivec_reserve_shared(v, n); diff --git a/src/test/run-pass/binops.rs b/src/test/run-pass/binops.rs index 8fab2a68539..dfb02f70e7e 100644 --- a/src/test/run-pass/binops.rs +++ b/src/test/run-pass/binops.rs @@ -115,10 +115,10 @@ fn test_fn() { } native "rust" mod native_mod = "" { - fn str_byte_len(s: str) -> vec; + fn str_byte_len(s: str) -> uint; // This isn't actually the signature of str_alloc, but since // we're not calling it that shouldn't matter - fn str_alloc(s: str) -> vec; + fn str_alloc(s: str) -> uint; } // FIXME: comparison of native fns