Browse Source

Fix environ crate tests on nightly

pull/867/head
Jakub Konka 5 years ago
committed by Jakub Konka
parent
commit
daf0772bd5
  1. 4
      crates/environ/src/cache/tests.rs

4
crates/environ/src/cache/tests.rs

@ -333,13 +333,13 @@ fn new_module_cache_data(rng: &mut impl Rng) -> ModuleCacheData {
let traps = (0..rng.gen_range(0, 0xd))
.map(|i| {
((i..i + rng.gen_range(0, 4))
(i..i + rng.gen_range(0, 4))
.map(|_| TrapInformation {
code_offset: rng.gen(),
source_loc: ir::SourceLoc::new(rng.gen()),
trap_code: ir::TrapCode::StackOverflow,
})
.collect())
.collect()
})
.collect();

Loading…
Cancel
Save