Skip to content

Commit af63309

Browse files
committed
---
yaml --- r: 11944 b: refs/heads/master c: 3445454 h: refs/heads/master v: v3
1 parent f06e4c7 commit af63309

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 9e9f4a6240b79ff64c5169296468950045e83515
2+
refs/heads/master: 3445454e792bc4b770a99e227fc18b5c90f8ed8a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/libcore/str.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ native mod rustrt {
106106
fn str_reserve_shared(&ss: str, nn: libc::size_t);
107107
}
108108

109-
// FIXME: add pure to a lot of functions
110-
111109
/*
112110
Section: Creating a string
113111
*/

trunk/src/libcore/vec.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ type init_op<T> = fn(uint) -> T;
9494

9595
#[doc = "Returns true if a vector contains no elements"]
9696
pure fn is_empty<T>(v: [const T]) -> bool {
97-
// FIXME: This would be easier if we could just call len
98-
for t: T in v { ret false; }
99-
ret true;
97+
len(v) == 0u
10098
}
10199

102100
#[doc = "Returns true if a vector contains some elements"]
@@ -154,8 +152,6 @@ fn from_elem<T: copy>(n_elts: uint, t: T) -> [T] {
154152
ret v;
155153
}
156154

157-
// FIXME: Possible typestate postcondition:
158-
// len(result) == len(v) (needs issue #586)
159155
#[doc = "Produces a mutable vector from an immutable vector."]
160156
fn to_mut<T>(+v: [T]) -> [mutable T] unsafe {
161157
let r = ::unsafe::reinterpret_cast(v);
@@ -185,9 +181,6 @@ fn tailn<T: copy>(v: [const T], n: uint) -> [T] {
185181
slice(v, n, len(v))
186182
}
187183

188-
// FIXME: This name is sort of confusing next to from_fn, etc
189-
// but this is the name haskell uses for this function,
190-
// along with head/tail/last.
191184
#[doc = "Returns all but the last elemnt of a vector"]
192185
fn init<T: copy>(v: [const T]) -> [T] {
193186
assert len(v) != 0u;

0 commit comments

Comments
 (0)