We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
parse_fn_decl
1 parent 347deac commit d9d0e5dCopy full SHA for d9d0e5d
src/libsyntax/parse/parser/item.rs
@@ -1274,14 +1274,11 @@ impl<'a> Parser<'a> {
1274
Ok((id, generics))
1275
}
1276
1277
- /// Parses the argument list and result type of a function declaration.
+ /// Parses the parameter list and result type of a function declaration.
1278
fn parse_fn_decl(&mut self, allow_c_variadic: bool) -> PResult<'a, P<FnDecl>> {
1279
- let args = self.parse_fn_params(true, allow_c_variadic)?;
1280
- let ret_ty = self.parse_ret_ty(true)?;
1281
-
1282
Ok(P(FnDecl {
1283
- inputs: args,
1284
- output: ret_ty,
+ inputs: self.parse_fn_params(true, allow_c_variadic)?,
+ output: self.parse_ret_ty(true)?,
1285
}))
1286
1287
0 commit comments