Avoid checking control paths that will never be reached #1266
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
When a loop will never terminate (ie. is conditioned on a value that is statically guaranteed to be true and the body contains no break statements), it would be nice not to throw errors about control paths following the loop that do not return a value.
The text was updated successfully, but these errors were encountered: