Remove last mentions of vec<> type in Rust source
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user