Skip to content

Commit 01977b0

Browse files
HeroicKatoraMark-Simulacrum
authored andcommitted
Fixup errors in test definitions
1 parent 114ce58 commit 01977b0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

collector/benchmarks/ctfe-stress-uninit/Cargo.lock

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

collector/benchmarks/ctfe-stress-uninit/src/lib.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// Try CTFE that operate on values that contain largely uninitialized memory, not requiring any
22
// particular representation in MIR.
3-
4-
use core::mem::MaybeUninit;
5-
type LargeUninit = MaybeUninit<[u8; 1 << 24]>;
3+
use std::mem::MaybeUninit;
4+
type LargeUninit = MaybeUninit<[u8; 1 << 23]>;
65

76
// copying uninitialized bytes could also be expensive and could be optimized independently, so
87
// track regressions here separately. It should also be less costly to compose new values
@@ -13,7 +12,7 @@ const BAR: LargeUninit = MaybeUninit::uninit();
1312
const fn id<T>(val: T) -> T { val }
1413
const ID: LargeUninit = id(MaybeUninit::uninit());
1514

16-
const fn build() -> LargeUninit { MaybeUninit::uninit(); }
15+
const fn build() -> LargeUninit { MaybeUninit::uninit() }
1716
const BUILD: LargeUninit = build();
1817

1918
// Largely uninitialized memory but initialized with tag at the start, in both cases.

0 commit comments

Comments
 (0)