about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/src/base.rs
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
commitaa404c24ddafea428cb86de8f914b129be4a726b (patch)
tree0e3dda9def1c7c8ec7655dce81201f51f0a6e818 /compiler/rustc_codegen_gcc/src/base.rs
parente53404cca68e8220a57339cb3e213fd0d8e99a5f (diff)
downloadrust-aa404c24ddafea428cb86de8f914b129be4a726b.tar.gz
rust-aa404c24ddafea428cb86de8f914b129be4a726b.zip
Make hash_result an Option.
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/base.rs')
-rw-r--r--compiler/rustc_codegen_gcc/src/base.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_gcc/src/base.rs b/compiler/rustc_codegen_gcc/src/base.rs
index 9f96096574f..a3b8d328388 100644
--- a/compiler/rustc_codegen_gcc/src/base.rs
+++ b/compiler/rustc_codegen_gcc/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);