diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-04-30 19:38:06 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-12-25 18:48:42 +0000 |
| commit | 4719cb30367496c90827f05b52f9fb3306aeae11 (patch) | |
| tree | 90128c8062434f2fb1fdc041f07b9b82cd9b175c /compiler/rustc_query_system | |
| parent | 40c8165395cef78f5f8bfadd8802cbda41a4cb00 (diff) | |
| download | rust-4719cb30367496c90827f05b52f9fb3306aeae11.tar.gz rust-4719cb30367496c90827f05b52f9fb3306aeae11.zip | |
Ignore span references from diagnostics.
The diagnostics are replayed at the correct place anyway.
Diffstat (limited to 'compiler/rustc_query_system')
| -rw-r--r-- | compiler/rustc_query_system/src/dep_graph/graph.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/rustc_query_system/src/dep_graph/graph.rs b/compiler/rustc_query_system/src/dep_graph/graph.rs index 52957ee0222..0b1ff5d709f 100644 --- a/compiler/rustc_query_system/src/dep_graph/graph.rs +++ b/compiler/rustc_query_system/src/dep_graph/graph.rs @@ -634,7 +634,7 @@ impl<K: DepKind> DepGraph<K> { if dep_node_debug.borrow().contains_key(&dep_node) { return; } - let debug_str = debug_str_gen(); + let debug_str = self.with_ignore(debug_str_gen); dep_node_debug.borrow_mut().insert(dep_node, debug_str); } @@ -829,7 +829,9 @@ impl<K: DepKind> DepGraph<K> { ); if !side_effects.is_empty() { - self.emit_side_effects(qcx, data, dep_node_index, side_effects); + self.with_query_deserialization(|| { + self.emit_side_effects(qcx, data, dep_node_index, side_effects) + }); } // ... and finally storing a "Green" entry in the color map. |
