diff options
author | Jonas Schievink <[email protected]> | 2021-05-29 17:32:32 +0100 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2021-05-29 17:32:32 +0100 |
commit | 4c4bcaebbe70ce7f2e1612675652816507894e01 (patch) | |
tree | 450aacddbd67d3b557fb40868d099d447917838c | |
parent | 3fa3343e4747c3f7b2ca3e7924ba5286d67af87c (diff) |
Treat `pat_param` like `pat` fragments
-rw-r--r-- | crates/mbe/src/expander/matcher.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<Option<Fragmen | |||
701 | "path" => Path, | 701 | "path" => Path, |
702 | "expr" => Expr, | 702 | "expr" => Expr, |
703 | "ty" => Type, | 703 | "ty" => Type, |
704 | "pat" => Pattern, | 704 | "pat" | "pat_param" => Pattern, // FIXME: edition2021 |
705 | "stmt" => Statement, | 705 | "stmt" => Statement, |
706 | "block" => Block, | 706 | "block" => Block, |
707 | "meta" => MetaItem, | 707 | "meta" => MetaItem, |