Fix environ crate tests on nightly
This commit is contained in:
4
crates/environ/src/cache/tests.rs
vendored
4
crates/environ/src/cache/tests.rs
vendored
@@ -333,13 +333,13 @@ fn new_module_cache_data(rng: &mut impl Rng) -> ModuleCacheData {
|
|||||||
|
|
||||||
let traps = (0..rng.gen_range(0, 0xd))
|
let traps = (0..rng.gen_range(0, 0xd))
|
||||||
.map(|i| {
|
.map(|i| {
|
||||||
((i..i + rng.gen_range(0, 4))
|
(i..i + rng.gen_range(0, 4))
|
||||||
.map(|_| TrapInformation {
|
.map(|_| TrapInformation {
|
||||||
code_offset: rng.gen(),
|
code_offset: rng.gen(),
|
||||||
source_loc: ir::SourceLoc::new(rng.gen()),
|
source_loc: ir::SourceLoc::new(rng.gen()),
|
||||||
trap_code: ir::TrapCode::StackOverflow,
|
trap_code: ir::TrapCode::StackOverflow,
|
||||||
})
|
})
|
||||||
.collect())
|
.collect()
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user