pub struct StdSemverCheck {
build_compiler: Compiler,
target: TargetSelection,
commit: String,
}Expand description
Run cargo-semver-checks on the standard library and compare its API versus a previous baseline, using rustdoc JSON data.
The baseline commit can be configured using rust.stdlib-semver-baseline.
If unset, the first upstream parent commit will be used.
Fails if a semver-breaking change is detected.
If you want to allow a breaking change in a given PR, or if cargo-semver-checks has a false
positive, modify the src/bootstrap/stdlib-semver-check-stamp file.
Fields§
§build_compiler: Compiler§target: TargetSelection§commit: StringThe baseline commit that we are comparing the local stdlib API against.
Trait Implementations§
Source§impl Clone for StdSemverCheck
impl Clone for StdSemverCheck
Source§fn clone(&self) -> StdSemverCheck
fn clone(&self) -> StdSemverCheck
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl CommandLineStep for StdSemverCheck
impl CommandLineStep for StdSemverCheck
Source§fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_>
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_>
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§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 metadata(&self) -> Option<StepMetadata>
fn metadata(&self) -> Option<StepMetadata>
Step::metadata.Source§impl Debug for StdSemverCheck
impl Debug for StdSemverCheck
impl Eq for StdSemverCheck
Source§impl Hash for StdSemverCheck
impl Hash for StdSemverCheck
Source§impl PartialEq for StdSemverCheck
impl PartialEq for StdSemverCheck
impl StructuralPartialEq for StdSemverCheck
Auto Trait Implementations§
impl Freeze for StdSemverCheck
impl RefUnwindSafe for StdSemverCheck
impl Send for StdSemverCheck
impl Sync for StdSemverCheck
impl Unpin for StdSemverCheck
impl UnsafeUnpin for StdSemverCheck
impl UnwindSafe for StdSemverCheck
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
Source§impl<S> Step for Swhere
S: CommandLineStep,
impl<S> Step for Swhere
S: CommandLineStep,
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: 96 bytes