about summary refs log tree commit diff
path: root/compiler/rustc_query_system/src/dep_graph
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2023-02-16 19:29:11 +0100
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2024-01-20 13:43:05 +0100
commit862011e1cad78b956a2047e2a89e83ad9743c8dd (patch)
treec9f8e78455ffad8b48429ebab2006e5da95a6f5e /compiler/rustc_query_system/src/dep_graph
parent6ae4cfbbb080cafea7f6be48ce47678ee057352c (diff)
Avoid code generation for ThinVec<Diagnostic>'s destructor in the query system
Diffstat (limited to 'compiler/rustc_query_system/src/dep_graph')
-rw-r--r--compiler/rustc_query_system/src/dep_graph/graph.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_query_system/src/dep_graph/graph.rs b/compiler/rustc_query_system/src/dep_graph/graph.rs
index 1f09de0ed70..0f57688063e 100644
--- a/compiler/rustc_query_system/src/dep_graph/graph.rs
+++ b/compiler/rustc_query_system/src/dep_graph/graph.rs
@@ -891,7 +891,7 @@ impl<D: Deps> DepGraphData<D> {
                       insertion for {dep_node:?}"
         );
 
-        if !side_effects.is_empty() {
+        if side_effects.maybe_any() {
             qcx.dep_context().dep_graph().with_query_deserialization(|| {
                 self.emit_side_effects(qcx, dep_node_index, side_effects)
             });