Updated error for E0045 (no bonus)

This commit is contained in:
hank-der-hafenarbeiter 2016-08-09 01:39:23 +02:00
parent b42a384a80
commit ae9c09d360

View File

@ -181,8 +181,10 @@ fn require_c_abi_if_variadic(tcx: TyCtxt,
abi: Abi,
span: Span) {
if decl.variadic && abi != Abi::C {
span_err!(tcx.sess, span, E0045,
let mut err = struct_span_err!(tcx.sess, span, E0045,
"variadic function must have C calling convention");
err.span_label(span, &("variadics require C calling conventions").to_string())
.emit();
}
}