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/display.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/hir_ty/src/display.rs') diff --git a/crates/hir_ty/src/display.rs b/crates/hir_ty/src/display.rs index 148eb7506..83d09a8c7 100644 --- a/crates/hir_ty/src/display.rs +++ b/crates/hir_ty/src/display.rs @@ -476,7 +476,7 @@ impl HirDisplay for Ty { parameter.assert_ty_ref(&Interner).kind(&Interner), default_parameters.get(i), ) { - (&TyKind::Unknown, _) | (_, None) => { + (&TyKind::Error, _) | (_, None) => { default_from = i + 1; } (_, Some(default_parameter)) => { @@ -636,7 +636,7 @@ impl HirDisplay for Ty { } }; } - TyKind::Unknown => { + TyKind::Error => { if f.display_target.is_source_code() { return Err(HirDisplayError::DisplaySourceCodeError( DisplaySourceCodeError::UnknownType, -- cgit v1.2.3