Open udoprog opened 5 months ago
yeah, this is a known issue and...it's really unfortunate. we're just not going to add new levels ever, i guess.
which, honestly, we probably weren't going to do in the first place, so i don't know if trying to make it non-exhaustive was actually worth the effort.
I'm not sure whether or not this is intended, but given the separation between
Level
andLevelInner
I'll just report it anyway.If you set up a match over
Level
, the following counts as an exhaustive match:This is a potential compatibility issue if additional variants are added or if the internals of
Level
are changed (e.g. something that can not be exhaustively matched over). Rust seems to "peek through" the private enum that the constant is composed out of when checking that the pattern is exhaustive, even with private enums likeLevelInner
.Version
0.1.40