You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a future-proofing kind of an error.
The current implementation does not expand all the attributes in left-to-right fashion and if we put #[my_awesome_macro] after a derive it will still be expanded before the derive, so such attributes are simply prohibited to avoid the issue.
When the implementation is fixed the restriction could be lifted.
Activity
petrochenkov commentedon Apr 21, 2019
This is a future-proofing kind of an error.
The current implementation does not expand all the attributes in left-to-right fashion and if we put
#[my_awesome_macro]
after a derive it will still be expanded before the derive, so such attributes are simply prohibited to avoid the issue.When the implementation is fixed the restriction could be lifted.
cc rust-lang/rust#54277
saskenuba commentedon Sep 24, 2020
Any updates on this restriction?
#[derive]
into a regular macro attribute rust-lang/rust#79078petrochenkov commentedon Nov 15, 2020
The restriction is going to be removed in rust-lang/rust#79078.
Auto merge of rust-lang#79078 - petrochenkov:derattr, r=Aaron1011
vlad20012 commentedon Jan 27, 2023
Can be closed now?
ehuss commentedon Jan 27, 2023
Yes, I believe this can be closed, thanks!