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
Fix for Rust compiler warning about derive helpers (#2581)
## Motivation and Context
Follow-up to #2434
## Description
This provides a way to fix a compiler warning. Attributes created using
RustMetadata.additionalAttributes may trigger compiler warnings
(rust-lang/rust#79202) such as
```
warning: derive helper attribute is used before it is introduced
--> src/model.rs:7674:3
|
7674 | #[serde(tag = "_type", content = "_content")]
| ^^^^^
7675 | #[derive(
7676 | serde::Deserialize,
| ------------------ the attribute is introduced here
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #79202 <rust-lang/rust#79202>
```
## Testing
Added a unit test to validate the sort order is applied correctly to
Attributes with isDeriveHelper = true.
---------
Co-authored-by: david-perez <[email protected]>
0 commit comments