[Feature Request] Derive trait recursively #12330
Labels
A-assists
A-diagnostics
diagnostics / error reporting
A-ty
type system / type inference / traits / method resolution
C-feature
Category: feature request
Imagine you're in the following situation:
serde::Serialize
implemented for a struct that doesn't already have itserde::Serialize
derived yetYou now have to spend minutes of your time clicking through to all of the different types and adding
#[derive(Serialize)]
to them (plus relevant imports).What if Rust Analyzer could do this for us? There could be an assist on
#[derive(Serialize)]
for the top-level type that said "Derive recursively for all children" and went through and automatically did all of this work.The text was updated successfully, but these errors were encountered: