aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2019-02-10 11:35:30 +0000
committerFlorian Diebold <[email protected]>2019-02-10 11:35:30 +0000
commit2e9194a621ccb33872d6189ecc30a83c17e6e33a (patch)
tree1780ccf1ffdc3eef544324d7ef6bab0adc633a43 /crates
parentb18863f987ef14d44a67c0b8ebaa9c7a7fed7f59 (diff)
Spell cases explicitly in Ty::walk{_mut}
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_hir/src/ty.rs20
1 files changed, 18 insertions, 2 deletions
diff --git a/crates/ra_hir/src/ty.rs b/crates/ra_hir/src/ty.rs
index 08561573b..2dc1de41a 100644
--- a/crates/ra_hir/src/ty.rs
+++ b/crates/ra_hir/src/ty.rs
@@ -480,7 +480,15 @@ impl Ty {
480 t.walk(f); 480 t.walk(f);
481 } 481 }
482 } 482 }
483 _ => {} 483 Ty::Bool
484 | Ty::Char
485 | Ty::Int(_)
486 | Ty::Float(_)
487 | Ty::Str
488 | Ty::Never
489 | Ty::Param { .. }
490 | Ty::Infer(_)
491 | Ty::Unknown => {}
484 } 492 }
485 } 493 }
486 494
@@ -526,7 +534,15 @@ impl Ty {
526 } 534 }
527 substs.0 = v.into(); 535 substs.0 = v.into();
528 } 536 }
529 _ => {} 537 Ty::Bool
538 | Ty::Char
539 | Ty::Int(_)
540 | Ty::Float(_)
541 | Ty::Str
542 | Ty::Never
543 | Ty::Param { .. }
544 | Ty::Infer(_)
545 | Ty::Unknown => {}
530 } 546 }
531 } 547 }
532 548