From 39fbea8c1b45c11503facdabb8f9dc0614f4137c Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Sun, 16 Sep 2018 18:46:19 +0200 Subject: [PATCH] Better error message for unsupported "C" abi args --- src/abi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/abi.rs b/src/abi.rs index 1960e390d1a..980f854a5ed 100644 --- a/src/abi.rs +++ b/src/abi.rs @@ -49,7 +49,7 @@ fn get_pass_mode<'a, 'tcx: 'a>( PassMode::ByVal(ret_ty) } else { if abi == Abi::C { - unimplemented!("Non scalars are not yet supported for \"C\" abi"); + unimpl!("Non scalars are not yet supported for \"C\" abi ({:?}) is_return: {:?}", ty, is_return); } PassMode::ByRef }