Skip to content

Commit 712b698

Browse files
rylevMark-Simulacrum
authored andcommitted
Up const-eval limit since it breaks on new nightly
1 parent dbde81e commit 712b698

File tree

1 file changed

+3
-2
lines changed
  • collector/benchmarks/ctfe-stress-4/src

1 file changed

+3
-2
lines changed

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
#![allow(dead_code)]
12
#![feature(const_fn, const_eval_limit)]
2-
#![const_eval_limit = "1000000"]
3+
#![const_eval_limit = "10000000"]
34
use std::mem::MaybeUninit;
45

56
// Try to make CTFE actually do a lot of computation, without producing a big result.
@@ -63,7 +64,7 @@ expensive_static!(CHECKED_INDEX: u8 = b"foomp"[3]; [8 16 16 16 16]);
6364
expensive_static!(OPS: i32 = ((((10 >> 1) + 3) * 7) / 2 - 12) << 4; [4 16 16 16 16]);
6465
expensive_static!(RELOCATIONS : &'static str = "hello"; [8 16 16 16 16]);
6566
expensive_static!(UNSIZE_SLICE: &'static [u8] = b"foo"; [4 16 16 16 16 16]);
66-
expensive_static!(UNSIZE_TRAIT: &'static Trait = &42u32; [4 16 16 16 16 16]);
67+
expensive_static!(UNSIZE_TRAIT: &'static dyn Trait = &42u32; [4 16 16 16 16 16]);
6768

6869
// copying all these zeros and the corresponding definedness bits can be expensive and is probably
6970
// prone to regressions.

0 commit comments

Comments
 (0)