File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -900,8 +900,8 @@ fn codegen_stmt<'tcx>(
900
900
} ;
901
901
let data = codegen_operand ( fx, data) ;
902
902
let meta = codegen_operand ( fx, meta) ;
903
- assert ! ( data. layout( ) . ty. is_unsafe_ptr ( ) ) ;
904
- assert ! ( layout. ty. is_unsafe_ptr ( ) ) ;
903
+ assert ! ( data. layout( ) . ty. is_raw_ptr ( ) ) ;
904
+ assert ! ( layout. ty. is_raw_ptr ( ) ) ;
905
905
let ptr_val = if meta. layout ( ) . is_zst ( ) {
906
906
data. cast_pointer_to ( layout)
907
907
} else {
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ pub(crate) fn get_ptr_and_method_ref<'tcx>(
48
48
) -> ( Pointer , Value ) {
49
49
let ( ptr, vtable) = ' block: {
50
50
if let BackendRepr :: Scalar ( _) = arg. layout ( ) . backend_repr {
51
- while !arg. layout ( ) . ty . is_unsafe_ptr ( ) && !arg. layout ( ) . ty . is_ref ( ) {
51
+ while !arg. layout ( ) . ty . is_raw_ptr ( ) && !arg. layout ( ) . ty . is_ref ( ) {
52
52
let ( idx, _) = arg
53
53
. layout ( )
54
54
. non_1zst_field ( fx)
You can’t perform that action at this time.
0 commit comments