File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
test/ui/consts/const-eval Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ impl_stable_hash_for!(struct ::middle::region::FirstStatementIndex { private });
152
152
#[ allow( dead_code) ]
153
153
// only works on stage 1 when the rustc_layout_scalar_valid_range attribute actually exists
154
154
#[ cfg( not( stage0) ) ]
155
- static ASSERT : ( ) = [ ( ) ] [ ( mem:: size_of :: < ScopeData > ( ) ! = 4 ) as usize ] ;
155
+ static ASSERT : ( ) = [ ( ) ] [ ! ( mem:: size_of :: < ScopeData > ( ) = = 4 ) as usize ] ;
156
156
157
157
#[ allow( non_snake_case) ]
158
158
impl Scope {
Original file line number Diff line number Diff line change @@ -830,9 +830,9 @@ impl<'tcx> CommonTypes<'tcx> {
830
830
fn new ( interners : & CtxtInterners < ' tcx > ) -> CommonTypes < ' tcx > {
831
831
// Ensure our type representation does not grow
832
832
#[ cfg( all( not( stage0) , target_pointer_width = "64" ) ) ]
833
- assert ! ( mem:: size_of:: <ty:: TyKind >( ) <= 24 ) ;
833
+ static ASSERT_TY_KIND : ( ) = [ ( ) ] [ ! ( std :: mem:: size_of :: < ty:: TyKind > ( ) <= 24 ) as usize ] ;
834
834
#[ cfg( all( not( stage0) , target_pointer_width = "64" ) ) ]
835
- assert ! ( mem:: size_of:: <ty:: TyS >( ) <= 32 ) ;
835
+ static ASSERT_TYS : ( ) = [ ( ) ] [ ! ( std :: mem:: size_of :: < ty:: TyS > ( ) <= 32 ) as usize ] ;
836
836
837
837
let mk = |sty| CtxtInterners :: intern_ty ( interners, interners, sty) ;
838
838
let mk_region = |r| {
Original file line number Diff line number Diff line change 1
1
// compile-pass
2
2
3
- static ASSERT : ( ) = [ ( ) ] [ ( std:: mem:: size_of :: < u32 > ( ) ! = 4 ) as usize ] ;
3
+ static ASSERT : ( ) = [ ( ) ] [ ! ( std:: mem:: size_of :: < u32 > ( ) = = 4 ) as usize ] ;
4
4
5
5
fn main ( ) { }
You can’t perform that action at this time.
0 commit comments