Enum rustc_typeck::check::Diverges[][src]

pub enum Diverges {
    Maybe,
    Always,
    WarnedAlways,
}
🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Tracks whether executing a node may exit normally (versus return/break/panic, which "diverge", leaving dead code in their wake). Tracked semi-automatically (through type variables marked as diverging), with some manual adjustments for control-flow primitives (approximating a CFG).

Variants

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Potentially unknown, some cases converge, others require a CFG to determine them.

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Definitely known to diverge and therefore not reach the next sibling or its parent.

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Same as Always but with a reachability warning already emitted

Methods

impl Diverges
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Trait Implementations

impl Copy for Diverges
[src]

impl Clone for Diverges
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Diverges
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Diverges
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Diverges
[src]

impl PartialOrd for Diverges
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for Diverges
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl BitAnd for Diverges
[src]

The resulting type after applying the & operator.

Performs the & operation.

impl BitOr for Diverges
[src]

The resulting type after applying the | operator.

Performs the | operation.

impl BitAndAssign for Diverges
[src]

Performs the &= operation.

impl BitOrAssign for Diverges
[src]

Performs the |= operation.

Auto Trait Implementations

impl Send for Diverges

impl Sync for Diverges