diff options
| author | bors <bors@rust-lang.org> | 2018-12-07 08:46:45 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-12-07 08:46:45 +0000 |
| commit | fc84f5f837a3e1b9b9bc992dd603d3d968502288 (patch) | |
| tree | 9e64c02fb9f8084d26a6a743c62ac54626e549d3 /src/liballoc/tests/binary_heap.rs | |
| parent | 15a2607863fded7570cacfc7825702dde5a4234c (diff) | |
| parent | a40aa45980f45e26a227a889a69b54bcfcd68eba (diff) | |
| download | rust-fc84f5f837a3e1b9b9bc992dd603d3d968502288.tar.gz rust-fc84f5f837a3e1b9b9bc992dd603d3d968502288.zip | |
Auto merge of #56581 - kennytm:rollup, r=kennytm
Rollup of 7 pull requests Successful merges: - #56000 (Add Armv8-M Mainline targets) - #56250 (Introduce ptr::hash for references) - #56434 (Improve query cycle errors for parallel queries) - #56516 (Replace usages of `..i + 1` ranges with `..=i`.) - #56555 (Send textual profile data to stderr, not stdout) - #56561 (Fix bug in from_key_hashed_nocheck) - #56574 (Fix a stutter in the docs for slice::exact_chunks) Failed merges: r? @ghost
Diffstat (limited to 'src/liballoc/tests/binary_heap.rs')
| -rw-r--r-- | src/liballoc/tests/binary_heap.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/tests/binary_heap.rs b/src/liballoc/tests/binary_heap.rs index 8494463463c..b0d8fa6bd69 100644 --- a/src/liballoc/tests/binary_heap.rs +++ b/src/liballoc/tests/binary_heap.rs @@ -318,11 +318,11 @@ fn panic_safe() { const NTEST: usize = 10; // don't use 0 in the data -- we want to catch the zeroed-out case. - let data = (1..DATASZ + 1).collect::<Vec<_>>(); + let data = (1..=DATASZ).collect::<Vec<_>>(); // since it's a fuzzy test, run several tries. for _ in 0..NTEST { - for i in 1..DATASZ + 1 { + for i in 1..=DATASZ { DROP_COUNTER.store(0, Ordering::SeqCst); let mut panic_ords: Vec<_> = data.iter() |
