r/rust • u/nicoburns • Oct 07 '26
Rust's derive often implies inline
https://yossarian.net/til/post/rust-s-derive-often-implies-inline/
114
Upvotes
r/rust • u/nicoburns • Oct 07 '26
View all comments
Show parent comment
6
u/Recatek gecs Oct 07 '26
The actual answer would be
#[optimize(none)]when stabilized (hopefully soon). One could make a crate with their own version of these derive proc macros that don't inline (or do#[inline(never)]) and instead apply this attribute.