about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser/ty.rs
diff options
context:
space:
mode:
authorBaoshan <pangbw@gmail.com>2019-09-03 16:33:18 -0700
committerGitHub <noreply@github.com>2019-09-03 16:33:18 -0700
commite316ba3b60433bd703575a00d7fd5e344e29912d (patch)
tree4d74702faa98a70d127b17f19f908dc3875e8faa /src/libsyntax/parse/parser/ty.rs
parent964c37cdecbd1aa0e7870afac9ba38e5168be65f (diff)
parentb9de4ef89e0e53099a084001b26ec3207c5f8391 (diff)
downloadrust-e316ba3b60433bd703575a00d7fd5e344e29912d.tar.gz
rust-e316ba3b60433bd703575a00d7fd5e344e29912d.zip
Merge pull request #12 from rust-lang/master
sync with rust-lang/rust branch master
Diffstat (limited to 'src/libsyntax/parse/parser/ty.rs')
-rw-r--r--src/libsyntax/parse/parser/ty.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser/ty.rs b/src/libsyntax/parse/parser/ty.rs
index 337702b8d30..465e31ac57e 100644
--- a/src/libsyntax/parse/parser/ty.rs
+++ b/src/libsyntax/parse/parser/ty.rs
@@ -292,7 +292,7 @@ impl<'a> Parser<'a> {
         };
 
         self.expect_keyword(kw::Fn)?;
-        let (inputs, c_variadic) = self.parse_fn_args(false, true)?;
+        let (inputs, c_variadic) = self.parse_fn_params(false, true)?;
         let ret_ty = self.parse_ret_ty(false)?;
         let decl = P(FnDecl {
             inputs,