Remove last mentions of vec<> type in Rust source
This commit is contained in:
parent
5dd62b7d41
commit
df10df821b
2 changed files with 2 additions and 10 deletions
|
@ -17,14 +17,6 @@ native "rust" mod rustrt {
|
||||||
count: uint);
|
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.
|
/// Reserves space for `n` elements in the given vector.
|
||||||
fn reserve<@T>(v: &mutable [mutable? T], n: uint) {
|
fn reserve<@T>(v: &mutable [mutable? T], n: uint) {
|
||||||
rustrt::ivec_reserve_shared(v, n);
|
rustrt::ivec_reserve_shared(v, n);
|
||||||
|
|
|
@ -115,10 +115,10 @@ fn test_fn() {
|
||||||
}
|
}
|
||||||
|
|
||||||
native "rust" mod native_mod = "" {
|
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
|
// This isn't actually the signature of str_alloc, but since
|
||||||
// we're not calling it that shouldn't matter
|
// 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
|
// FIXME: comparison of native fns
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue