File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 9029416e287e663bd6a1f48727509872669853c0
2
+ refs/heads/master: 48c2c9b3a7da174d58219f2c2e0cc43926280f35
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ fn reserve<@T>(&v: [mutable? T], n: uint) {
18
18
rustrt:: vec_reserve_shared ( v, n) ;
19
19
}
20
20
21
- fn len < T > ( v : [ mutable? T ] ) -> uint { ret rusti:: vec_len ( v) ; }
21
+ pure fn len < T > ( v : [ mutable? T ] ) -> uint { unchecked { rusti : : vec_len ( v) } }
22
22
23
23
type init_op < T > = fn ( uint ) -> T ;
24
24
@@ -271,9 +271,7 @@ fn position_pred<T>(f: fn(T) -> bool, v: [T]) -> option::t<uint> {
271
271
}
272
272
273
273
pure fn same_length < T , U > ( xs : [ T ] , ys : [ U ] ) -> bool {
274
- let xlen = unchecked { vec : : len ( xs) } ;
275
- let ylen = unchecked { vec : : len ( ys) } ;
276
- xlen == ylen
274
+ vec:: len ( xs) == vec:: len ( ys)
277
275
}
278
276
279
277
// FIXME: if issue #586 gets implemented, could have a postcondition
You can’t perform that action at this time.
0 commit comments