Function rustc_mir::util::pretty::create_dump_file [−][src]
fn create_dump_file(
tcx: TyCtxt,
extension: &str,
pass_num: Option<&Display>,
pass_name: &str,
disambiguator: &Display,
source: MirSource
) -> Result<File>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Attempts to open a file where we should dump a given MIR or other
bit of MIR-related data. Used by mir-dump
, but also by other
bits of code (e.g., NLL inference) that dump graphviz data or
other things, and hence takes the extension as an argument.