Make it clearer that edition functions are >=, not ==
This commit is contained in:
parent
77e24f90f5
commit
846cc63e38
16 changed files with 46 additions and 42 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue