diff options
Diffstat (limited to 'src/libsyntax/print/pprust.rs')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 835d71135d5..418dfbf3349 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -421,6 +421,14 @@ 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) => { + head(s, ~"const"); + print_ident(s, item.ident); + word_space(s, ~":"); + print_type(s, t); + word(s.s, ~";"); + end(s); // end the head-ibox + } } } |
