dtolnay / cxx

Safe interop between Rust and C++
https://cxx.rs
Apache License 2.0
5.68k stars 322 forks source link

Remove 'attr!' wrapper around concat in link_name & export_name attributes #1266

Closed dtolnay closed 10 months ago

dtolnay commented 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).

Since fe16a5dea3a3f2995cf41316c88f2c8961f8f3e7, Rust 1.60+ is required by cxx, so concat! can be used directly in an attribute without workaround.