[−][src]Enum rustc_trait_selection::infer::RegionckMode
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
The default mode: report region errors, don't erase regions.
Erase the results of region after solving.
Fields of Erase
suppress_errors: boolA 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 suppressed(self) -> bool[src]
pub fn for_item_body(tcx: TyCtxt<'_>) -> RegionckMode[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]
fn clone(&self) -> RegionckMode[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for RegionckMode[src]
impl Debug for RegionckMode[src]
impl Default for RegionckMode[src]
fn default() -> 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]
T: 'static + ?Sized,
impl<'tcx, T> ArenaAllocatable<'tcx, ()> for T where
T: Copy, [src]
T: Copy,
fn allocate_on(self, arena: &'a Arena<'tcx>) -> &'a mut T[src]
fn allocate_from_iter(
arena: &'a Arena<'tcx>,
iter: impl IntoIterator<Item = T>
) -> &'a mut [T][src]
arena: &'a Arena<'tcx>,
iter: impl IntoIterator<Item = T>
) -> &'a mut [T]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.