incr.comp.: Add more output to -Z incremental-info.

This commit is contained in:
Michael Woerister 2016-11-30 17:33:52 -05:00
parent 5db4826410
commit 29a6ffa401
5 changed files with 44 additions and 15 deletions

View file

@ -1981,6 +1981,11 @@ fn trans_reuse_previous_work_products(tcx: TyCtxt,
debug!("trans_reuse_previous_work_products: reusing {:?}", work_product);
return Some(work_product);
} else {
if tcx.sess.opts.debugging_opts.incremental_info {
println!("incremental: CGU `{}` invalidated because of \
changed partitioning hash.",
cgu.name());
}
debug!("trans_reuse_previous_work_products: \
not reusing {:?} because hash changed to {:?}",
work_product, hash);