pub struct CompilerWithTools {
build_compiler: Compiler,
target: TargetSelection,
stage: u32,
}Expand description
Generate the combined compiler + tools docs for a given toolchain. This contains both the compiler docs, docs of rustc_private tools (miri, clippy, etc.), cargo and also some bootstrap related tools (bootstrap itself, compiletest, tidy, etc.).
It gets hosted at https://doc.rust-lang.org/nightly/nightly-rustc/index.html.
Compiler documentation is distributed separately, so we make sure
we do not merge it with the other documentation from std, test and
proc_macros. This is largely just a wrapper around cargo doc.
Returns a path to a directory with the generated documentation.
Fields§
§build_compiler: Compiler§target: TargetSelection§stage: u32Implementations§
Source§impl CompilerWithTools
impl CompilerWithTools
Sourcepub(crate) fn for_stage(
builder: &Builder<'_>,
stage: u32,
target: TargetSelection,
) -> Self
pub(crate) fn for_stage( builder: &Builder<'_>, stage: u32, target: TargetSelection, ) -> Self
Document stage compiler for the given target.
Trait Implementations§
Source§impl Clone for CompilerWithTools
impl Clone for CompilerWithTools
Source§impl CommandLineStep for CompilerWithTools
impl CommandLineStep for CompilerWithTools
Source§const IS_HOST: bool = true
const IS_HOST: bool = true
run.target passed to the make_run function of
this Step will be determined based on the --host flag.
If this value is false, then they will be determined based on the --target flag. Read moreSource§fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_>
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_>
Source§fn is_default_step(builder: &Builder<'_>) -> bool
fn is_default_step(builder: &Builder<'_>) -> bool
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>
Step::metadata.Source§impl Debug for CompilerWithTools
impl Debug for CompilerWithTools
impl Eq for CompilerWithTools
Source§impl Hash for CompilerWithTools
impl Hash for CompilerWithTools
Source§impl PartialEq for CompilerWithTools
impl PartialEq for CompilerWithTools
impl StructuralPartialEq for CompilerWithTools
Auto Trait Implementations§
impl Freeze for CompilerWithTools
impl RefUnwindSafe for CompilerWithTools
impl Send for CompilerWithTools
impl Sync for CompilerWithTools
impl Unpin for CompilerWithTools
impl UnsafeUnpin for CompilerWithTools
impl UnwindSafe for CompilerWithTools
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: 80 bytes