Skip to content

Commit 3e563b8

Browse files
committed
Improve ArgAbi left behind panic message
1 parent f1ce0ec commit 3e563b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/abi/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ pub(crate) fn codegen_fn_prelude<'tcx>(fx: &mut FunctionCx<'_, '_, 'tcx>, start_
300300
Some(cvalue_for_param(fx, None, None, arg_abi, &mut block_params_iter).unwrap());
301301
}
302302

303-
assert!(arg_abis_iter.next().is_none(), "ArgAbi left behind");
303+
assert_eq!(arg_abis_iter.next(), None, "ArgAbi left behind for {:?}", fx.fn_abi);
304304
assert!(block_params_iter.next().is_none(), "arg_value left behind");
305305

306306
self::comments::add_locals_header_comment(fx);

0 commit comments

Comments
 (0)