mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Fix text fixtures of missing_match_arms diagnostics
This commit is contained in:
parent
44e2c6ea92
commit
522823f610
3 changed files with 11 additions and 3 deletions
|
@ -398,7 +398,7 @@ impl<'a> InferenceContext<'a> {
|
|||
for arm in arms.iter() {
|
||||
self.diverges = Diverges::Maybe;
|
||||
let input_ty = self.resolve_ty_shallow(&input_ty);
|
||||
let _pat_ty = self.infer_top_pat(arm.pat, &input_ty);
|
||||
self.infer_top_pat(arm.pat, &input_ty);
|
||||
if let Some(guard_expr) = arm.guard {
|
||||
self.infer_expr(
|
||||
guard_expr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue