print ids of patterns when doing --pretty identified

This commit is contained in:
Niko Matsakis 2012-05-18 19:06:56 -07:00
parent b79d717c91
commit 253979236e

View File

@ -276,7 +276,10 @@ fn ann_identified_post(node: pprust::ann_node) {
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));
}
}
}