Skip to content

Commit

Permalink
Fix pretty printing of HRTB syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
bkoropoff committed Dec 16, 2014
1 parent 3925b4d commit 0a1798d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/libsyntax/print/pprust.rs
Expand Up @@ -1005,8 +1005,13 @@ impl<'a> State<'a> {
fn print_poly_trait_ref(&mut self, t: &ast::PolyTraitRef) -> IoResult<()> {
if !t.bound_lifetimes.is_empty() {
try!(word(&mut self.s, "for<"));
let mut comma = false;
for lifetime_def in t.bound_lifetimes.iter() {
if comma {
try!(self.word_space(","))
}
try!(self.print_lifetime_def(lifetime_def));
comma = true;
}
try!(word(&mut self.s, ">"));
}
Expand Down

0 comments on commit 0a1798d

Please sign in to comment.