diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-06-21 22:46:27 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-06-23 18:00:32 -0700 |
| commit | 8fdc8f392c3f5d1bdf601756bfe442b7698e6315 (patch) | |
| tree | 09175a847c4f73b5804195e60e3638f9aeee67c4 /src/libsyntax/print/pprust.rs | |
| parent | 1841b31c61c2cca9c54264edd2a78b994b9638e9 (diff) | |
| download | rust-8fdc8f392c3f5d1bdf601756bfe442b7698e6315.tar.gz rust-8fdc8f392c3f5d1bdf601756bfe442b7698e6315.zip | |
Support foreign 'static mut' variables as well
Diffstat (limited to 'src/libsyntax/print/pprust.rs')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index c21c0a0afee..1a3155337a5 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -458,8 +458,11 @@ pub fn print_foreign_item(s: @ps, item: @ast::foreign_item) { word(s.s, ";"); end(s); // end the outer fn box } - ast::foreign_item_const(t) => { + ast::foreign_item_static(t, m) => { head(s, "static"); + if m { + word_space(s, "mut"); + } print_ident(s, item.ident); word_space(s, ":"); print_type(s, t); |
