diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2012-12-12 12:25:40 -0800 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2012-12-12 15:02:47 -0800 |
| commit | e24ae85025e40aa17915f6c604d89aefbca274bd (patch) | |
| tree | e60ccfc313fc01636e698aca06f92d180bafbf9c /src/libsyntax/print | |
| parent | 9cced55b93a14cdca9bb86ae99b22021fac8685f (diff) | |
| download | rust-e24ae85025e40aa17915f6c604d89aefbca274bd.tar.gz rust-e24ae85025e40aa17915f6c604d89aefbca274bd.zip | |
syntax: remove most code handling old-style syntax extensions.
Diffstat (limited to 'src/libsyntax/print')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index eda5ca1f91c..684f74f3575 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -590,9 +590,6 @@ fn print_item(s: ps, &&item: @ast::item) { pclose(s); end(s); } - ast::item_mac(_) => { - fail ~"invalid item-position syntax bit" - } } (s.ann.post)(ann_node); } @@ -1000,16 +997,6 @@ fn print_if(s: ps, test: @ast::expr, blk: ast::blk, fn print_mac(s: ps, m: ast::mac) { match m.node { - ast::mac_invoc(path, arg, _body) => { - word(s.s, ~"#"); - print_path(s, path, false); - match arg { - Some(@{node: ast::expr_vec(_, _), _}) => (), - _ => word(s.s, ~" ") - } - arg.iter(|a| print_expr(s, *a)); - // FIXME: extension 'body' (#2339) - } ast::mac_invoc_tt(pth, ref tts) => { print_path(s, pth, false); word(s.s, ~"!"); @@ -1017,9 +1004,6 @@ fn print_mac(s: ps, m: ast::mac) { for (*tts).each() |tt| { print_tt(s, *tt); } pclose(s); } - ast::mac_ellipsis => word(s.s, ~"..."), - ast::mac_var(v) => word(s.s, fmt!("$%u", v)), - _ => { /* fixme */ } } } |
