non-exhaustive patterns after adding an enum variant
I added a variant to a public enum in a library crate and now downstream code fails to compile with:
error[E0004]: non-exhaustive patterns: Status::Archived not covered
--> src/serialize.rs:33:9
|
33 | match status {
| ^^^^^^ pattern Status::Archived is not covered
This is a library with several internal call sites I missed. Is there a compiler flag or attribute to find all the matches I need to update? Also should I mark the enum #[non_exhaustive] for future changes?
4 replies