diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-05-05 09:24:09 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-05-05 09:24:09 +0530 |
| commit | 9f50d62200a4d495ade0c26f809f0b0c63726e89 (patch) | |
| tree | e7b15a0553a8ef34cfef0f6885f187cc90446f87 /src/libsyntax | |
| parent | 86a858add58168faf42838e9852a0b5b012cd6be (diff) | |
| parent | c62c908f083ae5cc1fa914bba9837db054995450 (diff) | |
| download | rust-9f50d62200a4d495ade0c26f809f0b0c63726e89.tar.gz rust-9f50d62200a4d495ade0c26f809f0b0c63726e89.zip | |
Rollup merge of #25092 - pnkfelix:fix-pprint-of-type-items-with-where, r=alexcrichton
Correct pretty-printing of `type Foo<T> where T: Bound = ...;` Fix #25031
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 87c164f7550..5c1f6cc12f5 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -903,10 +903,10 @@ impl<'a> State<'a> { try!(self.print_generics(params)); try!(self.end()); // end the inner ibox + try!(self.print_where_clause(¶ms.where_clause)); try!(space(&mut self.s)); try!(self.word_space("=")); try!(self.print_type(&**ty)); - try!(self.print_where_clause(¶ms.where_clause)); try!(word(&mut self.s, ";")); try!(self.end()); // end the outer ibox } |
