File tree 1 file changed +3
-6
lines changed
compiler/rustc_hir_typeck/src/generator_interior
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -643,17 +643,14 @@ fn check_must_not_suspend_ty<'tcx>(
643
643
}
644
644
ty:: Array ( ty, len) => {
645
645
let descr_pre = & format ! ( "{}array{} of " , data. descr_pre, plural_suffix) ;
646
- let target_usize = len. try_eval_target_usize ( fcx. tcx , fcx. param_env ) . unwrap_or ( 0 ) as usize ;
646
+ let target_usize =
647
+ len. try_eval_target_usize ( fcx. tcx , fcx. param_env ) . unwrap_or ( 0 ) as usize ;
647
648
let plural_len = target_usize. saturating_add ( 1 ) ;
648
649
check_must_not_suspend_ty (
649
650
fcx,
650
651
ty,
651
652
hir_id,
652
- SuspendCheckData {
653
- descr_pre,
654
- plural_len,
655
- ..data
656
- } ,
653
+ SuspendCheckData { descr_pre, plural_len, ..data } ,
657
654
)
658
655
}
659
656
// If drop tracking is enabled, we want to look through references, since the referent
You can’t perform that action at this time.
0 commit comments