Struct rustc_driver::driver::CompileState
[−]
[src]
pub struct CompileState<'a, 'b, 'ast: 'a, 'tcx: 'b> where 'ast: 'tcx {
pub input: &'a Input,
pub session: &'ast Session,
pub krate: Option<Crate>,
pub cstore: Option<&'a CStore>,
pub crate_name: Option<&'a str>,
pub output_filenames: Option<&'a OutputFilenames>,
pub out_dir: Option<&'a Path>,
pub out_file: Option<&'a Path>,
pub arenas: Option<&'ast CtxtArenas<'ast>>,
pub expanded_crate: Option<&'a Crate>,
pub hir_crate: Option<&'a Crate>,
pub ast_map: Option<&'a Map<'ast>>,
pub resolutions: Option<&'a Resolutions>,
pub mir_map: Option<&'b MirMap<'tcx>>,
pub analysis: Option<&'a CrateAnalysis<'a>>,
pub tcx: Option<TyCtxt<'b, 'tcx, 'tcx>>,
pub trans: Option<&'a CrateTranslation>,
}Unstable (
rustc_private)State that is passed to a callback. What state is available depends on when
during compilation the callback is made. See the various constructor methods
(state_*) in the impl to see which data is provided for any given entry point.
Fields
input: &'a Input
Unstable (
rustc_private)session: &'ast Session
Unstable (
rustc_private)krate: Option<Crate>
Unstable (
rustc_private)cstore: Option<&'a CStore>
Unstable (
rustc_private)crate_name: Option<&'a str>
Unstable (
rustc_private)output_filenames: Option<&'a OutputFilenames>
Unstable (
rustc_private)out_dir: Option<&'a Path>
Unstable (
rustc_private)out_file: Option<&'a Path>
Unstable (
rustc_private)arenas: Option<&'ast CtxtArenas<'ast>>
Unstable (
rustc_private)expanded_crate: Option<&'a Crate>
Unstable (
rustc_private)hir_crate: Option<&'a Crate>
Unstable (
rustc_private)ast_map: Option<&'a Map<'ast>>
Unstable (
rustc_private)resolutions: Option<&'a Resolutions>
Unstable (
rustc_private)mir_map: Option<&'b MirMap<'tcx>>
Unstable (
rustc_private)analysis: Option<&'a CrateAnalysis<'a>>
Unstable (
rustc_private)tcx: Option<TyCtxt<'b, 'tcx, 'tcx>>
Unstable (
rustc_private)trans: Option<&'a CrateTranslation>
Unstable (
rustc_private)