@@ -29,7 +29,7 @@ pub struct PlaceRef<'tcx, V> {
29
29
30
30
impl < ' a , ' tcx , V : CodegenObject > PlaceRef < ' tcx , V > {
31
31
pub fn new_sized ( llval : V , layout : TyAndLayout < ' tcx > ) -> PlaceRef < ' tcx , V > {
32
- assert ! ( ! layout. is_unsized ( ) ) ;
32
+ assert ! ( layout. is_sized ( ) ) ;
33
33
PlaceRef { llval, llextra : None , layout, align : layout. align . abi }
34
34
}
35
35
@@ -38,7 +38,7 @@ impl<'a, 'tcx, V: CodegenObject> PlaceRef<'tcx, V> {
38
38
layout : TyAndLayout < ' tcx > ,
39
39
align : Align ,
40
40
) -> PlaceRef < ' tcx , V > {
41
- assert ! ( ! layout. is_unsized ( ) ) ;
41
+ assert ! ( layout. is_sized ( ) ) ;
42
42
PlaceRef { llval, llextra : None , layout, align }
43
43
}
44
44
@@ -48,7 +48,7 @@ impl<'a, 'tcx, V: CodegenObject> PlaceRef<'tcx, V> {
48
48
bx : & mut Bx ,
49
49
layout : TyAndLayout < ' tcx > ,
50
50
) -> Self {
51
- assert ! ( ! layout. is_unsized ( ) , "tried to statically allocate unsized place" ) ;
51
+ assert ! ( layout. is_sized ( ) , "tried to statically allocate unsized place" ) ;
52
52
let tmp = bx. alloca ( bx. cx ( ) . backend_type ( layout) , layout. align . abi ) ;
53
53
Self :: new_sized ( tmp, layout)
54
54
}
@@ -145,7 +145,7 @@ impl<'a, 'tcx, V: CodegenObject> PlaceRef<'tcx, V> {
145
145
) ;
146
146
return simple ( ) ;
147
147
}
148
- _ if ! field. is_unsized ( ) => return simple ( ) ,
148
+ _ if field. is_sized ( ) => return simple ( ) ,
149
149
ty:: Slice ( ..) | ty:: Str | ty:: Foreign ( ..) => return simple ( ) ,
150
150
ty:: Adt ( def, _) => {
151
151
if def. repr ( ) . packed ( ) {
0 commit comments