Struct rustc_interface::interface::Compiler [−][src]
pub struct Compiler {
pub(crate) sess: Lrc<Session>,
codegen_backend: Lrc<Box<dyn CodegenBackend>>,
pub(crate) input: Input,
pub(crate) input_path: Option<PathBuf>,
pub(crate) output_dir: Option<PathBuf>,
pub(crate) output_file: Option<PathBuf>,
pub(crate) register_lints: Option<Box<dyn Fn(&Session, &mut LintStore) + Send + Sync>>,
pub(crate) override_queries: Option<fn(_: &Session, _: &mut Providers, _: &mut Providers)>,
}
Expand description
Represents a compiler session.
Can be used to run rustc_interface
queries.
Created by passing Config
to run_compiler
.
Fields
sess: Lrc<Session>
codegen_backend: Lrc<Box<dyn CodegenBackend>>
input: Input
input_path: Option<PathBuf>
output_dir: Option<PathBuf>
output_file: Option<PathBuf>
register_lints: Option<Box<dyn Fn(&Session, &mut LintStore) + Send + Sync>>
override_queries: Option<fn(_: &Session, _: &mut Providers, _: &mut Providers)>
Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Compiler
impl !UnwindSafe for Compiler
Blanket Implementations
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 208 bytes