We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
contains
task_deps.reads
1 parent 8392220 commit cc69b42Copy full SHA for cc69b42
compiler/rustc_query_system/src/dep_graph/graph.rs
@@ -484,7 +484,7 @@ impl<D: Deps> DepGraph<D> {
484
// As long as we only have a low number of reads we can avoid doing a hash
485
// insert and potentially allocating/reallocating the hashmap
486
let new_read = if task_deps.reads.len() < EdgesVec::INLINE_CAPACITY {
487
- task_deps.reads.iter().all(|other| *other != dep_node_index)
+ !task_deps.reads.contains(&dep_node_index)
488
} else {
489
task_deps.read_set.insert(dep_node_index)
490
};
0 commit comments