Module rustc_mir_build::thir::pattern::check_match
source · Structs§
- MatchVisitor π
Enums§
- LetSource π
- RefutableFlag π
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_match π
- check_never_pattern πCheck that never patterns are only used on inhabited types.
- collect_special_tys πCollect types that require specific explanations when they show up in witnesses.
- pat_is_catchall π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.