File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -552,6 +552,8 @@ fn codegen_cgu_content(
552
552
let dep_node = mono_item. codegen_dep_node ( tcx) ;
553
553
let mut hasher = StableHasher :: new ( ) ;
554
554
tcx. with_stable_hashing_context ( |mut hcx| {
555
+ // Different crates may use different symbol name mangling for the same private function
556
+ tcx. stable_crate_id ( LOCAL_CRATE ) . hash_stable ( & mut hcx, & mut hasher) ;
555
557
instance. hash_stable ( & mut hcx, & mut hasher) ;
556
558
} ) ;
557
559
let cache_key: Fingerprint = hasher. finish ( ) ;
@@ -594,6 +596,8 @@ fn codegen_cgu_content(
594
596
595
597
let mut hasher = StableHasher :: new ( ) ;
596
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) ;
597
601
instance. hash_stable ( & mut hcx, & mut hasher) ;
598
602
} ) ;
599
603
let cache_key: Fingerprint = hasher. finish ( ) ;
You can’t perform that action at this time.
0 commit comments