Address review.
This commit is contained in:
@@ -391,8 +391,6 @@ impl DirtyCleanVisitor<'tcx> {
|
||||
fn assert_clean(&self, item_span: Span, dep_node: DepNode) {
|
||||
debug!("assert_clean({:?})", dep_node);
|
||||
|
||||
// if the node wasn't previously evaluated and now is (or vice versa),
|
||||
// then the node isn't actually clean or dirty.
|
||||
if self.tcx.dep_graph.is_red(&dep_node) {
|
||||
let dep_node_str = self.dep_node_str(&dep_node);
|
||||
self.tcx
|
||||
|
||||
@@ -34,10 +34,8 @@ pub fn save_dep_graph(tcx: TyCtxt<'_>) {
|
||||
let dep_graph_path = dep_graph_path(sess);
|
||||
let staging_dep_graph_path = staging_dep_graph_path(sess);
|
||||
|
||||
join(
|
||||
|| sess.time("assert_dep_graph", || crate::assert_dep_graph(tcx)),
|
||||
|| sess.time("check_dirty_clean", || dirty_clean::check_dirty_clean_annotations(tcx)),
|
||||
);
|
||||
sess.time("assert_dep_graph", || crate::assert_dep_graph(tcx));
|
||||
sess.time("check_dirty_clean", || dirty_clean::check_dirty_clean_annotations(tcx));
|
||||
|
||||
if sess.opts.debugging_opts.incremental_info {
|
||||
tcx.dep_graph.print_incremental_info()
|
||||
|
||||
Reference in New Issue
Block a user