]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/util/ppaux.rs
libsyntax/librustc: Allow calling variadic foreign functions.
[rust.git] / src / librustc / util / ppaux.rs
index ab1ca420afab15b850f6ee0bf9353688864f7de6..006e14232f368e65fdf1c1d7f2bce5ac4eedb3ab 100644 (file)
@@ -410,7 +410,11 @@ fn push_sig_to_str(cx: ctxt,
         s.push_char(bra);
         let strs = sig.inputs.map(|a| fn_input_to_str(cx, *a));
         s.push_str(strs.connect(", "));
+        if sig.variadic {
+            s.push_str(", ...");
+        }
         s.push_char(ket);
+
         if ty::get(sig.output).sty != ty_nil {
             s.push_str(" -> ");
             if ty::type_is_bot(sig.output) {