@@ -658,7 +658,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
658
658
let val = self . read_immediate ( & receiver) ?;
659
659
break self . ref_to_mplace ( & val) ?;
660
660
}
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
662
662
_ => {
663
663
// Not there yet, search for the only non-ZST field.
664
664
// (The rules for `DispatchFromDyn` ensure there's exactly one such field.)
@@ -675,7 +675,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
675
675
// (For that reason we also cannot use `unpack_dyn_trait`.)
676
676
let receiver_tail =
677
677
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 {
679
679
span_bug ! ( self . cur_span( ) , "dynamic call on non-`dyn` type {}" , receiver_tail)
680
680
} ;
681
681
assert ! ( receiver_place. layout. is_unsized( ) ) ;
@@ -822,7 +822,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
822
822
// instead we do the virtual call stuff ourselves. It's easier here than in `eval_fn_call`
823
823
// since we can just get a place of the underlying type and use `mplace_to_ref`.
824
824
let place = match place. layout . ty . kind ( ) {
825
- ty:: Dynamic ( data, _, ty :: Dyn ) => {
825
+ ty:: Dynamic ( data, _) => {
826
826
// Dropping a trait object. Need to find actual drop fn.
827
827
self . unpack_dyn_trait ( & place, data) ?
828
828
}
0 commit comments