-
Couldn't load subscription status.
- Fork 13.9k
Closed
Labels
A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
Description
Ideally, tt matches either a single token or delimited sequence (e.g. { arbitrary tokens }).
However, the following compiles today:
macro_rules! m { ($t:tt) => {} }
m!($x);
m!($(x)*);
m!($x:ident);We want to avoid leaking details of macro_rules! syntax into the semantics of tt, at least for macros 2.0.
Metadata
Metadata
Assignees
Labels
A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)