[−][src]Enum rustc_trait_selection::infer::NLLRegionVariableOrigin

pub enum NLLRegionVariableOrigin {
    FreeRegion,
    Placeholder(Placeholder<BoundRegion>),
    RootEmptyRegion,
    Existential {
        from_forall: bool,
    },
}

Variants

FreeRegion

During NLL region processing, we create variables for free regions that we encounter in the function signature and elsewhere. This origin indices we've got one of those.

Placeholder(Placeholder<BoundRegion>)

"Universal" instantiation of a higher-ranked region (e.g., from a for<'a> T binder). Meant to represent "any region".

RootEmptyRegion

The variable we create to represent 'empty(U0).

Existential

Fields of Existential

from_forall: bool

If this is true, then this variable was created to represent a lifetime bound in a for binder. For example, it might have been created to represent the lifetime 'a in a type like for<'a> fn(&'a u32). Such variables are created when we are trying to figure out if there is any valid instantiation of 'a that could fit into some scenario.

This is used to inform error reporting: in the case that we are trying to determine whether there is any valid instantiation of a 'a variable that meets some constraint C, we want to blame the "source" of that for type, rather than blaming the source of the constraint C.

Auto Trait Implementations

impl RefUnwindSafe for NLLRegionVariableOrigin

impl Send for NLLRegionVariableOrigin

impl Sync for NLLRegionVariableOrigin

impl Unpin for NLLRegionVariableOrigin

impl UnwindSafe for NLLRegionVariableOrigin

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<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]