pub struct Std {
pub target: TargetSelection,
pub compiler: Compiler,
crates: Vec<String>,
force_recompile: bool,
extra_rust_args: &'static [&'static str],
is_for_mir_opt_tests: bool,
}
Fields§
§target: TargetSelection
§compiler: Compiler
§crates: Vec<String>
Whether to build only a subset of crates in the standard library.
This shouldn’t be used from other steps; see the comment on Rustc
.
force_recompile: bool
When using download-rustc, we need to use a new build of std
for running unit tests of Std itself,
but we need to use the downloaded copy of std for linking to rustdoc. Allow this to be overridden by builder.ensure
from other steps.
extra_rust_args: &'static [&'static str]
§is_for_mir_opt_tests: bool
Implementations§
source§impl Std
impl Std
pub fn new(compiler: Compiler, target: TargetSelection) -> Self
pub fn force_recompile(compiler: Compiler, target: TargetSelection) -> Self
pub fn new_for_mir_opt_tests( compiler: Compiler, target: TargetSelection, ) -> Self
pub fn new_with_extra_rust_args( compiler: Compiler, target: TargetSelection, extra_rust_args: &'static [&'static str], ) -> Self
fn copy_extra_objects( &self, builder: &Builder<'_>, compiler: &Compiler, target: TargetSelection, ) -> Vec<(PathBuf, DependencyType)>
Trait Implementations§
source§impl Ord for Std
impl Ord for Std
source§impl PartialOrd for Std
impl PartialOrd for Std
source§impl Step for Std
impl Step for Std
source§fn run(self, builder: &Builder<'_>)
fn run(self, builder: &Builder<'_>)
Builds the standard library.
This will build the standard library 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§type Output = ()
type Output = ()
PathBuf
when directories are created or to return a Compiler
once
it’s been assembled.source§const DEFAULT: bool = true
const DEFAULT: bool = true
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.source§fn make_run(run: RunConfig<'_>)
fn make_run(run: RunConfig<'_>)
source§const ONLY_HOSTS: bool = false
const ONLY_HOSTS: bool = false
impl Eq for Std
impl StructuralPartialEq for Std
Auto Trait Implementations§
impl Freeze for Std
impl RefUnwindSafe for Std
impl Send for Std
impl Sync for Std
impl Unpin for Std
impl UnwindSafe for Std
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: 120 bytes