Updated error for E0045 (no bonus)
This commit is contained in:
parent
b42a384a80
commit
ae9c09d360
1 changed files with 3 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue