diff options
| author | Dan Robertson <dan@dlrobertson.com> | 2019-03-02 03:14:29 +0000 |
|---|---|---|
| committer | Dan Robertson <dan@dlrobertson.com> | 2019-03-02 15:03:09 +0000 |
| commit | 04d0a8cb83e713f71848c4afeba72d7e776acc6a (patch) | |
| tree | f0571ff8bd2149a42d3b5d9890dc7fc255e2c646 /src/libsyntax/print | |
| parent | c1d2d83ca3b5155468ab96b09a7c54568449b137 (diff) | |
| download | rust-04d0a8cb83e713f71848c4afeba72d7e776acc6a.tar.gz rust-04d0a8cb83e713f71848c4afeba72d7e776acc6a.zip | |
Fix C-variadic function printing
There is no longer a need to append the string `", ..."` to a functions args as `...` is parsed as an argument and will appear in the functions arguments.
Diffstat (limited to 'src/libsyntax/print')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 942bd969391..49e3fad4af0 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -2814,9 +2814,6 @@ impl<'a> State<'a> { -> io::Result<()> { self.popen()?; self.commasep(Inconsistent, &decl.inputs, |s, arg| s.print_arg(arg, false))?; - if decl.c_variadic { - self.s.word(", ...")?; - } self.pclose()?; self.print_fn_output(decl) |
