Skip to content

Conversation

@KiChjang
Copy link
Contributor

As discussed in paritytech/substrate#9180.

@KiChjang KiChjang requested review from bkchr and coriolinus June 25, 2021 00:46
Copy link
Contributor

@coriolinus coriolinus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I particularly like the unit test you wrote. Added some comments which you may choose to address, but none of them are entirely within the scope of this PR, so it's legitimate if you choose not to.

// https://github.com/paritytech/parity-scale-codec/
// blob/f0341dabb01aa9ff0548558abb6dcc5c31c669a1/derive/src/encode.rs#L290-L293
syn::Error::new(data.union_token.span(), "Union types are not supported")
syn::Error::new(data.union_token.span(), "Union types are not supported.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is going to require downstream changes to a lot of UI tests. It may well be worth doing anyway, but be prepared to follow up.

@KiChjang KiChjang merged commit 4510676 into master Jun 25, 2021
@KiChjang KiChjang deleted the kckyeung/mel-custom-trait-bounds branch June 25, 2021 22:39
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.

3 participants