File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -842,9 +842,16 @@ impl CodeGenerator for Type {
842
842
let spelling = self . name ( ) . expect ( "Unnamed alias?" ) ;
843
843
if utils:: type_from_named ( ctx, spelling) . is_some ( ) {
844
844
if let "size_t" | "ssize_t" = spelling {
845
- let layout = inner_item. kind ( ) . expect_type ( ) . layout ( ctx) . expect ( "No layout?" ) ;
846
- assert ! ( layout. size == ctx. target_pointer_size( ) && layout. align == ctx. target_pointer_size( ) ,
847
- "Target platform requires --no-size_t-is-usize" ) ;
845
+ let layout = inner_item
846
+ . kind ( )
847
+ . expect_type ( )
848
+ . layout ( ctx)
849
+ . expect ( "No layout?" ) ;
850
+ assert ! (
851
+ layout. size == ctx. target_pointer_size( ) &&
852
+ layout. align == ctx. target_pointer_size( ) ,
853
+ "Target platform requires --no-size_t-is-usize"
854
+ ) ;
848
855
}
849
856
return ;
850
857
}
You can’t perform that action at this time.
0 commit comments