Skip to content

Commit 8c05d2b

Browse files
bors[bot]cuviper
andcommitted
589: Force lazy_static 1.0.2 for older CI r=cuviper a=cuviper Fixes rayon-rs#587. Co-authored-by: Josh Stone <[email protected]>
2 parents 5107676 + 9dc5b44 commit 8c05d2b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ matrix:
1616
os: linux
1717
#if: everything!
1818
script: cargo build
19+
before_script:
20+
# lazy_static 1.1 requires Rust 1.21+, so downgrade it.
21+
- cargo generate-lockfile
22+
- cargo update -p lazy_static --precise 1.0.2
1923

2024
- rust: stable
2125
os: linux

src/range.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ fn test_u64_opt_len() {
244244
assert_eq!(Some(100), (0..100u64).into_par_iter().opt_len());
245245
assert_eq!(Some(usize::MAX), (0..usize::MAX as u64).into_par_iter().opt_len());
246246
if (usize::MAX as u64) < u64::MAX {
247-
assert_eq!(None, (0..1 + usize::MAX as u64).into_par_iter().opt_len());
247+
assert_eq!(None, (0..(usize::MAX as u64).wrapping_add(1)).into_par_iter().opt_len());
248248
assert_eq!(None, (0..u64::MAX).into_par_iter().opt_len());
249249
}
250250
}

0 commit comments

Comments
 (0)