Module rustc_mir::util::pretty [−][src]
🔬 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?
Re-exports
use rustc::hir; |
use rustc::hir::def_id::DefId; |
use rustc::hir::def_id::LOCAL_CRATE; |
use rustc::mir::*; |
use rustc::mir::visit::Visitor; |
use rustc::ty; |
use rustc::ty::TyCtxt; |
use rustc::ty::item_path; |
use rustc_data_structures::fx::FxHashMap; |
use rustc_data_structures::indexed_vec::Idx; |
use std::fmt::Display; |
use std::fs; |
use std::io; |
use std::io::Write; |
use std::path::Path; |
use std::path::PathBuf; |
use super::graphviz::write_mir_fn_graphviz; |
use transform::MirSource; |
Structs
ExtraComments |
[ Experimental ]
|
Enums
PassWhere |
[ Experimental ] An indication of where we are in the control flow graph. Used for printing
extra information in |
Constants
ALIGN |
[ Experimental ] Alignment for lining up comments following MIR statements |
INDENT |
[ Experimental ]
|
Functions
comment |
[ Experimental ]
|
create_dump_file |
[ Experimental ] Attempts to open a file where we should dump a given MIR or other
bit of MIR-related data. Used by |
dump_enabled |
[ Experimental ]
|
dump_matched_mir_node |
[ Experimental ]
|
dump_mir |
[ Experimental ] If the session is properly configured, dumps a human-readable representation of the mir into: |
dump_mir_def_ids |
[ Experimental ]
|
dump_path |
[ Experimental ] Returns the path to the filename where we should dump a given MIR. Also used by other bits of code (e.g., NLL inference) that dump graphviz data or other things. |
write_basic_block |
[ Experimental ] Write out a human-readable textual representation for the given basic block. |
write_extra |
[ Experimental ] After we print the main statement, we sometimes dump extra information. There's often a lot of little things "nuzzled up" in a statement. |
write_mir_fn |
[ Experimental ]
|
write_mir_intro |
[ Experimental ] Write out a human-readable textual representation of the MIR's |
write_mir_pretty |
[ Experimental ] Write out a human-readable textual representation for the given MIR. |
write_mir_sig |
[ Experimental ]
|
write_scope_tree |
[ Experimental ] Prints user-defined variables in a scope tree. |
write_temp_decls |
[ Experimental ]
|