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_arg_general
1 parent 95792b4 commit 5f6bec8Copy full SHA for 5f6bec8
src/libsyntax/parse/parser.rs
@@ -971,15 +971,12 @@ impl<'a> Parser<'a> {
971
/// Skips unexpected attributes and doc comments in this position and emits an appropriate
972
/// error.
973
/// This version of parse arg doesn't necessarily require identifier names.
974
- fn parse_arg_general<F>(
+ fn parse_arg_general(
975
&mut self,
976
is_trait_item: bool,
977
allow_c_variadic: bool,
978
- is_name_required: F,
979
- ) -> PResult<'a, Arg>
980
- where
981
- F: Fn(&token::Token) -> bool
982
- {
+ is_name_required: impl Fn(&token::Token) -> bool,
+ ) -> PResult<'a, Arg> {
983
let lo = self.token.span;
984
let attrs = self.parse_arg_attributes()?;
985
if let Some(mut arg) = self.parse_self_arg()? {
0 commit comments