File tree 1 file changed +3
-2
lines changed
collector/benchmarks/ctfe-stress-4/src
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change
1
+ #![ allow( dead_code) ]
1
2
#![ feature( const_fn, const_eval_limit) ]
2
- #![ const_eval_limit = "1000000 " ]
3
+ #![ const_eval_limit = "10000000 " ]
3
4
use std:: mem:: MaybeUninit ;
4
5
5
6
// 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]);
63
64
expensive_static ! ( OPS : i32 = ( ( ( ( 10 >> 1 ) + 3 ) * 7 ) / 2 - 12 ) << 4 ; [ 4 16 16 16 16 ] ) ;
64
65
expensive_static ! ( RELOCATIONS : & ' static str = "hello" ; [ 8 16 16 16 16 ] ) ;
65
66
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 ] ) ;
67
68
68
69
// copying all these zeros and the corresponding definedness bits can be expensive and is probably
69
70
// prone to regressions.
You can’t perform that action at this time.
0 commit comments