@@ -100,7 +100,7 @@ impl<'tcx> ArgAbiExt<'tcx> for ArgAbi<'tcx, Ty<'tcx>> {
100100 }
101101 _ => unreachable ! ( "{:?}" , self . layout. abi) ,
102102 } ,
103- PassMode :: Cast ( ref cast, pad_i32) => {
103+ PassMode :: Cast { ref cast, pad_i32 } => {
104104 assert ! ( !pad_i32, "padding support not yet implemented" ) ;
105105 cast_target_to_abi_params ( cast)
106106 }
@@ -148,7 +148,7 @@ impl<'tcx> ArgAbiExt<'tcx> for ArgAbi<'tcx, Ty<'tcx>> {
148148 }
149149 _ => unreachable ! ( "{:?}" , self . layout. abi) ,
150150 } ,
151- PassMode :: Cast ( ref cast, _ ) => {
151+ PassMode :: Cast { ref cast, .. } => {
152152 ( None , cast_target_to_abi_params ( cast) . into_iter ( ) . collect ( ) )
153153 }
154154 PassMode :: Indirect { attrs : _, meta_attrs : None , on_stack } => {
@@ -229,7 +229,7 @@ pub(super) fn adjust_arg_for_abi<'tcx>(
229229 let ( a, b) = arg. load_scalar_pair ( fx) ;
230230 smallvec ! [ a, b]
231231 }
232- PassMode :: Cast ( ref cast, _ ) => to_casted_value ( fx, arg, cast) ,
232+ PassMode :: Cast { ref cast, .. } => to_casted_value ( fx, arg, cast) ,
233233 PassMode :: Indirect { .. } => {
234234 if is_owned {
235235 match arg. force_stack ( fx) {
@@ -287,7 +287,7 @@ pub(super) fn cvalue_for_param<'tcx>(
287287 assert_eq ! ( block_params. len( ) , 2 , "{:?}" , block_params) ;
288288 Some ( CValue :: by_val_pair ( block_params[ 0 ] , block_params[ 1 ] , arg_abi. layout ) )
289289 }
290- PassMode :: Cast ( ref cast, _ ) => {
290+ PassMode :: Cast { ref cast, .. } => {
291291 Some ( from_casted_value ( fx, & block_params, arg_abi. layout , cast) )
292292 }
293293 PassMode :: Indirect { attrs : _, meta_attrs : None , on_stack : _ } => {
0 commit comments