[−][src]Enum rustc_infer::infer::RegionckMode

pub enum RegionckMode {
    Solve,
    Erase {
        suppress_errors: bool,
    },
}

How we should handle region solving.

This is used so that the region values inferred by HIR region solving are not exposed, and so that we can avoid doing work in HIR typeck that MIR typeck will also do.

Variants

Solve

The default mode: report region errors, don't erase regions.

Erase

Erase the results of region after solving.

Fields of Erase

suppress_errors: bool

A flag that is used to suppress region errors, when we are doing region checks that the NLL borrow checker will also do -- it might be set to true.

Implementations

impl RegionckMode[src]

pub fn for_item_body(tcx: TyCtxt<'_>) -> Self[src]

Indicates that the MIR borrowck will repeat these region checks, so we should ignore errors if NLL is (unconditionally) enabled.

Trait Implementations

impl Clone for RegionckMode[src]

impl Copy for RegionckMode[src]

impl Debug for RegionckMode[src]

impl Default for RegionckMode[src]

Auto Trait Implementations

impl RefUnwindSafe for RegionckMode

impl Send for RegionckMode

impl Sync for RegionckMode

impl Unpin for RegionckMode

impl UnwindSafe for RegionckMode

Blanket Implementations

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

impl<'tcx, T> ArenaAllocatable<'tcx, ()> for T where
    T: Copy, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]