about summary refs log tree commit diff
diff options
context:
space:
mode:
authorhank-der-hafenarbeiter <kevinkielholz@web.de>2016-08-09 01:39:23 +0200
committerhank-der-hafenarbeiter <kevinkielholz@web.de>2016-08-09 01:39:23 +0200
commitae9c09d3602fff3c98dbb4488147059f1024ff69 (patch)
tree3208d58d169b19b2ec28c51ddbc3fddd5fe50c53
parentb42a384a8078d79b299f2029b6c183b5e9288062 (diff)
downloadrust-ae9c09d3602fff3c98dbb4488147059f1024ff69.tar.gz
rust-ae9c09d3602fff3c98dbb4488147059f1024ff69.zip
Updated error for E0045 (no bonus)
-rw-r--r--src/librustc_typeck/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librustc_typeck/lib.rs b/src/librustc_typeck/lib.rs
index 65e00705121..37de3b1f609 100644
--- a/src/librustc_typeck/lib.rs
+++ b/src/librustc_typeck/lib.rs
@@ -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();
     }
 }