-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support suppressing default Clone
derivation
#325
Comments
mathstuf
added a commit
to mathstuf/rust-derive-builder
that referenced
this issue
Jun 27, 2024
This attribute suppresses the default-generated `derive(Clone)`. This may be necessary where `derive(Clone)` copies constraints in an unsatisfiable way. See: https://smallcultfollowing.com/babysteps//blog/2022/04/12/implied-bounds-and-perfect-derive/ See: rust-lang/rust#26925 Fixes: colin-kiegel#325
mathstuf
added a commit
to mathstuf/rust-derive-builder
that referenced
this issue
Jun 27, 2024
This attribute suppresses the default-generated `derive(Clone)`. This may be necessary where `derive(Clone)` copies constraints in an unsatisfiable way. See: https://smallcultfollowing.com/babysteps//blog/2022/04/12/implied-bounds-and-perfect-derive/ See: rust-lang/rust#26925 Fixes: colin-kiegel#325
mathstuf
added a commit
to mathstuf/rust-derive-builder
that referenced
this issue
Jun 27, 2024
This attribute suppresses the default-generated `derive(Clone)`. This may be necessary where `derive(Clone)` copies constraints in an unsatisfiable way. See: https://smallcultfollowing.com/babysteps//blog/2022/04/12/implied-bounds-and-perfect-derive/ See: rust-lang/rust#26925 Fixes: colin-kiegel#325
mathstuf
added a commit
to mathstuf/rust-derive-builder
that referenced
this issue
Jun 27, 2024
This attribute suppresses the default-generated `derive(Clone)`. This may be necessary where `derive(Clone)` copies constraints in an unsatisfiable way. See: https://smallcultfollowing.com/babysteps//blog/2022/04/12/implied-bounds-and-perfect-derive/ See: rust-lang/rust#26925 Fixes: colin-kiegel#325
mathstuf
added a commit
to mathstuf/rust-derive-builder
that referenced
this issue
Jun 27, 2024
This attribute suppresses the default-generated `derive(Clone)`. This may be necessary where `derive(Clone)` copies constraints in an unsatisfiable way. See: https://smallcultfollowing.com/babysteps//blog/2022/04/12/implied-bounds-and-perfect-derive/ See: rust-lang/rust#26925 Fixes: colin-kiegel#325
mathstuf
added a commit
to mathstuf/rust-derive-builder
that referenced
this issue
Jun 27, 2024
This attribute suppresses the default-generated `derive(Clone)`. This may be necessary where `derive(Clone)` copies constraints in an unsatisfiable way. See: https://smallcultfollowing.com/babysteps//blog/2022/04/12/implied-bounds-and-perfect-derive/ See: rust-lang/rust#26925 Fixes: colin-kiegel#325
Suppression is more reliable with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'd like to instead use
perfect_derive(Clone)
thanderive(Clone)
. I can do the former withbuilder_struct_addr
, but this conflicts with thederive(Clone)
added by default. A direct dependency onperfect_derive
seems excessive, but an escape hatch to doClone
in a different way would be nice.The text was updated successfully, but these errors were encountered: