diff options
| author | Michael Sullivan <sully@msully.net> | 2011-06-13 17:34:54 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2011-06-16 11:47:54 -0700 |
| commit | cfd1f74ebb634eaaa6ca60844690c5cd7de16f52 (patch) | |
| tree | c6eac2d075c199c1f0a7ec75b4dc36af786d81a1 /src/comp/pretty | |
| parent | 066599104aa50b684e63c0e8c39c5240a1fd597e (diff) | |
| download | rust-cfd1f74ebb634eaaa6ca60844690c5cd7de16f52.tar.gz rust-cfd1f74ebb634eaaa6ca60844690c5cd7de16f52.zip | |
Bring swap through typechecking and typestate.
Diffstat (limited to 'src/comp/pretty')
| -rw-r--r-- | src/comp/pretty/pprust.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/comp/pretty/pprust.rs b/src/comp/pretty/pprust.rs index f7de0acec3d..9e5e905eb80 100644 --- a/src/comp/pretty/pprust.rs +++ b/src/comp/pretty/pprust.rs @@ -704,6 +704,12 @@ fn print_expr(&ps s, &@ast::expr expr) { word_space(s, "="); print_expr(s, rhs); } + case (ast::expr_swap(?lhs, ?rhs, _)) { + print_expr(s, lhs); + space(s.s); + word_space(s, "<->"); + print_expr(s, rhs); + } case (ast::expr_assign_op(?op, ?lhs, ?rhs, _)) { print_expr(s, lhs); space(s.s); |
