Skip to content
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

Put #[automatically_derived] on impls #44

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

BlueGreenMagick
Copy link

#[automatically_derived] works only on impls, not blocks. This PR attaches the attribute on all generated impls.

See: https://doc.rust-lang.org/reference/attributes/derive.html#the-automatically_derived-attribute
rust-lang/rust#120185

I was investigating madonoharu#42, and the issue turned out to be #[automatically_derived] attributes being used on blocks that contains the impls, when it has to be used on the impls itself.

Although that issue turned out to be from wasm-bindgen crate (already fixed, but not yet published in rustwasm/wasm-bindgen#4078), I thought I would fix the same problems on this repo too.

they work on impls only, not blocks
@siefkenj siefkenj merged commit 694798e into siefkenj:main Aug 30, 2024
3 checks passed
@siefkenj
Copy link
Owner

Thanks for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants