Struct rustdoc::interface::Compiler [−][src]
pub struct Compiler {
pub(crate) sess: Rc<Session>,
codegen_backend: Rc<Box<dyn CodegenBackend + 'static, Global>>,
pub(crate) input: Input,
pub(crate) input_path: Option<PathBuf>,
pub(crate) output_dir: Option<PathBuf>,
pub(crate) output_file: Option<PathBuf>,
pub(crate) temps_dir: Option<PathBuf>,
pub(crate) register_lints: Option<Box<dyn Fn(&Session, &mut LintStore) + Send + Sync + 'static, Global>>,
pub(crate) override_queries: Option<fn(&Session, &mut Providers, &mut ExternProviders)>,
}Expand description
Represents a compiler session.
Can be used to run rustc_interface queries.
Created by passing Config to run_compiler.
Fields
sess: Rc<Session>codegen_backend: Rc<Box<dyn CodegenBackend + 'static, Global>>input: Inputinput_path: Option<PathBuf>output_dir: Option<PathBuf>output_file: Option<PathBuf>temps_dir: Option<PathBuf>register_lints: Option<Box<dyn Fn(&Session, &mut LintStore) + Send + Sync + 'static, Global>>override_queries: Option<fn(&Session, &mut Providers, &mut ExternProviders)>Auto Trait Implementations
impl !RefUnwindSafe for Compiler
impl !UnwindSafe for Compiler
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
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: 232 bytes