@@ -514,11 +514,11 @@ impl<'a, 'tcx> MirVisitor<'tcx> for MirUsedCollector<'a, 'tcx> {
514
514
// have to instantiate all methods of the trait being cast to, so we
515
515
// can build the appropriate vtable.
516
516
mir:: Rvalue :: Cast (
517
- mir:: CastKind :: PointerCoercion ( PointerCoercion :: Unsize ) ,
517
+ mir:: CastKind :: PointerCoercion ( PointerCoercion :: Unsize , _)
518
+ | mir:: CastKind :: PointerCoercion ( PointerCoercion :: DynStar , _) ,
518
519
ref operand,
519
520
target_ty,
520
- )
521
- | mir:: Rvalue :: Cast ( mir:: CastKind :: DynStar , ref operand, target_ty) => {
521
+ ) => {
522
522
let target_ty = self . monomorphize ( target_ty) ;
523
523
let source_ty = operand. ty ( self . body , self . tcx ) ;
524
524
let source_ty = self . monomorphize ( source_ty) ;
@@ -544,7 +544,7 @@ impl<'a, 'tcx> MirVisitor<'tcx> for MirUsedCollector<'a, 'tcx> {
544
544
}
545
545
}
546
546
mir:: Rvalue :: Cast (
547
- mir:: CastKind :: PointerCoercion ( PointerCoercion :: ReifyFnPointer ) ,
547
+ mir:: CastKind :: PointerCoercion ( PointerCoercion :: ReifyFnPointer , _ ) ,
548
548
ref operand,
549
549
_,
550
550
) => {
@@ -553,7 +553,7 @@ impl<'a, 'tcx> MirVisitor<'tcx> for MirUsedCollector<'a, 'tcx> {
553
553
visit_fn_use ( self . tcx , fn_ty, false , span, & mut self . output ) ;
554
554
}
555
555
mir:: Rvalue :: Cast (
556
- mir:: CastKind :: PointerCoercion ( PointerCoercion :: ClosureFnPointer ( _) ) ,
556
+ mir:: CastKind :: PointerCoercion ( PointerCoercion :: ClosureFnPointer ( _) , _ ) ,
557
557
ref operand,
558
558
_,
559
559
) => {
0 commit comments