AddCallGuards in rustc_mir_transform::add_call_guards - Rust (original) (raw)

Enum AddCallGuards

Source

pub(crate) enum AddCallGuards {
    AllCallEdges,
    CriticalCallEdges,
}

§

§

Source§

Source§

Source§

Returns true if this pass must be run (i.e. it is required for soundness). For passes which are strictly optimizations, this should return false. If this is false, #[optimize(none)] will disable the pass.

Source§

Source§

Source§

Returns true if this pass is enabled with the current combination of compiler flags.

Source§

Returns true if this pass can be overridden by -Zenable-mir-passes. This should be true for basically every pass other than those that are necessary for correctness.

Source§

Source§

Source§

Tests for self and other values to be equal, and is used by ==.

1.0.0 · Source§

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

Source§

§

§

§

§

§

§

§

§

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: 1 byte

Size for each variant: