File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -230,10 +230,11 @@ impl CodegenBackend for GotocCodegenBackend {
230230 let mut items: HashSet < _ > = HashSet :: with_capacity ( harnesses. len ( ) ) ;
231231 items. extend ( harnesses) ;
232232 let harnesses = filter_crate_items ( tcx, |_, instance| {
233- items. contains ( & instance. name ( ) . intern ( ) )
233+ items. contains ( & instance. mangled_name ( ) . intern ( ) )
234234 } ) ;
235235 for harness in harnesses {
236- let model_path = queries. harness_model_path ( & harness. name ( ) ) . unwrap ( ) ;
236+ let model_path =
237+ queries. harness_model_path ( & harness. mangled_name ( ) ) . unwrap ( ) ;
237238 let ( gcx, mono_items) = self . codegen_items (
238239 tcx,
239240 & [ MonoItem :: Fn ( harness) ] ,
Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ impl KaniCompiler {
285285 let all_harnesses = harnesses
286286 . into_iter ( )
287287 . map ( |harness| {
288- let def_path = harness. name ( ) . intern ( ) ;
288+ let def_path = harness. mangled_name ( ) . intern ( ) ;
289289 let metadata = gen_proof_metadata ( tcx, harness, & base_filename) ;
290290 let stub_map = harness_stub_map ( tcx, harness, & metadata) ;
291291 ( def_path, HarnessInfo { metadata, stub_map } )
You can’t perform that action at this time.
0 commit comments