Better error message for unsupported "C" abi args
This commit is contained in:
parent
7c510c0661
commit
39fbea8c1b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue