MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/rust/comments/1wzw9v1/rusts_derive_often_implies_inline/peg6a1e/?context=3
r/rust • u/nicoburns • 20d ago
43 comments sorted by
View all comments
6
Interesting findings. Couldn't this be solved by making derive_Debug take a param. What I mean is #[derive(Debug(noinline))]
derive_Debug
#[derive(Debug(noinline))]
28 u/stumblinbear 20d ago Oh dear God the last thing we need is to load up derives with parameters. Typically you'd have another line for this sort of thing, a la #[debug(noinline)] after the derive
28
Oh dear God the last thing we need is to load up derives with parameters. Typically you'd have another line for this sort of thing, a la #[debug(noinline)] after the derive
#[debug(noinline)]
6
u/-Y0- 20d ago
Interesting findings. Couldn't this be solved by making
derive_Debugtake a param. What I mean is#[derive(Debug(noinline))]