From 65c2e5194034e4f6f556b96e71ce62bc2a465a35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Mon, 5 Apr 2021 15:37:11 +0300 Subject: Rename TyKind::Unknown to Error --- crates/hir_ty/src/walk.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/hir_ty/src/walk.rs') 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 { { self.walk_mut_binders( &mut |ty_mut, binders| { - let ty = mem::replace(ty_mut, TyKind::Unknown.intern(&Interner)); + let ty = mem::replace(ty_mut, TyKind::Error.intern(&Interner)); *ty_mut = f(ty, binders); }, binders, @@ -56,7 +56,7 @@ pub trait TypeWalk { Self: Sized, { self.walk_mut(&mut |ty_mut| { - let ty = mem::replace(ty_mut, TyKind::Unknown.intern(&Interner)); + let ty = mem::replace(ty_mut, TyKind::Error.intern(&Interner)); *ty_mut = f(ty); }); self -- cgit v1.2.3