diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2014-11-15 16:55:27 -0500 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2014-11-18 12:32:37 -0500 |
| commit | c8a94c5dfaaf5f1dacc110bb81d292c4382554d9 (patch) | |
| tree | 82e6306f91f24f06e8be597672f9a3c82a206300 /src/libsyntax/print/pprust.rs | |
| parent | 9c808ffee44afad69aeeeec835601d44bf0e9147 (diff) | |
| download | rust-c8a94c5dfaaf5f1dacc110bb81d292c4382554d9.tar.gz rust-c8a94c5dfaaf5f1dacc110bb81d292c4382554d9.zip | |
Convert TyPolyTraitRef to accept arbitary bounds, so that things like
`Box<for<'a> Foo<&'a T> + 'a>` can be accepted. Also cleanup the visitor/fold in general, exposing more callbacks.
Diffstat (limited to 'src/libsyntax/print/pprust.rs')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 0543b80f208..e6e0c33a42d 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -739,8 +739,8 @@ impl<'a> State<'a> { ast::TyPath(ref path, ref bounds, _) => { try!(self.print_bounded_path(path, bounds)); } - ast::TyPolyTraitRef(ref poly_trait_ref) => { - try!(self.print_poly_trait_ref(&**poly_trait_ref)); + ast::TyPolyTraitRef(ref bounds) => { + try!(self.print_bounds("", bounds)); } ast::TyQPath(ref qpath) => { try!(word(&mut self.s, "<")); |
