Skip to content

Commit b458210

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 171230 b: refs/heads/batch c: 18e2026 h: refs/heads/master v: v3
1 parent 11fea5b commit b458210

File tree

5 files changed

+9
-39
lines changed

5 files changed

+9
-39
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2929
refs/heads/issue-18208-method-dispatch-2: 9e1eae4fb9b6527315b4441cf8a0f5ca911d1671
3030
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
32-
refs/heads/batch: 37448506ea575d94389a60dce2aaebd57dba50a3
32+
refs/heads/batch: 18e2026ff8ae67cf8dea61c938d87f1f45734751
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 496dc4eae7de9d14cd49511a9acfbf5f11ae6c3f
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928

branches/batch/src/libcoretest/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ mod num;
3030
mod ops;
3131
mod option;
3232
mod ptr;
33-
mod raw;
3433
mod result;
3534
mod slice;
3635
mod str;

branches/batch/src/libcoretest/option.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ fn test_ord() {
220220
assert!(big > None);
221221
}
222222

223+
/* FIXME(#20575)
223224
#[test]
224225
fn test_collect() {
225226
let v: Option<Vec<int>> = range(0i, 0).map(|_| Some(0i)).collect();
@@ -234,12 +235,14 @@ fn test_collect() {
234235
assert!(v == None);
235236
236237
// test that it does not take more elements than it needs
237-
let mut functions = [|| Some(()), || None, || panic!()];
238+
let mut functions: [Box<Fn() -> Option<()>>; 3] =
239+
[box || Some(()), box || None, box || panic!()];
238240
239241
let v: Option<Vec<()>> = functions.iter_mut().map(|f| (*f)()).collect();
240242
241243
assert!(v == None);
242244
}
245+
*/
243246

244247
#[test]
245248
fn test_cloned() {

branches/batch/src/libcoretest/raw.rs

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

branches/batch/src/libcoretest/result.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ pub fn test_impl_map_err() {
6767
assert!(Err::<int, int>(1).map_err(|x| x + 1) == Err(2));
6868
}
6969

70+
/* FIXME(#20575)
7071
#[test]
7172
fn test_collect() {
7273
let v: Result<Vec<int>, ()> = range(0i, 0).map(|_| Ok::<int, ()>(0)).collect();
@@ -81,11 +82,13 @@ fn test_collect() {
8182
assert!(v == Err(2));
8283
8384
// test that it does not take more elements than it needs
84-
let mut functions = [|| Ok(()), || Err(1i), || panic!()];
85+
let mut functions: [Box<Fn() -> Result<(), int>>; 3] =
86+
[box || Ok(()), box || Err(1i), box || panic!()];
8587
8688
let v: Result<Vec<()>, int> = functions.iter_mut().map(|f| (*f)()).collect();
8789
assert!(v == Err(1));
8890
}
91+
*/
8992

9093
#[test]
9194
pub fn test_fmt_default() {

0 commit comments

Comments
 (0)