@@ -29,7 +29,7 @@ pub struct PlaceRef<'tcx, V> {
2929
3030impl < ' a , ' tcx , V : CodegenObject > PlaceRef < ' tcx , V > {
3131 pub fn new_sized ( llval : V , layout : TyAndLayout < ' tcx > ) -> PlaceRef < ' tcx , V > {
32- assert ! ( ! layout. is_unsized ( ) ) ;
32+ assert ! ( layout. is_sized ( ) ) ;
3333 PlaceRef { llval, llextra : None , layout, align : layout. align . abi }
3434 }
3535
@@ -38,7 +38,7 @@ impl<'a, 'tcx, V: CodegenObject> PlaceRef<'tcx, V> {
3838 layout : TyAndLayout < ' tcx > ,
3939 align : Align ,
4040 ) -> PlaceRef < ' tcx , V > {
41- assert ! ( ! layout. is_unsized ( ) ) ;
41+ assert ! ( layout. is_sized ( ) ) ;
4242 PlaceRef { llval, llextra : None , layout, align }
4343 }
4444
@@ -48,7 +48,7 @@ impl<'a, 'tcx, V: CodegenObject> PlaceRef<'tcx, V> {
4848 bx : & mut Bx ,
4949 layout : TyAndLayout < ' tcx > ,
5050 ) -> Self {
51- assert ! ( ! layout. is_unsized ( ) , "tried to statically allocate unsized place" ) ;
51+ assert ! ( layout. is_sized ( ) , "tried to statically allocate unsized place" ) ;
5252 let tmp = bx. alloca ( bx. cx ( ) . backend_type ( layout) , layout. align . abi ) ;
5353 Self :: new_sized ( tmp, layout)
5454 }
@@ -145,7 +145,7 @@ impl<'a, 'tcx, V: CodegenObject> PlaceRef<'tcx, V> {
145145 ) ;
146146 return simple ( ) ;
147147 }
148- _ if ! field. is_unsized ( ) => return simple ( ) ,
148+ _ if field. is_sized ( ) => return simple ( ) ,
149149 ty:: Slice ( ..) | ty:: Str | ty:: Foreign ( ..) => return simple ( ) ,
150150 ty:: Adt ( def, _) => {
151151 if def. repr ( ) . packed ( ) {
0 commit comments