Skip to content

Commit

Permalink
Rollup merge of rust-lang#114300 - MU001999:fix/turbofish-pat, r=este…
Browse files Browse the repository at this point in the history
…bank

Suggests turbofish in patterns

Fixes rust-lang#114112

r? ```@estebank```
  • Loading branch information
matthiaskrgr authored Aug 3, 2023
2 parents 14101ed + 35d875a commit 4cc22af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parse/macros/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fn parse_macro_arg<'a, 'b: 'a>(parser: &'a mut Parser<'b>) -> Option<MacroArg> {
);
parse_macro_arg!(
Pat,
|parser: &mut rustc_parse::parser::Parser<'b>| parser.parse_pat_no_top_alt(None),
|parser: &mut rustc_parse::parser::Parser<'b>| parser.parse_pat_no_top_alt(None, None),
|x: ptr::P<ast::Pat>| Some(x)
);
// `parse_item` returns `Option<ptr::P<ast::Item>>`.
Expand Down

0 comments on commit 4cc22af

Please sign in to comment.