about summary refs log tree commit diff
path: root/src/libsyntax/print
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2017-01-16 23:33:45 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2017-01-17 01:52:47 +0300
commit2efe865d22eb85871562b2497ac819efc0174a3d (patch)
tree8391f7670462a2536057f9c22c3aa87f90a79d20 /src/libsyntax/print
parent828404684b486a2b741858970a150530228258bb (diff)
downloadrust-2efe865d22eb85871562b2497ac819efc0174a3d.tar.gz
rust-2efe865d22eb85871562b2497ac819efc0174a3d.zip
AST/HIR: Merge ObjectSum and PolyTraitRef
Diffstat (limited to 'src/libsyntax/print')
-rw-r--r--src/libsyntax/print/pprust.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs
index f6ed2350105..31e6f25559d 100644
--- a/src/libsyntax/print/pprust.rs
+++ b/src/libsyntax/print/pprust.rs
@@ -1028,11 +1028,7 @@ impl<'a> State<'a> {
             ast::TyKind::Path(Some(ref qself), ref path) => {
                 self.print_qpath(path, qself, false)?
             }
-            ast::TyKind::ObjectSum(ref ty, ref bounds) => {
-                self.print_type(&ty)?;
-                self.print_bounds("+", &bounds[..])?;
-            }
-            ast::TyKind::PolyTraitRef(ref bounds) => {
+            ast::TyKind::ObjectSum(ref bounds) => {
                 self.print_bounds("", &bounds[..])?;
             }
             ast::TyKind::ImplTrait(ref bounds) => {