From 8e7e405f6ab0c1ee10bfdd3d55a97628fe4cd6dd Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Sat, 20 Mar 2021 10:51:00 +0100 Subject: Remove WhereClause::Error Chalk doesn't have it, and judging from the removed code, it wasn't useful anyway. --- crates/hir_ty/src/display.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 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 2721b8312..4765c99a4 100644 --- a/crates/hir_ty/src/display.rs +++ b/crates/hir_ty/src/display.rs @@ -731,16 +731,6 @@ fn write_bounds_like_dyn_trait( } ty.hir_fmt(f)?; } - WhereClause::Error => { - if angle_open { - // impl Trait - write!(f, ", ")?; - } else if !first { - // impl Trait + {error} - write!(f, " + ")?; - } - p.hir_fmt(f)?; - } } first = false; } @@ -796,7 +786,7 @@ impl HirDisplay for WhereClause { )?; ty.hir_fmt(f)?; } - WhereClause::AliasEq(_) | WhereClause::Error => write!(f, "{{error}}")?, + WhereClause::AliasEq(_) => write!(f, "{{error}}")?, } Ok(()) } -- cgit v1.2.3