Auto merge of #119610 - Nadrieril:never_pattern_bindings, r=compiler-errors
never patterns: Check bindings wrt never patterns Never patterns: - Shouldn't contain bindings since they never match anything; - Don't count when checking that or-patterns have consistent bindings. r? `@compiler-errors`
This commit is contained in:
commit
714b29a17f
13 changed files with 243 additions and 130 deletions
|
@ -265,6 +265,8 @@ enum ResolutionError<'a> {
|
|||
InvalidAsmSym,
|
||||
/// `self` used instead of `Self` in a generic parameter
|
||||
LowercaseSelf,
|
||||
/// A never pattern has a binding.
|
||||
BindingInNeverPattern,
|
||||
}
|
||||
|
||||
enum VisResolutionError<'a> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue