diff options
| author | John Clements <clements@racket-lang.org> | 2013-07-11 23:07:34 -0700 |
|---|---|---|
| committer | John Clements <clements@racket-lang.org> | 2013-09-06 13:35:12 -0700 |
| commit | dbf4e19ea5946723acc1495ac82ed73f784821dd (patch) | |
| tree | 8a45c9fb5b17015f95db03cbbfd5618c9c8394fb /src/libsyntax/print | |
| parent | 60562ac9f8c68c1cf3b30efcd6d6954a9b82acbe (diff) | |
| download | rust-dbf4e19ea5946723acc1495ac82ed73f784821dd.tar.gz rust-dbf4e19ea5946723acc1495ac82ed73f784821dd.zip | |
remove unneeded imports, clean up unused var warnings
Diffstat (limited to 'src/libsyntax/print')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 4d464706d6f..8871413a46d 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -619,7 +619,8 @@ pub fn print_item(s: @ps, item: &ast::item) { } bclose(s, item.span); } - ast::item_mac(codemap::Spanned { node: ast::mac_invoc_tt(ref pth, ref tts, ctxt), + // I think it's reasonable to hide the context here: + ast::item_mac(codemap::Spanned { node: ast::mac_invoc_tt(ref pth, ref tts, _), _}) => { print_visibility(s, item.vis); print_path(s, pth, false); @@ -1021,7 +1022,8 @@ pub fn print_if(s: @ps, test: &ast::Expr, blk: &ast::Block, pub fn print_mac(s: @ps, m: &ast::mac) { match m.node { - ast::mac_invoc_tt(ref pth, ref tts, ctxt) => { + // I think it's reasonable to hide the ctxt here: + ast::mac_invoc_tt(ref pth, ref tts, _) => { print_path(s, pth, false); word(s.s, "!"); popen(s); |
