diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-03-02 22:38:49 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-03-30 18:09:59 +0200 |
| commit | 6bfaf3a9cb7b601e3c4ed2e661ed213b8bc4d639 (patch) | |
| tree | 31098236937df6c67a6bcddd15c0759c96debf3c /compiler/rustc_query_impl | |
| parent | 16156fb2787f745e57504197bd7fe38b69c6cbea (diff) | |
| download | rust-6bfaf3a9cb7b601e3c4ed2e661ed213b8bc4d639.tar.gz rust-6bfaf3a9cb7b601e3c4ed2e661ed213b8bc4d639.zip | |
Stream the dep-graph to a file.
Diffstat (limited to 'compiler/rustc_query_impl')
| -rw-r--r-- | compiler/rustc_query_impl/src/plumbing.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_query_impl/src/plumbing.rs b/compiler/rustc_query_impl/src/plumbing.rs index d958b3c18cd..4194b28dc7d 100644 --- a/compiler/rustc_query_impl/src/plumbing.rs +++ b/compiler/rustc_query_impl/src/plumbing.rs @@ -477,10 +477,7 @@ macro_rules! define_queries { return } - debug_assert!(tcx.dep_graph - .node_color(dep_node) - .map(|c| c.is_green()) - .unwrap_or(false)); + debug_assert!(tcx.dep_graph.is_green(dep_node)); let key = recover(*tcx, dep_node).unwrap_or_else(|| panic!("Failed to recover key for {:?} with hash {}", dep_node, dep_node.hash)); if queries::$name::cache_on_disk(tcx, &key, None) { |
