pub struct CompilerForCheck {
build_compiler: Compiler,
rustc_rmeta_sysroot: Option<RmetaSysroot>,
std_rmeta_sysroot: Option<RmetaSysroot>,
}
Expand description
Represents a compiler that can check something.
If the compiler was created for Mode::ToolRustcPrivate
or Mode::Codegen
, it will also contain
.rmeta artifacts from rustc that was already checked using build_compiler
.
All steps that use this struct in a “general way” (i.e. they don’t know exactly what kind of
thing is being built) should call configure_cargo
to ensure that the rmeta artifacts are
properly linked, if present.
Fields§
§build_compiler: Compiler
§rustc_rmeta_sysroot: Option<RmetaSysroot>
§std_rmeta_sysroot: Option<RmetaSysroot>
Implementations§
Source§impl CompilerForCheck
impl CompilerForCheck
pub fn build_compiler(&self) -> Compiler
Sourcepub fn configure_cargo(&self, cargo: &mut Cargo)
pub fn configure_cargo(&self, cargo: &mut Cargo)
If there are any rustc rmeta artifacts available, configure the Cargo invocation so that the artifact being built can find them.
Trait Implementations§
Source§impl Clone for CompilerForCheck
impl Clone for CompilerForCheck
Source§fn clone(&self) -> CompilerForCheck
fn clone(&self) -> CompilerForCheck
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CompilerForCheck
impl Debug for CompilerForCheck
Source§impl Hash for CompilerForCheck
impl Hash for CompilerForCheck
Source§impl PartialEq for CompilerForCheck
impl PartialEq for CompilerForCheck
impl Eq for CompilerForCheck
impl StructuralPartialEq for CompilerForCheck
Auto Trait Implementations§
impl Freeze for CompilerForCheck
impl RefUnwindSafe for CompilerForCheck
impl Send for CompilerForCheck
impl Sync for CompilerForCheck
impl Unpin for CompilerForCheck
impl UnwindSafe for CompilerForCheck
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Pointable for T
impl<T> Pointable for T
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: 136 bytes