about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2021-10-16 22:31:48 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2021-10-20 18:29:18 +0200
commitce9faca6310bab58fd145ed95e796eb84d287789 (patch)
tree3776ccaaa57bc9e87e2545c07988a058b6d46fcb
parent98f0580cdbf23905aea830201f75ec1dc94838c7 (diff)
downloadrust-ce9faca6310bab58fd145ed95e796eb84d287789.tar.gz
rust-ce9faca6310bab58fd145ed95e796eb84d287789.zip
Make hash_result an Option.
-rw-r--r--src/base.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/base.rs b/src/base.rs
index 9f96096574f..a3b8d328388 100644
--- a/src/base.rs
+++ b/src/base.rs
@@ -59,7 +59,13 @@ pub fn compile_codegen_unit<'tcx>(tcx: TyCtxt<'tcx>, cgu_name: Symbol) -> (Modul
     let start_time = Instant::now();
 
     let dep_node = tcx.codegen_unit(cgu_name).codegen_dep_node(tcx);
-    let (module, _) = tcx.dep_graph.with_task(dep_node, tcx, cgu_name, module_codegen, dep_graph::hash_result);
+    let (module, _) = tcx.dep_graph.with_task(
+        dep_node,
+        tcx,
+        cgu_name,
+        module_codegen,
+        Some(dep_graph::hash_result),
+    );
     let time_to_codegen = start_time.elapsed();
     drop(prof_timer);