Check if a by-value binding is by-value. That is, check if the bindingβs type is not Copy
.
Check that there are no borrow or move conflicts in binding @ subpat
patterns.
Check that never patterns are only used on inhabited types.
Collect types that require specific explanations when they show up in witnesses.
Detect typos that were meant to be a const
but were interpreted as a new pattern binding.
Checks for common cases of βcatchallβ patterns that may not be intended as such.
Report unreachable arms, if any.
Report that a match is not exhaustive.
Report unreachable arms, if any.