Skip to content

Commit 9f0c7e5

Browse files
authored
fix(sol-macro): remove #[automatically_derived] from non-trait impls (#1012)
1 parent e122aeb commit 9f0c7e5

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

crates/sol-macro-expander/src/expand/contract.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,6 @@ pub(super) fn expand(cx: &mut ExpCtxt<'_>, contract: &ItemContract) -> Result<To
414414
}
415415

416416
/// Instantiation and getters/setters.
417-
#[automatically_derived]
418417
impl #generic_p_n #name<P, N> {
419418
#[doc = #new_fn_doc]
420419
#[inline]
@@ -458,7 +457,6 @@ pub(super) fn expand(cx: &mut ExpCtxt<'_>, contract: &ItemContract) -> Result<To
458457
}
459458

460459
/// Function calls.
461-
#[automatically_derived]
462460
impl #generic_p_n #name<P, N> {
463461
/// Creates a new call builder using this contract instance's provider and address.
464462
///
@@ -474,7 +472,6 @@ pub(super) fn expand(cx: &mut ExpCtxt<'_>, contract: &ItemContract) -> Result<To
474472
}
475473

476474
/// Event filters.
477-
#[automatically_derived]
478475
impl #generic_p_n #name<P, N> {
479476
/// Creates a new event filter using this contract instance's provider and address.
480477
///
@@ -917,7 +914,6 @@ impl CallLikeExpander<'_> {
917914
)*
918915
}
919916

920-
#[automatically_derived]
921917
impl #name {
922918
/// All the selectors of this enum.
923919
///
@@ -958,7 +954,6 @@ impl CallLikeExpander<'_> {
958954
let methods = variants.iter().zip(types).map(generate_variant_methods);
959955
tokens.extend(conversions);
960956
tokens.extend(quote! {
961-
#[automatically_derived]
962957
impl #name {
963958
#(#methods)*
964959
}

crates/sol-macro-expander/src/expand/udt.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ pub(super) fn expand(cx: &ExpCtxt<'_>, udt: &ItemUdt) -> Result<TokenStream> {
6262
}
6363
}
6464

65-
#[automatically_derived]
6665
impl #name {
6766
/// The Solidity type name.
6867
pub const NAME: &'static str = stringify!(@name);

0 commit comments

Comments
 (0)