Module rustc_mir_build::thir::pattern::check_match
source · Structs§
Enums§
Functions§
- 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 inbinding @ subpat
patterns. - Check that never patterns are only used on inhabited types.
- 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.