Skip to content

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 wasm-bindgen/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
@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