Closed
Description
rust-lang/rust#37614 introduces #[proc_macro_derive(Serialize, attributes(serde))]
to whitelist attributes of a certain name inside structs that have a custom derive. We no longer need to strip serde attributes after expansion.
Also that change requires custom derives to no longer return a copy of the input item so we need to fix that.