diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2016-08-01 04:25:32 +0300 |
|---|---|---|
| committer | Eduard Burtescu <edy.burt@gmail.com> | 2016-08-12 06:43:34 +0300 |
| commit | f0baec691f9bfcfc70d6f35b1a86f7cf204a7d4f (patch) | |
| tree | 02a32f5d6fbf04d9812324fbea662e50281454d2 /src/libsyntax/print/pprust.rs | |
| parent | c976e073fda6bae5f11593913b244f33ce57d0d9 (diff) | |
| download | rust-f0baec691f9bfcfc70d6f35b1a86f7cf204a7d4f.tar.gz rust-f0baec691f9bfcfc70d6f35b1a86f7cf204a7d4f.zip | |
syntax: add anonymized type syntax, i.e. impl TraitA+TraitB.
Diffstat (limited to 'src/libsyntax/print/pprust.rs')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 3 |
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)); |
