aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-05-29 17:33:20 +0100
committerGitHub <[email protected]>2021-05-29 17:33:20 +0100
commit0438e2ceaa89959fe3a1b21e5311a17b08b6fc6d (patch)
tree8b3a36cbe5cb1fd923aac056e749f4165be20dc9 /crates
parent11a1bd3259aaac784a41bc2696aad0d742726d2c (diff)
parent4c4bcaebbe70ce7f2e1612675652816507894e01 (diff)
Merge #9054
9054: fix: fix `matches!` macro on nightly toolchains r=jonas-schievink a=jonas-schievink Fixes https://github.com/rust-analyzer/rust-analyzer/issues/9043 bors r+ Co-authored-by: Jonas Schievink <[email protected]>
Diffstat (limited to 'crates')
-rw-r--r--crates/mbe/src/expander/matcher.rs2
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,