about summary refs log tree commit diff
path: root/compiler/rustc_expand/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-07-16 18:59:36 +0000
committerMichael Goulet <michael@errs.io>2023-07-19 16:38:35 +0000
commit846cc63e3802171e0e412fadac269bf71c843ef0 (patch)
tree0bbd804ed8c97bc4486bec0aea07fe3f76e4df9c /compiler/rustc_expand/src
parent77e24f90f599070af2d8051ef9adad7fe528dd78 (diff)
downloadrust-846cc63e3802171e0e412fadac269bf71c843ef0.tar.gz
rust-846cc63e3802171e0e412fadac269bf71c843ef0.zip
Make it clearer that edition functions are >=, not ==
Diffstat (limited to 'compiler/rustc_expand/src')
-rw-r--r--compiler/rustc_expand/src/mbe/macro_rules.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_expand/src/mbe/macro_rules.rs b/compiler/rustc_expand/src/mbe/macro_rules.rs
index 42cc0a6b143..102bae2a744 100644
--- a/compiler/rustc_expand/src/mbe/macro_rules.rs
+++ b/compiler/rustc_expand/src/mbe/macro_rules.rs
@@ -1200,7 +1200,7 @@ fn check_matcher_core<'tt>(
                             err.span_label(sp, format!("not allowed after `{}` fragments", kind));
 
                             if kind == NonterminalKind::PatWithOr
-                                && sess.edition.rust_2021()
+                                && sess.edition.at_least_rust_2021()
                                 && next_token.is_token(&BinOp(token::BinOpToken::Or))
                             {
                                 let suggestion = quoted_tt_to_string(&TokenTree::MetaVarDecl(