pub struct SetupFailedTestsFile;Expand description
This step is run as a dependency of most testing steps.
Upon running, a file is created for failed tests to be recorded in if --record is passed on
the command line.
This step is the only way to get access to a token type called RecordFailedTests.
Having this token type signifies the fact that a file was created to store failed tests in,
and is required to create a Renderer, the type that renders the outputs of tests.
If --rerun isn’t passed, or we’re in dry-run mode, running this step is a no-op,
and the RecordFailedTest type doesn’t (need to) signify anything.
Trait Implementations§
Source§impl Clone for SetupFailedTestsFile
impl Clone for SetupFailedTestsFile
Source§fn clone(&self) -> SetupFailedTestsFile
fn clone(&self) -> SetupFailedTestsFile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SetupFailedTestsFile
Source§impl Debug for SetupFailedTestsFile
impl Debug for SetupFailedTestsFile
impl Eq for SetupFailedTestsFile
Source§impl Hash for SetupFailedTestsFile
impl Hash for SetupFailedTestsFile
Source§impl PartialEq for SetupFailedTestsFile
impl PartialEq for SetupFailedTestsFile
Source§fn eq(&self, other: &SetupFailedTestsFile) -> bool
fn eq(&self, other: &SetupFailedTestsFile) -> bool
self and other values to be equal, and is used by ==.Source§impl Step for SetupFailedTestsFile
impl Step for SetupFailedTestsFile
Source§type Output = RecordFailedTests
type Output = RecordFailedTests
Step::run.Source§fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_>
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_>
Source§fn run(self, builder: &Builder<'_>) -> Self::Output
fn run(self, builder: &Builder<'_>) -> Self::Output
Step logic. Read moreSource§const IS_HOST: bool = false
const IS_HOST: bool = false
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 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>
impl StructuralPartialEq for SetupFailedTestsFile
Auto Trait Implementations§
impl Freeze for SetupFailedTestsFile
impl RefUnwindSafe for SetupFailedTestsFile
impl Send for SetupFailedTestsFile
impl Sync for SetupFailedTestsFile
impl Unpin for SetupFailedTestsFile
impl UnsafeUnpin for SetupFailedTestsFile
impl UnwindSafe for SetupFailedTestsFile
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: 0 bytes