pub struct Rustc {
pub target: TargetSelection,
pub compiler: Compiler,
crates: Vec<String>,
}
Fields§
§target: TargetSelection
§compiler: Compiler
The previous compiler used to compile this compiler.
crates: Vec<String>
Whether to build a subset of crates, rather than the whole compiler.
This should only be requested by the user, not used within bootstrap itself. Using it within bootstrap can lead to confusing situation where lints are replayed in two different steps.
Implementations§
Trait Implementations§
source§impl Ord for Rustc
impl Ord for Rustc
source§impl PartialOrd for Rustc
impl PartialOrd for Rustc
source§impl Step for Rustc
impl Step for Rustc
source§type Output = u32
type Output = u32
We return the stage of the “actual” compiler (not the uplifted one).
By “actual” we refer to the uplifting logic where we may not compile the requested stage; instead, we uplift it from the previous stages. Which can lead to bootstrap failures in specific situations where we request stage X from other steps. However we may end up uplifting it from stage Y, causing the other stage to fail when attempting to link with stage X which was never actually built.
source§fn run(self, builder: &Builder<'_>) -> u32
fn run(self, builder: &Builder<'_>) -> u32
Builds the compiler.
This will build the compiler for a particular stage of the build using
the compiler
targeting the target
architecture. The artifacts
created will also be linked into the sysroot directory.
source§const ONLY_HOSTS: bool = true
const ONLY_HOSTS: bool = true
source§const DEFAULT: bool = false
const DEFAULT: bool = false
true
here can still be overwritten by should_run
calling default_condition
.source§fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_>
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_>
make_run
is called
directly.impl Eq for Rustc
impl StructuralPartialEq for Rustc
Auto Trait Implementations§
impl Freeze for Rustc
impl RefUnwindSafe for Rustc
impl Send for Rustc
impl Sync for Rustc
impl Unpin for Rustc
impl UnwindSafe for Rustc
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§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: 96 bytes