diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-09-07 17:07:32 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-09-07 17:09:07 -0700 |
| commit | 53ce42dc4f4fceaf6881a3026f3dbc8fd81ae626 (patch) | |
| tree | fe06630b44b10afc5708cbebdacb9f8471580ab3 /src/libsyntax/print | |
| parent | e9f5a099dfcb42c7f2bb38974b57bbde7042ee9c (diff) | |
| download | rust-53ce42dc4f4fceaf6881a3026f3dbc8fd81ae626.tar.gz rust-53ce42dc4f4fceaf6881a3026f3dbc8fd81ae626.zip | |
Implement &-patterns
Closes #2855
Diffstat (limited to 'src/libsyntax/print')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 8b17760c7f2..451d5be1a50 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -1537,6 +1537,10 @@ fn print_pat(s: ps, &&pat: @ast::pat) { } ast::pat_box(inner) => { word(s.s, ~"@"); print_pat(s, inner); } ast::pat_uniq(inner) => { word(s.s, ~"~"); print_pat(s, inner); } + ast::pat_region(inner) => { + word(s.s, ~"&"); + print_pat(s, inner); + } ast::pat_lit(e) => print_expr(s, e), ast::pat_range(begin, end) => { print_expr(s, begin); |
