-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-syntaxextArea: Syntax extensionsArea: Syntax extensionsT-langRelevant to the language teamRelevant to the language team
Description
Something like this would be nice for code generation in Cargo. (See rust-lang/cargo#824.)
#[path = concat!(env!("OUT_DIR"), "/hello.rs")]
mod foo;
But it currently doesn’t parse:
a.rs:1:10: 1:16 error: unexpected token: `concat`
a.rs:1 #[path = concat!(env!("OUT_DIR"), "/hello.rs")]
^~~~~~
Can we make this work? I have a hack in #18810 (comment) to work around it, but it’s ugly.
SirVer
Metadata
Metadata
Assignees
Labels
A-syntaxextArea: Syntax extensionsArea: Syntax extensionsT-langRelevant to the language teamRelevant to the language team