@@ -652,7 +652,7 @@ fn codegen_stmt<'tcx>(
652652 lval. write_cvalue ( fx, res) ;
653653 }
654654 Rvalue :: Cast (
655- CastKind :: PointerCoercion ( PointerCoercion :: ReifyFnPointer ) ,
655+ CastKind :: PointerCoercion ( PointerCoercion :: ReifyFnPointer , _ ) ,
656656 ref operand,
657657 to_ty,
658658 ) => {
@@ -677,7 +677,7 @@ fn codegen_stmt<'tcx>(
677677 }
678678 }
679679 Rvalue :: Cast (
680- CastKind :: PointerCoercion ( PointerCoercion :: UnsafeFnPointer ) ,
680+ CastKind :: PointerCoercion ( PointerCoercion :: UnsafeFnPointer , _ ) ,
681681 ref operand,
682682 to_ty,
683683 ) => {
@@ -688,6 +688,7 @@ fn codegen_stmt<'tcx>(
688688 Rvalue :: Cast (
689689 CastKind :: PointerCoercion (
690690 PointerCoercion :: MutToConstPointer | PointerCoercion :: ArrayToPointer ,
691+ _,
691692 ) ,
692693 ..,
693694 ) => {
@@ -741,7 +742,7 @@ fn codegen_stmt<'tcx>(
741742 }
742743 }
743744 Rvalue :: Cast (
744- CastKind :: PointerCoercion ( PointerCoercion :: ClosureFnPointer ( _) ) ,
745+ CastKind :: PointerCoercion ( PointerCoercion :: ClosureFnPointer ( _) , _ ) ,
745746 ref operand,
746747 _to_ty,
747748 ) => {
@@ -763,14 +764,18 @@ fn codegen_stmt<'tcx>(
763764 }
764765 }
765766 Rvalue :: Cast (
766- CastKind :: PointerCoercion ( PointerCoercion :: Unsize ) ,
767+ CastKind :: PointerCoercion ( PointerCoercion :: Unsize , _ ) ,
767768 ref operand,
768769 _to_ty,
769770 ) => {
770771 let operand = codegen_operand ( fx, operand) ;
771772 crate :: unsize:: coerce_unsized_into ( fx, operand, lval) ;
772773 }
773- Rvalue :: Cast ( CastKind :: DynStar , ref operand, _) => {
774+ Rvalue :: Cast (
775+ CastKind :: PointerCoercion ( PointerCoercion :: DynStar , _) ,
776+ ref operand,
777+ _,
778+ ) => {
774779 let operand = codegen_operand ( fx, operand) ;
775780 crate :: unsize:: coerce_dyn_star ( fx, operand, lval) ;
776781 }
0 commit comments