Module rustc_driver::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?

The various pretty print routines.

Re-exports

pub use self::UserIdentifiedItem::*;
pub use self::PpSourceMode::*;
pub use self::PpMode::*;
use self::NodesMatchingUII::*;
use abort_on_err;
use driver;
use rustc::ty;
use rustc::ty::TyCtxt;
use rustc::ty::Resolutions;
use rustc::ty::AllArenas;
use rustc::cfg;
use rustc::cfg::graphviz::LabelledCFG;
use rustc::middle::cstore::CrateStore;
use rustc::session::Session;
use rustc::session::config::Input;
use rustc::session::config::OutputFilenames;
use rustc_borrowck as borrowck;
use rustc_borrowck::graphviz as borrowck_dot;
use rustc_mir::util::write_mir_pretty;
use rustc_mir::util::write_mir_graphviz;
use syntax::ast;
use syntax::ast::BlockCheckMode;
use syntax::fold;
use syntax::fold::Folder;
use syntax::print::pprust;
use syntax::print::pprust::PrintState;
use syntax::ptr::P;
use syntax::util::small_vector::SmallVector;
use syntax_pos;
use syntax_pos::FileName;
use graphviz as dot;
use std::cell::Cell;
use std::fs::File;
use std::io;
use std::io::Write;
use std::option;
use std::path::Path;
use std::str::FromStr;
use std::mem;
use rustc::hir::map as hir_map;
use rustc::hir::map::blocks;
use rustc::hir;
use rustc::hir::print as pprust_hir;

Structs

HygieneAnnotation [
Experimental
]
IdentifiedAnnotation [
Experimental
]
NoAnn [
Experimental
]
ReplaceBodyWithLoop [
Experimental
]
TypedAnnotation [
Experimental
]

Enums

NodesMatchingUII [
Experimental
]
PpFlowGraphMode [
Experimental
]
PpMode [
Experimental
]
PpSourceMode [
Experimental
]
UserIdentifiedItem [
Experimental
]

Traits

HirPrinterSupport [
Experimental
]
PrinterSupport [
Experimental
]

Functions

fold_crate [
Experimental
]
gather_flowgraph_variants [
Experimental
]
get_source [
Experimental
]
parse_pretty [
Experimental
]
print_after_hir_lowering [
Experimental
]
print_after_parsing [
Experimental
]
print_flowgraph [
Experimental
]
print_with_analysis [
Experimental
]
write_output [
Experimental
]