Remove last mentions of vec<> type in Rust source

This commit is contained in:
Brian Anderson 2011-08-17 16:01:23 -07:00
parent 5dd62b7d41
commit df10df821b
2 changed files with 2 additions and 10 deletions

View file

@ -17,14 +17,6 @@ native "rust" mod rustrt {
count: uint);
}
fn from_vec<@T>(v: &vec<mutable? T>) -> [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);

View file

@ -115,10 +115,10 @@ fn test_fn() {
}
native "rust" mod native_mod = "" {
fn str_byte_len(s: str) -> vec<u8>;
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<u8>;
fn str_alloc(s: str) -> uint;
}
// FIXME: comparison of native fns