Skip to content

Commit 8b465b0

Browse files
committed
Temporarily disable test that ICE occurred
Refs: rust-lang/rust#81007
1 parent 56c11b0 commit 8b465b0

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

tests/auto_enum.rs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -753,15 +753,16 @@ mod nightly {
753753

754754
#[test]
755755
fn marker() {
756-
fn marker1(x: usize) -> impl Iterator<Item = i32> + Clone {
757-
#[auto_enum(Iterator, Clone)]
758-
(0..x as i32)
759-
.map(|x| x + 1)
760-
.flat_map(|x| if x > 10 { marker!(0..x) } else { marker!(-100..=0) })
761-
}
762-
for (i, _x) in ANS.iter().enumerate() {
763-
let _ = marker1(i).clone().sum::<i32>();
764-
}
756+
// TODO: uncomment when https://github.com/rust-lang/rust/issues/81007 fixed.
757+
// fn marker1(x: usize) -> impl Iterator<Item = i32> + Clone {
758+
// #[auto_enum(Iterator, Clone)]
759+
// (0..x as i32)
760+
// .map(|x| x + 1)
761+
// .flat_map(|x| if x > 10 { marker!(0..x) } else { marker!(-100..=0) })
762+
// }
763+
// for (i, _x) in ANS.iter().enumerate() {
764+
// let _ = marker1(i).clone().sum::<i32>();
765+
// }
765766

766767
fn marker2(x: usize) -> impl Iterator<Item = i32> + Clone {
767768
let a;

0 commit comments

Comments
 (0)