File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
collector/benchmarks/ctfe-stress-4/src Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1+ #![ allow( dead_code) ]
12#![ feature( const_fn, const_eval_limit) ]
2- #![ const_eval_limit = "1000000 " ]
3+ #![ const_eval_limit = "10000000 " ]
34use 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]);
6364expensive_static ! ( OPS : i32 = ( ( ( ( 10 >> 1 ) + 3 ) * 7 ) / 2 - 12 ) << 4 ; [ 4 16 16 16 16 ] ) ;
6465expensive_static ! ( RELOCATIONS : & ' static str = "hello" ; [ 8 16 16 16 16 ] ) ;
6566expensive_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.
You can’t perform that action at this time.
0 commit comments