@@ -14,12 +14,11 @@ use crate::mbe::macro_parser::count_metavar_decls;
1414use crate :: mbe:: { Delimited , KleeneOp , KleeneToken , MetaVarExpr , SequenceRepetition , TokenTree } ;
1515
1616const VALID_FRAGMENT_NAMES_MSG : & str = "valid fragment specifiers are \
17- `ident`, `block`, `stmt`, `expr`, `pat`, `ty`, `lifetime`, \
18- `literal`, `path`, `meta`, `tt`, `item` and `vis`";
19- pub const VALID_FRAGMENT_NAMES_MSG_2021 : & str = "valid fragment specifiers are \
20- `ident`, `block`, `stmt`, `expr`, `expr_2021`, `pat`, \
21- `ty`, `lifetime`, `literal`, `path`, `meta`, `tt`, \
22- `item` and `vis`";
17+ `ident`, `block`, `stmt`, `expr`, `pat`, `ty`, `lifetime`, `literal`, `path`, `meta`, `tt`, \
18+ `item` and `vis`";
19+ pub ( crate ) const VALID_FRAGMENT_NAMES_MSG_2021 : & str = "valid fragment specifiers are \
20+ `ident`, `block`, `stmt`, `expr`, `expr_2021`, `pat`, `ty`, `lifetime`, `literal`, `path`, \
21+ `meta`, `tt`, `item` and `vis`";
2322
2423/// Takes a `tokenstream::TokenStream` and returns a `Vec<self::TokenTree>`. Specifically, this
2524/// takes a generic `TokenStream`, such as is used in the rest of the compiler, and returns a
0 commit comments