Skip to content

Commit 0438e2c

Browse files
9054: fix: fix `matches!` macro on nightly toolchains r=jonas-schievink a=jonas-schievink Fixes rust-lang#9043 bors r+ Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
2 parents 11a1bd3 + 4c4bcae commit 0438e2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/mbe/src/expander/matcher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ fn match_meta_var(kind: &str, input: &mut TtIter) -> ExpandResult<Option<Fragmen
701701
"path" => Path,
702702
"expr" => Expr,
703703
"ty" => Type,
704-
"pat" => Pattern,
704+
"pat" | "pat_param" => Pattern, // FIXME: edition2021
705705
"stmt" => Statement,
706706
"block" => Block,
707707
"meta" => MetaItem,

0 commit comments

Comments
 (0)