diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-08-13 21:28:11 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-08-13 21:28:11 +0100 |
commit | e5b17b6ad493d1d4430b451619e53594a2796e5d (patch) | |
tree | 3df99a280caea5274d00ff860a4e9f6b16419eb2 /crates/hir_ty/src | |
parent | 3d6fd620e80050d68e6da55aabad2ca780ba2323 (diff) | |
parent | 947a27b797cd87d5650477441c9c3c03b6364626 (diff) |
Merge #5752
5752: display correctly 'impl Trait<T> + Trait<T>' #4814 r=flodiebold a=bnjjj
close #4814
Co-authored-by: Benjamin Coenen <[email protected]>
Diffstat (limited to 'crates/hir_ty/src')
-rw-r--r-- | crates/hir_ty/src/display.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/hir_ty/src/display.rs b/crates/hir_ty/src/display.rs index 19770e609..64b68014d 100644 --- a/crates/hir_ty/src/display.rs +++ b/crates/hir_ty/src/display.rs | |||
@@ -511,6 +511,7 @@ fn write_bounds_like_dyn_trait( | |||
511 | GenericPredicate::Implemented(trait_ref) => { | 511 | GenericPredicate::Implemented(trait_ref) => { |
512 | if angle_open { | 512 | if angle_open { |
513 | write!(f, ">")?; | 513 | write!(f, ">")?; |
514 | angle_open = false; | ||
514 | } | 515 | } |
515 | if !first { | 516 | if !first { |
516 | write!(f, " + ")?; | 517 | write!(f, " + ")?; |