@@ -229,8 +229,8 @@ pub macro assert_matches {
229229pub macro cfg_match {
230230 // with a final wildcard
231231 (
232- $( cfg ( $initial_meta: meta) => { $( $initial_tokens: item ) * } ) +
233- _ => { $( $extra_tokens: item ) * }
232+ $( cfg ( $initial_meta: meta) => { $( $initial_tokens: tt ) * } ) +
233+ _ => { $( $extra_tokens: tt ) * }
234234 ) => {
235235 cfg_match ! {
236236 @__items ( ) ;
@@ -241,7 +241,7 @@ pub macro cfg_match {
241241
242242 // without a final wildcard
243243 (
244- $( cfg ( $extra_meta: meta) => { $( $extra_tokens: item ) * } ) *
244+ $( cfg ( $extra_meta: meta) => { $( $extra_tokens: tt ) * } ) *
245245 ) => {
246246 cfg_match ! {
247247 @__items ( ) ;
@@ -256,7 +256,7 @@ pub macro cfg_match {
256256 ( @__items ( $( $_: meta, ) * ) ; ) => { } ,
257257 (
258258 @__items ( $( $no: meta, ) * ) ;
259- ( ( $( $yes: meta) ?) ( $( $tokens: item ) * ) ) ,
259+ ( ( $( $yes: meta) ?) ( $( $tokens: tt ) * ) ) ,
260260 $( $rest: tt, ) *
261261 ) => {
262262 // Emit all items within one block, applying an appropriate #[cfg]. The
@@ -279,7 +279,7 @@ pub macro cfg_match {
279279
280280 // Internal macro to make __apply work out right for different match types,
281281 // because of how macros match/expand stuff.
282- ( @__identity $( $tokens: item ) * ) => {
282+ ( @__identity $( $tokens: tt ) * ) => {
283283 $( $tokens) *
284284 }
285285}
0 commit comments