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,
}Expand description
Build a standard library for the given target using the given compiler.
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: boolWhen 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: boolImplementations§
Source§impl Std
impl Std
pub fn new(compiler: Compiler, target: TargetSelection) -> Self
pub fn force_recompile(self, force_recompile: bool) -> Self
pub fn is_for_mir_opt_tests(self, is_for_mir_opt_tests: bool) -> Self
pub fn extra_rust_args(self, 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§const DEFAULT: bool = true
const DEFAULT: bool = true
describe
macro in Builder::get_step_descriptions. Read moreSource§fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_>
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_>
Step should be run when given specific paths (e.g., x build $path).Source§fn make_run(run: RunConfig<'_>)
fn make_run(run: RunConfig<'_>)
Step handler when not triggered indirectly by other Steps using Builder::ensure.
For example, ./x.py test bootstrap runs this for test::Bootstrap. Similarly, ./x.py test runs it for every step
that is listed by the describe macro in Builder::get_step_descriptions.Source§fn metadata(&self) -> Option<StepMetadata>
fn metadata(&self) -> Option<StepMetadata>
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,
§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