Can you serialize tcx.crate_hash(def_id.krate)
combined with the tcx.def_path(*def_id).to_string_no_crate_verbose()
you are already serializing? CrateNum
is a number referencing a crate with a specific SVH (tcx.crate_hash
). This mapping is different for each compilation session.
1 Like