Rollup merge of #33046 - jseyfried:fix_unresolved_pattern_diagnostics, r=eddyb
Fix diagnostics for unresolved patterns This fixes #33043, a bug in the diagnostics for unresolved patterns. r? @eddyb
This commit is contained in:
commit
e1db767dbc
2 changed files with 5 additions and 1 deletions
|
@ -2406,7 +2406,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
|
|||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
} else if let Err(false) = self.resolve_path(pat_id, &path, 0, ValueNS) {
|
||||
resolve_error(
|
||||
self,
|
||||
path.span,
|
||||
|
|
|
@ -42,4 +42,8 @@ fn main() {
|
|||
//~^ ERROR mismatched types
|
||||
//~| expected `char`
|
||||
//~| found `bool`
|
||||
|
||||
match () {
|
||||
E::V => {} //~ ERROR failed to resolve. Use of undeclared type or module `E`
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue