diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2012-08-24 11:04:07 -0700 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-08-24 12:55:08 -0700 |
| commit | e47d2f60607142eaf68a0c560f5c3d37fd1da13d (patch) | |
| tree | 945346c3472ce432a367fff3aa4dd0ffed61efe4 /src/libsyntax | |
| parent | aa024acae3912d7d58e38fdd8185a115f2ab4e8f (diff) | |
| download | rust-e47d2f60607142eaf68a0c560f5c3d37fd1da13d.tar.gz rust-e47d2f60607142eaf68a0c560f5c3d37fd1da13d.zip | |
extend liveness to treat bindings more like other variables
This results in a lot of warnings in rustc. I left them in because many are bugs and we should fix our code, but Graydon asked that I not touch every file in the codebase.
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 53458fd8756..1a2e36d081b 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -1450,8 +1450,10 @@ fn print_pat(s: ps, &&pat: @ast::pat) { word_nbsp(s, ~"ref"); print_mutability(s, mutbl); } + ast::bind_by_move => { + word_nbsp(s, ~"move"); + } ast::bind_by_implicit_ref | - ast::bind_by_move | // this is totally the wrong thing ast::bind_by_value => {} } print_path(s, path, true); |
