mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 21:35:58 +00:00
Add #[automatically_derived]
to derived impls (#8080)
This commit is contained in:
parent
256b98ab9a
commit
a525f09008
5 changed files with 6 additions and 0 deletions
|
@ -87,6 +87,7 @@ pub(crate) fn derive_impl(input: DeriveInput) -> syn::Result<TokenStream> {
|
|||
};
|
||||
|
||||
Ok(quote! {
|
||||
#[automatically_derived]
|
||||
impl crate::options_base::OptionsMetadata for #ident {
|
||||
fn record(visit: &mut dyn crate::options_base::Visit) {
|
||||
#(#output);*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue