We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b42a384 commit ae9c09dCopy full SHA for ae9c09d
src/librustc_typeck/lib.rs
@@ -181,8 +181,10 @@ fn require_c_abi_if_variadic(tcx: TyCtxt,
181
abi: Abi,
182
span: Span) {
183
if decl.variadic && abi != Abi::C {
184
- span_err!(tcx.sess, span, E0045,
+ let mut err = struct_span_err!(tcx.sess, span, E0045,
185
"variadic function must have C calling convention");
186
+ err.span_label(span, &("variadics require C calling conventions").to_string())
187
+ .emit();
188
}
189
190
0 commit comments