diff options
| author | Dan Robertson <dan@dlrobertson.com> | 2019-02-08 17:30:42 +0000 |
|---|---|---|
| committer | Dan Robertson <dan@dlrobertson.com> | 2019-02-27 10:21:54 -0500 |
| commit | 08bd4ff9987fc57215a2fe54c63da0e86d9e6fbf (patch) | |
| tree | 35f5410433d1af5e6eff929cc4c1750dc43c9595 /src/libsyntax/print | |
| parent | a618ad6335f7cb70005884542f0548ef29f23b7e (diff) | |
| download | rust-08bd4ff9987fc57215a2fe54c63da0e86d9e6fbf.tar.gz rust-08bd4ff9987fc57215a2fe54c63da0e86d9e6fbf.zip | |
Rename variadic to c_variadic
Function signatures with the `variadic` member set are actually C-variadic functions. Make this a little more explicit by renaming the `variadic` boolean value, `c_variadic`.
Diffstat (limited to 'src/libsyntax/print')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index b3964d0ce9c..4f4336c5b27 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -2814,7 +2814,7 @@ impl<'a> State<'a> { -> io::Result<()> { self.popen()?; self.commasep(Inconsistent, &decl.inputs, |s, arg| s.print_arg(arg, false))?; - if decl.variadic { + if decl.c_variadic { self.s.word(", ...")?; } self.pclose()?; @@ -3241,7 +3241,7 @@ mod tests { let decl = ast::FnDecl { inputs: Vec::new(), output: ast::FunctionRetTy::Default(syntax_pos::DUMMY_SP), - variadic: false + c_variadic: false }; let generics = ast::Generics::default(); assert_eq!( |
