File tree Expand file tree Collapse file tree 3 files changed +3
-11
lines changed Expand file tree Collapse file tree 3 files changed +3
-11
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 5dd62b7d410b25da1b7250e2a6b4cf6a5689bee3
2
+ refs/heads/master: df10df821b734b51dc7d434db979156a180a84e1
Original file line number Diff line number Diff line change @@ -17,14 +17,6 @@ native "rust" mod rustrt {
17
17
count : uint ) ;
18
18
}
19
19
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
-
28
20
/// Reserves space for `n` elements in the given vector.
29
21
fn reserve < @T > ( v : & mutable [ mutable? T ] , n : uint ) {
30
22
rustrt:: ivec_reserve_shared ( v, n) ;
Original file line number Diff line number Diff line change @@ -115,10 +115,10 @@ fn test_fn() {
115
115
}
116
116
117
117
native "rust" mod native_mod = "" {
118
- fn str_byte_len ( s : str ) -> vec < u8 > ;
118
+ fn str_byte_len ( s : str ) -> uint ;
119
119
// This isn't actually the signature of str_alloc, but since
120
120
// we're not calling it that shouldn't matter
121
- fn str_alloc ( s : str ) -> vec < u8 > ;
121
+ fn str_alloc ( s : str ) -> uint ;
122
122
}
123
123
124
124
// FIXME: comparison of native fns
You can’t perform that action at this time.
0 commit comments