diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2015-02-26 15:22:13 +0200 |
|---|---|---|
| committer | Eduard Burtescu <edy.burt@gmail.com> | 2015-02-26 16:44:07 +0200 |
| commit | 704ce1d735cc885718fc5d1d4b2b5ca55410271e (patch) | |
| tree | 259a0f7172c281b021ee8f374d507d9766ff7c6b /src/test/bench/task-perf-alloc-unwind.rs | |
| parent | 41f8b1e89b5ca0c79d7bca782ca44085624d4564 (diff) | |
| download | rust-704ce1d735cc885718fc5d1d4b2b5ca55410271e.tar.gz rust-704ce1d735cc885718fc5d1d4b2b5ca55410271e.zip | |
Revert hacks and add test for LLVM aborts due to empty aggregates.
Closes #21721.
Diffstat (limited to 'src/test/bench/task-perf-alloc-unwind.rs')
| -rw-r--r-- | src/test/bench/task-perf-alloc-unwind.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/test/bench/task-perf-alloc-unwind.rs b/src/test/bench/task-perf-alloc-unwind.rs index 6b412c47cd7..896b0ee57a0 100644 --- a/src/test/bench/task-perf-alloc-unwind.rs +++ b/src/test/bench/task-perf-alloc-unwind.rs @@ -40,9 +40,7 @@ fn run(repeat: int, depth: int) { } } -// FIXME(#21721) used to be `List<()>` but that can cause -// certain LLVM versions to abort during optimizations. -type nillist = List<[u8; 0]>; +type nillist = List<()>; // Filled with things that have to be unwound @@ -83,11 +81,11 @@ fn recurse_or_panic(depth: int, st: Option<State>) { } Some(st) => { let mut v = st.vec.clone(); - v.push_all(&[box List::Cons([], st.vec.last().unwrap().clone())]); + v.push_all(&[box List::Cons((), st.vec.last().unwrap().clone())]); State { - unique: box List::Cons([], box *st.unique), + unique: box List::Cons((), box *st.unique), vec: v, - res: r(box List::Cons([], st.res._l.clone())), + res: r(box List::Cons((), st.res._l.clone())), } } }; |
