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
Users cannot control which order their attributes run leading to issues such as #6143
Happy Case
We add two new attributes #[run_after(f)] and #[run_before(f)] which accept a function f as an argument and ensure that the attribute function they're applied to is run after or before the attribute function f.
We could also have a default step so that attributes can run before other attributes by default. If derive used this for example then there'd be no need for other attributes to have to know to run after it:
Problem
Users cannot control which order their attributes run leading to issues such as #6143
Happy Case
We add two new attributes
#[run_after(f)]
and#[run_before(f)]
which accept a functionf
as an argument and ensure that the attribute function they're applied to is run after or before the attribute function f.For example:
We could also have a default step so that attributes can run before other attributes by default. If
derive
used this for example then there'd be no need for other attributes to have to know to run after it:Workaround
None
Workaround Description
No response
Additional Context
No response
Project Impact
None
Blocker Context
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered: