Skip to content

Commit 4cc22af

Browse files
authored
Rollup merge of #114300 - MU001999:fix/turbofish-pat, r=estebank
Suggests turbofish in patterns Fixes #114112 r? ```@estebank```
2 parents 14101ed + 35d875a commit 4cc22af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parse/macros/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ fn parse_macro_arg<'a, 'b: 'a>(parser: &'a mut Parser<'b>) -> Option<MacroArg> {
5656
);
5757
parse_macro_arg!(
5858
Pat,
59-
|parser: &mut rustc_parse::parser::Parser<'b>| parser.parse_pat_no_top_alt(None),
59+
|parser: &mut rustc_parse::parser::Parser<'b>| parser.parse_pat_no_top_alt(None, None),
6060
|x: ptr::P<ast::Pat>| Some(x)
6161
);
6262
// `parse_item` returns `Option<ptr::P<ast::Item>>`.

0 commit comments

Comments
 (0)