File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed
compiler/rustc_ty_utils/src Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -560,20 +560,15 @@ fn fn_abi_new_uncached<'tcx>(
560
560
let extra_args = if sig. abi == ExternAbi :: RustCall {
561
561
assert ! ( !sig. c_variadic && extra_args. is_empty( ) ) ;
562
562
563
- if let Some ( input) = sig. inputs ( ) . last ( ) {
564
- if let ty:: Tuple ( tupled_arguments) = input. kind ( ) {
565
- inputs = & sig. inputs ( ) [ 0 ..sig. inputs ( ) . len ( ) - 1 ] ;
566
- tupled_arguments
567
- } else {
568
- bug ! (
569
- "argument to function with \" rust-call\" ABI \
570
- is not a tuple"
571
- ) ;
572
- }
563
+ if let Some ( input) = sig. inputs ( ) . last ( )
564
+ && let ty:: Tuple ( tupled_arguments) = input. kind ( )
565
+ {
566
+ inputs = & sig. inputs ( ) [ 0 ..sig. inputs ( ) . len ( ) - 1 ] ;
567
+ tupled_arguments
573
568
} else {
574
569
bug ! (
575
570
"argument to function with \" rust-call\" ABI \
576
- is not a tuple"
571
+ is not a tuple"
577
572
) ;
578
573
}
579
574
} else {
You can’t perform that action at this time.
0 commit comments