-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
T-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.
Description
In this reddit comment Perceptes mentioned one idea to cut down down on some of the syntex boilerplate would be to use the #[path = ...]
attribute to point to one of the generated files, as in this:
#[path = concat!(env!("OUT_DIR"), "/generated_foo.rs")]
mod foo;
Unfortunately this is currently illegal, because macros cannot be used in the position of a literal. It would be nice if we supported this functionality.
EFanZh
Metadata
Metadata
Assignees
Labels
T-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.