diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2012-05-18 19:06:56 -0700 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-05-18 19:07:20 -0700 |
| commit | 253979236e00a391fdce12943fd21b5e8c4656b1 (patch) | |
| tree | f1d22cfed08dfe65ba9a819cc4382f200eded7b6 /src/rustc/driver | |
| parent | b79d717c9127492073696f40c589ca805ac12e58 (diff) | |
| download | rust-253979236e00a391fdce12943fd21b5e8c4656b1.tar.gz rust-253979236e00a391fdce12943fd21b5e8c4656b1.zip | |
print ids of patterns when doing --pretty identified
Diffstat (limited to 'src/rustc/driver')
| -rw-r--r-- | src/rustc/driver/driver.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rustc/driver/driver.rs b/src/rustc/driver/driver.rs index ad669c1a4e4..33f82ccab75 100644 --- a/src/rustc/driver/driver.rs +++ b/src/rustc/driver/driver.rs @@ -276,7 +276,10 @@ fn pretty_print_input(sess: session, cfg: ast::crate_cfg, input: input, pprust::synth_comment(s, int::to_str(expr.id, 10u)); pprust::pclose(s); } - _ { } + pprust::node_pat(s, pat) { + pp::space(s.s); + pprust::synth_comment(s, "pat " + int::to_str(pat.id, 10u)); + } } } |
