Ignore span references from diagnostics.
The diagnostics are replayed at the correct place anyway.
This commit is contained in:
parent
40c8165395
commit
4719cb3036
3 changed files with 65 additions and 50 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue