From 4c4bcaebbe70ce7f2e1612675652816507894e01 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Sat, 29 May 2021 18:32:32 +0200 Subject: Treat `pat_param` like `pat` fragments --- crates/mbe/src/expander/matcher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/mbe') diff --git a/crates/mbe/src/expander/matcher.rs b/crates/mbe/src/expander/matcher.rs index 75d2f2eed..84ca3ff87 100644 --- a/crates/mbe/src/expander/matcher.rs +++ b/crates/mbe/src/expander/matcher.rs @@ -701,7 +701,7 @@ fn match_meta_var(kind: &str, input: &mut TtIter) -> ExpandResult Path, "expr" => Expr, "ty" => Type, - "pat" => Pattern, + "pat" | "pat_param" => Pattern, // FIXME: edition2021 "stmt" => Statement, "block" => Block, "meta" => MetaItem, -- cgit v1.2.3