1
Fork 0

Better error message for unsupported "C" abi args

This commit is contained in:
bjorn3 2018-09-16 18:46:19 +02:00
parent 7c510c0661
commit 39fbea8c1b

View file

@ -49,7 +49,7 @@ fn get_pass_mode<'a, 'tcx: 'a>(
PassMode::ByVal(ret_ty) PassMode::ByVal(ret_ty)
} else { } else {
if abi == Abi::C { 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 PassMode::ByRef
} }