aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/walk.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir_ty/src/walk.rs')
-rw-r--r--crates/hir_ty/src/walk.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_ty/src/walk.rs b/crates/hir_ty/src/walk.rs
index bfb3f1041..5dfd59746 100644
--- a/crates/hir_ty/src/walk.rs
+++ b/crates/hir_ty/src/walk.rs
@@ -43,7 +43,7 @@ pub trait TypeWalk {
43 { 43 {
44 self.walk_mut_binders( 44 self.walk_mut_binders(
45 &mut |ty_mut, binders| { 45 &mut |ty_mut, binders| {
46 let ty = mem::replace(ty_mut, TyKind::Unknown.intern(&Interner)); 46 let ty = mem::replace(ty_mut, TyKind::Error.intern(&Interner));
47 *ty_mut = f(ty, binders); 47 *ty_mut = f(ty, binders);
48 }, 48 },
49 binders, 49 binders,
@@ -56,7 +56,7 @@ pub trait TypeWalk {
56 Self: Sized, 56 Self: Sized,
57 { 57 {
58 self.walk_mut(&mut |ty_mut| { 58 self.walk_mut(&mut |ty_mut| {
59 let ty = mem::replace(ty_mut, TyKind::Unknown.intern(&Interner)); 59 let ty = mem::replace(ty_mut, TyKind::Error.intern(&Interner));
60 *ty_mut = f(ty); 60 *ty_mut = f(ty);
61 }); 61 });
62 self 62 self