Annotate the compiler with information about what it is doing when.

This commit is contained in:
Niko Matsakis 2015-12-22 16:35:02 -05:00
parent aa265869ba
commit 005fa14358
29 changed files with 171 additions and 50 deletions

View file

@ -801,7 +801,7 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(sess: &'tcx Session,
time(time_passes,
"rvalue checking",
|| middle::check_rvalues::check_crate(tcx, krate));
|| middle::check_rvalues::check_crate(tcx));
// Avoid overwhelming user with errors if type checking failed.
// I'm not sure how helpful this is, to be honest, but it avoids

View file

@ -204,6 +204,7 @@ impl PpSourceMode {
let annotation = TypedAnnotation {
tcx: tcx,
};
let _ignore = tcx.dep_graph.in_ignore();
f(&annotation,
payload,
&ast_map.forest.krate)