@@ -658,7 +658,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
658658 let val = self . read_immediate ( & receiver) ?;
659659 break self . ref_to_mplace ( & val) ?;
660660 }
661- ty:: Dynamic ( .., ty :: Dyn ) => break receiver. assert_mem_place ( ) , // no immediate unsized values
661+ ty:: Dynamic ( ..) => break receiver. assert_mem_place ( ) , // no immediate unsized values
662662 _ => {
663663 // Not there yet, search for the only non-ZST field.
664664 // (The rules for `DispatchFromDyn` ensure there's exactly one such field.)
@@ -675,7 +675,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
675675 // (For that reason we also cannot use `unpack_dyn_trait`.)
676676 let receiver_tail =
677677 self . tcx . struct_tail_for_codegen ( receiver_place. layout . ty , self . typing_env ) ;
678- let ty:: Dynamic ( receiver_trait, _, ty :: Dyn ) = receiver_tail. kind ( ) else {
678+ let ty:: Dynamic ( receiver_trait, _) = receiver_tail. kind ( ) else {
679679 span_bug ! ( self . cur_span( ) , "dynamic call on non-`dyn` type {}" , receiver_tail)
680680 } ;
681681 assert ! ( receiver_place. layout. is_unsized( ) ) ;
@@ -822,7 +822,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
822822 // instead we do the virtual call stuff ourselves. It's easier here than in `eval_fn_call`
823823 // since we can just get a place of the underlying type and use `mplace_to_ref`.
824824 let place = match place. layout . ty . kind ( ) {
825- ty:: Dynamic ( data, _, ty :: Dyn ) => {
825+ ty:: Dynamic ( data, _) => {
826826 // Dropping a trait object. Need to find actual drop fn.
827827 self . unpack_dyn_trait ( & place, data) ?
828828 }
0 commit comments