Skip to content

Commit 5f49498

Browse files
committed
---
yaml --- r: 56571 b: refs/heads/auto c: 229ebf0 h: refs/heads/master i: 56569: 545f8af 56567: 6426c53 v: v3
1 parent 5ecbf53 commit 5f49498

File tree

5 files changed

+1
-81
lines changed

5 files changed

+1
-81
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: 6f18bb550e1293e77281b1cc76f1830a4da2d355
17+
refs/heads/auto: 229ebf0bca23f5619940ecf2cf4541e0bb7416de
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

branches/auto/src/libcore/char.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
//! Utilities for manipulating the char type
1212
13-
#[cfg(notest)]
1413
use cmp::Ord;
1514
use option::{None, Option, Some};
1615
use str;

branches/auto/src/libcore/iter.rs

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ much easier to implement.
4141
4242
*/
4343

44-
use option::{Option, Some, None};
45-
4644
pub trait Times {
4745
fn times(&self, it: &fn() -> bool);
4846
}
@@ -106,27 +104,6 @@ pub fn all<T>(predicate: &fn(T) -> bool, iter: &fn(f: &fn(T) -> bool)) -> bool {
106104
true
107105
}
108106

109-
/**
110-
* Return the first element where `predicate` returns `true`, otherwise return `Npne` if no element
111-
* is found.
112-
*
113-
* # Example:
114-
*
115-
* ~~~~
116-
* let xs = ~[1u, 2, 3, 4, 5, 6];
117-
* assert_eq!(*find(|& &x: & &uint| x > 3, |f| xs.each(f)).unwrap(), 4);
118-
* ~~~~
119-
*/
120-
#[inline(always)]
121-
pub fn find<T>(predicate: &fn(&T) -> bool, iter: &fn(f: &fn(T) -> bool)) -> Option<T> {
122-
for iter |x| {
123-
if predicate(&x) {
124-
return Some(x);
125-
}
126-
}
127-
None
128-
}
129-
130107
#[cfg(test)]
131108
mod tests {
132109
use super::*;
@@ -151,10 +128,4 @@ mod tests {
151128
assert!(all(|x: uint| x < 6, |f| uint::range(1, 6, f)));
152129
assert!(!all(|x: uint| x < 5, |f| uint::range(1, 6, f)));
153130
}
154-
155-
#[test]
156-
fn test_find() {
157-
let xs = ~[1u, 2, 3, 4, 5, 6];
158-
assert_eq!(*find(|& &x: & &uint| x > 3, |f| xs.each(f)).unwrap(), 4);
159-
}
160131
}

branches/auto/src/test/run-pass/issue-1466.rs

Lines changed: 0 additions & 17 deletions
This file was deleted.

branches/auto/src/test/run-pass/issue-1989.rs

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)