File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -925,6 +925,10 @@ fn codegen_stmt<'tcx>(
925
925
}
926
926
crate :: discriminant:: codegen_set_discriminant ( fx, lval, variant_index) ;
927
927
}
928
+ Rvalue :: WrapUnsafeBinder ( ref operand, _to_ty) => {
929
+ let operand = codegen_operand ( fx, operand) ;
930
+ lval. write_cvalue_transmute ( fx, operand) ;
931
+ }
928
932
}
929
933
}
930
934
StatementKind :: StorageLive ( _)
@@ -993,7 +997,9 @@ pub(crate) fn codegen_place<'tcx>(
993
997
cplace = cplace. place_deref ( fx) ;
994
998
}
995
999
PlaceElem :: OpaqueCast ( ty) => bug ! ( "encountered OpaqueCast({ty}) in codegen" ) ,
996
- PlaceElem :: Subtype ( ty) => cplace = cplace. place_transmute_type ( fx, fx. monomorphize ( ty) ) ,
1000
+ PlaceElem :: Subtype ( ty) | PlaceElem :: UnwrapUnsafeBinder ( ty) => {
1001
+ cplace = cplace. place_transmute_type ( fx, fx. monomorphize ( ty) ) ;
1002
+ }
997
1003
PlaceElem :: Field ( field, _ty) => {
998
1004
cplace = cplace. place_field ( fx, field) ;
999
1005
}
Original file line number Diff line number Diff line change @@ -692,7 +692,7 @@ pub(crate) fn run_aot(
692
692
693
693
if tcx. dep_graph . is_fully_enabled ( ) {
694
694
for cgu in cgus {
695
- tcx. ensure ( ) . codegen_unit ( cgu. name ( ) ) ;
695
+ tcx. ensure_ok ( ) . codegen_unit ( cgu. name ( ) ) ;
696
696
}
697
697
}
698
698
You can’t perform that action at this time.
0 commit comments