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?

Structs

ExtraComments [
Experimental
]

Enums

PassWhere [
Experimental
]

An indication of where we are in the control flow graph. Used for printing extra information in dump_mir

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 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.

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 fn type and the types of its local variables (both user-defined bindings and compiler temporaries).

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
]