flowistry_pdg_construction::body_cache

Function intermediate_out_dir

Source
pub fn intermediate_out_dir(tcx: TyCtxt<'_>, ext: &str) -> PathBuf
Expand description

Create the name of the file in which to store intermediate artifacts.

HACK(Justus): TyCtxt::output_filenames returns a file stem of lib<crate_name>-<hash>, whereas OutputFiles::with_extension returns a file stem of <crate_name>-<hash>. I haven’t found a clean way to get the same name in both places, so i just assume that these two will always have this relation and prepend the "lib" here.