Skip to content

Commit b140d1c

Browse files
committed
---
yaml --- r: 4782 b: refs/heads/master c: df10df8 h: refs/heads/master v: v3
1 parent 4077990 commit b140d1c

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 5dd62b7d410b25da1b7250e2a6b4cf6a5689bee3
2+
refs/heads/master: df10df821b734b51dc7d434db979156a180a84e1

trunk/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);

trunk/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)