about summary refs log tree commit diff
path: root/src/libsyntax/print
diff options
context:
space:
mode:
authorEduard Burtescu <edy.burt@gmail.com>2016-08-01 04:25:32 +0300
committerEduard Burtescu <edy.burt@gmail.com>2016-08-12 06:43:34 +0300
commitf0baec691f9bfcfc70d6f35b1a86f7cf204a7d4f (patch)
tree02a32f5d6fbf04d9812324fbea662e50281454d2 /src/libsyntax/print
parentc976e073fda6bae5f11593913b244f33ce57d0d9 (diff)
downloadrust-f0baec691f9bfcfc70d6f35b1a86f7cf204a7d4f.tar.gz
rust-f0baec691f9bfcfc70d6f35b1a86f7cf204a7d4f.zip
syntax: add anonymized type syntax, i.e. impl TraitA+TraitB.
Diffstat (limited to 'src/libsyntax/print')
-rw-r--r--src/libsyntax/print/pprust.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs
index a619da84b2d..62e55eb78b7 100644
--- a/src/libsyntax/print/pprust.rs
+++ b/src/libsyntax/print/pprust.rs
@@ -1018,6 +1018,9 @@ impl<'a> State<'a> {
             ast::TyKind::PolyTraitRef(ref bounds) => {
                 try!(self.print_bounds("", &bounds[..]));
             }
+            ast::TyKind::ImplTrait(ref bounds) => {
+                try!(self.print_bounds("impl ", &bounds[..]));
+            }
             ast::TyKind::FixedLengthVec(ref ty, ref v) => {
                 try!(word(&mut self.s, "["));
                 try!(self.print_type(&ty));