Expand description
Implementation of compiling the compiler and standard library, in “check”-based modes.
Re-exports§
use std::fs;🔒use std::path::Path;🔒use std::path::PathBuf;🔒use crate::core::backend::CodegenBackendKind;🔒use crate::core::build_steps::compile::ArtifactKeepMode;🔒use crate::core::build_steps::compile::add_to_sysroot;🔒use crate::core::build_steps::compile::run_cargo;🔒use crate::core::build_steps::compile::rustc_cargo;🔒use crate::core::build_steps::compile::std_cargo;🔒use crate::core::build_steps::compile::std_crates_for_make_run;🔒use crate::core::build_steps::tool;🔒use crate::core::build_steps::tool::SourceType;🔒use crate::core::build_steps::tool::TEST_FLOAT_PARSE_ALLOW_FEATURES;🔒use crate::core::build_steps::tool::ToolTargetBuildMode;🔒use crate::core::build_steps::tool::get_tool_target_compiler;🔒use crate::core::build_steps::tool::prepare_tool_cargo;🔒use crate::core::builder;🔒use crate::core::builder::Alias;🔒use crate::core::builder::Builder;🔒use crate::core::builder::Cargo;🔒use crate::core::builder::CommandLineStep;🔒use crate::core::builder::Kind;🔒use crate::core::builder::RunConfig;🔒use crate::core::builder::ShouldRun;🔒use crate::core::builder::Step;🔒use crate::core::builder::StepMetadata;🔒use crate::core::builder::crate_description;🔒use crate::core::compiler::Compiler;🔒use crate::core::config::TargetSelection;🔒use crate::core::session::Mode;🔒use crate::utils::build_stamp;🔒use crate::utils::build_stamp::BuildStamp;🔒use crate::utils::helpers::t;🔒
Macros§
Structs§
- Bootstrap
- Bump
Stage0 - Cargo
Miri - Clippy
- Compiler
ForCheck - Represents a compiler that can check something.
- Compiletest
- Coverage
Dump - Cranelift
Codegen Backend - Check the Cranelift codegen backend.
- Features
Status Dump - GccCodegen
Backend - Check the GCC codegen backend.
- Linkchecker
- Miri
- Miropt
Test Tools - Prepare
Rustc 🔒Rmeta Sysroot - Checks rustc using the given
build_compilerfor the giventarget, and produces a sysroot in the build directory that stores the generated .rmeta files. - Prepare
StdRmeta 🔒Sysroot - Checks std using the given
build_compilerfor the giventarget, and produces a sysroot in the build directory that stores the generated .rmeta files. - Rmeta
Sysroot 🔒 - Represents a proof that rustc was checked. Contains directories with .rmeta files generated by checking rustc for a specific target.
- RunMake
Support - Rust
Analyzer - Rustc
- Checks rustc using
build_compiler. - Rustdoc
- Rustdoc
GuiTest - Rustfmt
- Std
- Test
Float Parse - Tidy
Enums§
- Check
Kind 🔒 - Allows individual check-step instances to keep track of whether they
represent
cargo checkorcargo fix, independently ofBuilder::kind.
Functions§
- prepare_
compiler_ for_ check - Prepares a compiler that will check something with the given
mode. - prepare_
std 🔒 - Prepare the standard library for checking something (that requires stdlib) using
build_compiler. - run_
tool_ 🔒check_ step - Used by the implementation of
Step::runintool_check_step!.