Skip to content

Commit 16206da

Browse files
Update compiler/rustc_expand/src/mbe/quoted.rs
Co-authored-by: Michael Goulet <[email protected]>
1 parent 2adcb71 commit 16206da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_expand/src/mbe/quoted.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ use crate::mbe::macro_parser::count_metavar_decls;
1313
use crate::mbe::{Delimited, KleeneOp, KleeneToken, MetaVarExpr, SequenceRepetition, TokenTree};
1414

1515
pub(crate) const VALID_FRAGMENT_NAMES_MSG: &str = "valid fragment specifiers are \
16-
`ident`, `block`, `stmt`, `expr`, `expr_2021`, `pat`, `ty`, `lifetime`, `literal`, `path`, \
17-
`meta`, `tt`, `item` and `vis`";
16+
`ident`, `block`, `stmt`, `expr`, `pat`, `ty`, `lifetime`, `literal`, `path`, \
17+
`meta`, `tt`, `item` and `vis`, along with `expr_2021` and `pat_param` for edition compatibility";
1818

1919
/// Takes a `tokenstream::TokenStream` and returns a `Vec<self::TokenTree>`. Specifically, this
2020
/// takes a generic `TokenStream`, such as is used in the rest of the compiler, and returns a

0 commit comments

Comments
 (0)