File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -567,8 +567,8 @@ fn codegen_cgu_content(
567
567
let ( ser_module, _) = tcx. dep_graph . with_task (
568
568
dep_node,
569
569
tcx,
570
- instance,
571
- |tcx, instance| {
570
+ ( instance, cache_key ) ,
571
+ |tcx, ( instance, cache_key ) | {
572
572
let mut ser_module =
573
573
SerializableModule :: new ( crate :: build_isa ( tcx. sess , false ) ) ;
574
574
let codegened_function = crate :: base:: codegen_fn (
@@ -594,14 +594,6 @@ fn codegen_cgu_content(
594
594
) ;
595
595
ser_module. add_global_asm ( & global_asm) ;
596
596
597
- let mut hasher = StableHasher :: new ( ) ;
598
- tcx. with_stable_hashing_context ( |mut hcx| {
599
- // Different crates may use different symbol name mangling for the same private function
600
- tcx. stable_crate_id ( LOCAL_CRATE ) . hash_stable ( & mut hcx, & mut hasher) ;
601
- instance. hash_stable ( & mut hcx, & mut hasher) ;
602
- } ) ;
603
- let cache_key: Fingerprint = hasher. finish ( ) ;
604
-
605
597
let data = ser_module. serialize ( ) ;
606
598
FileCache . insert ( & cache_key. to_le_bytes ( ) , data) ;
607
599
You can’t perform that action at this time.
0 commit comments