Closed dtolnay closed 10 months ago
This workaround was originally necessary as the #[attribute = concat!(...)] was not accepted by rustc's parser. It became supported in Rust 1.54 (https://blog.rust-lang.org/2021/07/29/Rust-1.54.0.html#attributes-can-invoke-function-like-macros).
#[attribute = concat!(...)]
Since fe16a5dea3a3f2995cf41316c88f2c8961f8f3e7, Rust 1.60+ is required by cxx, so concat! can be used directly in an attribute without workaround.
concat!
This workaround was originally necessary as the
#[attribute = concat!(...)]
was not accepted by rustc's parser. It became supported in Rust 1.54 (https://blog.rust-lang.org/2021/07/29/Rust-1.54.0.html#attributes-can-invoke-function-like-macros).Since fe16a5dea3a3f2995cf41316c88f2c8961f8f3e7, Rust 1.60+ is required by cxx, so
concat!
can be used directly in an attribute without workaround.