Skip to content

Use #[non_exhaustive] after updating MSRV to 1.40.0 #1182

Closed
@asomers

Description

@asomers

The #[non_exhaustive] attribute, introduced by Rust 1.40.0, should be used for most enums that come from C, since new values could be added by any release. This attribute isn't valuable enough to justify a MSRV bump by itself. But we should still make use of it whenever we update the MSRV for any other reason.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions