Skip to main content

StandardViolation

Enum StandardViolation 

Source
pub enum StandardViolation {
    MsvcSpelling {
        target: String,
        language: &'static str,
        standard: &'static str,
        object: Utf8PathBuf,
    },
    MsvcGnuExtensions {
        target: String,
        object: Utf8PathBuf,
    },
    FlagConflict {
        conflict: StandardFlagConflict,
        object: Utf8PathBuf,
    },
    InterfaceIncompatibility {
        consumer: String,
        dependency: String,
        language: &'static str,
        consumer_standard: &'static str,
        required: &'static str,
        requirement_source: &'static str,
        object: Utf8PathBuf,
    },
}
Expand description

One standards problem recorded against a planned compile. Each variant carries the offending compile’s object path so the cabin check rewrite can prune violations with the same path filter as the compiles they belong to.

Variants§

§

MsvcSpelling

An MSVC-dialect compile whose standard cl.exe has no stable /std: flag - the planner cannot lower it (its compile-commands entry is omitted).

Fields

§target: String

package:target of the offending compile.

§language: &'static str

Human label of the source language (C / C++).

§standard: &'static str

Canonical spelling of the offending standard.

§object: Utf8PathBuf

Object path of the offending compile.

§

MsvcGnuExtensions

An MSVC-dialect compile whose target enables gnu-extensions - cl.exe has no GNU dialect mode, so the planner cannot honor the flag and must not silently ignore it (its compile-commands entry is omitted).

Fields

§target: String

package:target of the offending compile.

§object: Utf8PathBuf

Object path of the offending compile.

§

FlagConflict

A compile that carries both a first-class standard declaration and an explicit -std= / /std: token in its manifest-derived flag list - the documented escape-hatch ambiguity, scoped to compiles the declaration covers.

Fields

§object: Utf8PathBuf

Object path of the offending compile.

§

InterfaceIncompatibility

A consuming compile whose effective implementation standard is below a reachable library-like dependency’s interface requirement for the same language. Recorded against the consumer’s compile so the cabin check rewrite prunes the incompatibility together with the compiles it protects - a dependency-internal incompatibility never gates a check that only compiles the selected packages’ own translation units.

Fields

§consumer: String
§dependency: String
§language: &'static str
§consumer_standard: &'static str
§required: &'static str
§requirement_source: &'static str
§object: Utf8PathBuf

Object path of one of the consumer’s compiles of the language (every object of a target shares the same per-package prefix the check filter tests).

Implementations§

Source§

impl StandardViolation

Source

pub fn object(&self) -> &Utf8PathBuf

Object path of the offending compile, for the check rewrite’s path filter.

Trait Implementations§

Source§

impl Clone for StandardViolation

Source§

fn clone(&self) -> StandardViolation

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StandardViolation

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for StandardViolation

Source§

impl PartialEq for StandardViolation

Source§

fn eq(&self, other: &StandardViolation) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for StandardViolation

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V