aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/display.rs
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2021-03-20 09:51:00 +0000
committerFlorian Diebold <[email protected]>2021-03-20 09:51:00 +0000
commit8e7e405f6ab0c1ee10bfdd3d55a97628fe4cd6dd (patch)
treeebdcea14c479ddfca358bbeabdde1da8f45b2423 /crates/hir_ty/src/display.rs
parent7a5fb37cf12f4e25ce1ba7e464dd257408444bfb (diff)
Remove WhereClause::Error
Chalk doesn't have it, and judging from the removed code, it wasn't useful anyway.
Diffstat (limited to 'crates/hir_ty/src/display.rs')
-rw-r--r--crates/hir_ty/src/display.rs12
1 files changed, 1 insertions, 11 deletions
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(
731 } 731 }
732 ty.hir_fmt(f)?; 732 ty.hir_fmt(f)?;
733 } 733 }
734 WhereClause::Error => {
735 if angle_open {
736 // impl Trait<X, {error}>
737 write!(f, ", ")?;
738 } else if !first {
739 // impl Trait + {error}
740 write!(f, " + ")?;
741 }
742 p.hir_fmt(f)?;
743 }
744 } 734 }
745 first = false; 735 first = false;
746 } 736 }
@@ -796,7 +786,7 @@ impl HirDisplay for WhereClause {
796 )?; 786 )?;
797 ty.hir_fmt(f)?; 787 ty.hir_fmt(f)?;
798 } 788 }
799 WhereClause::AliasEq(_) | WhereClause::Error => write!(f, "{{error}}")?, 789 WhereClause::AliasEq(_) => write!(f, "{{error}}")?,
800 } 790 }
801 Ok(()) 791 Ok(())
802 } 792 }