diff options
| author | Ulrik Sverdrup <root@localhost> | 2015-02-05 17:58:30 +0100 |
|---|---|---|
| committer | Ulrik Sverdrup <root@localhost> | 2015-02-05 18:09:12 +0100 |
| commit | 7d527fa96b92bca102fdc77d3b07f804c384138b (patch) | |
| tree | 219556c17ddd1f9a41dd7cc668392bb0d8b144c3 /src/libsyntax | |
| parent | 75239142a8271895775d69ef50037b0162cdcd6e (diff) | |
| download | rust-7d527fa96b92bca102fdc77d3b07f804c384138b.tar.gz rust-7d527fa96b92bca102fdc77d3b07f804c384138b.zip | |
Implement pretty-printing of `..` and update tests.
Update tests to change all `&expr[]` to `&expr[..]` to make sure pretty printing passes.
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index e6d895a49fc..ee871c9d59b 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -1813,9 +1813,7 @@ impl<'a> State<'a> { if let &Some(ref e) = start { try!(self.print_expr(&**e)); } - if start.is_some() || end.is_some() { - try!(word(&mut self.s, "..")); - } + try!(word(&mut self.s, "..")); if let &Some(ref e) = end { try!(self.print_expr(&**e)); } |
