aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/display.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-03-20 10:23:55 +0000
committerGitHub <[email protected]>2021-03-20 10:23:55 +0000
commit5ac0290f533eed295c6e92564d7530d41cf45d6e (patch)
treeebdcea14c479ddfca358bbeabdde1da8f45b2423 /crates/hir_ty/src/display.rs
parent3901c3b566a6834c64e029bd6f4fdaaf8b26f809 (diff)
parent8e7e405f6ab0c1ee10bfdd3d55a97628fe4cd6dd (diff)
Merge #8116
8116: Remove WhereClause::Error r=flodiebold a=flodiebold Chalk doesn't have it, and judging from the removed code, it wasn't useful anyway. Co-authored-by: Florian Diebold <[email protected]>
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 }