Skip to content

Use real #[non_exhaustive] attribute.#625

Merged
adamgreig merged 1 commit intorust-embedded:masterfrom
wt:use_real_non_exhaustive_attr
Mar 10, 2026
Merged

Use real #[non_exhaustive] attribute.#625
adamgreig merged 1 commit intorust-embedded:masterfrom
wt:use_real_non_exhaustive_attr

Conversation

@wt
Copy link
Contributor

@wt wt commented Mar 10, 2026

The #[non_exhaustive] attr has existed since rust 1.40.0. We should use it instead of the older manual method for creating a non-exhaustive struct.

The `#[non_exhaustive]` attr has existed since rust 1.40.0. We should
use it instead of the older manual method for creating a non-exhaustive
struct.
Copy link
Member

@adamgreig adamgreig left a comment

Choose a reason for hiding this comment

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

Thanks!

@adamgreig adamgreig added this pull request to the merge queue Mar 10, 2026
Merged via the queue into rust-embedded:master with commit 674daef Mar 10, 2026
11 checks passed
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