Enum rustc_infer::infer::RegionckMode [−][src]
pub enum RegionckMode {
Solve,
Erase {
suppress_errors: bool,
},
}
Expand description
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: 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
Indicates that the MIR borrowck will repeat these region checks, so we should ignore errors if NLL is (unconditionally) enabled.
Trait Implementations
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
pub fn allocate_from_iter(
arena: &'a Arena<'tcx>,
iter: impl IntoIterator<Item = T>
) -> &'a mut [T]
Mutably borrows from an owned value. Read more
Layout
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:
Solve
: 0 bytesErase
: 1 byte