Skip to content

Commit df10df8

Browse files
committed
Remove last mentions of vec<> type in Rust source
1 parent 5dd62b7 commit df10df8

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/lib/vec.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@ native "rust" mod rustrt {
1717
count: uint);
1818
}
1919

20-
fn from_vec<@T>(v: &vec<mutable? T>) -> [T] {
21-
let iv = ~[];
22-
for e in v {
23-
iv += ~[e];
24-
}
25-
ret iv;
26-
}
27-
2820
/// Reserves space for `n` elements in the given vector.
2921
fn reserve<@T>(v: &mutable [mutable? T], n: uint) {
3022
rustrt::ivec_reserve_shared(v, n);

src/test/run-pass/binops.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ fn test_fn() {
115115
}
116116

117117
native "rust" mod native_mod = "" {
118-
fn str_byte_len(s: str) -> vec<u8>;
118+
fn str_byte_len(s: str) -> uint;
119119
// This isn't actually the signature of str_alloc, but since
120120
// we're not calling it that shouldn't matter
121-
fn str_alloc(s: str) -> vec<u8>;
121+
fn str_alloc(s: str) -> uint;
122122
}
123123

124124
// FIXME: comparison of native fns

0 commit comments

Comments
 (0)