struct ConstraintGeneration<'cg, 'cx, 'tcx> {
    infcx: &'cg InferCtxt<'cx, 'tcx>,
    all_facts: &'cg mut Option<AllFacts>,
    location_table: &'cg LocationTable,
    liveness_constraints: &'cg mut LivenessValues<RegionVid>,
    borrow_set: &'cg BorrowSet<'tcx>,
    body: &'cg Body<'tcx>,
}
Expand description

’cg = the duration of the constraint generation process itself.

Fields

infcx: &'cg InferCtxt<'cx, 'tcx>all_facts: &'cg mut Option<AllFacts>location_table: &'cg LocationTableliveness_constraints: &'cg mut LivenessValues<RegionVid>borrow_set: &'cg BorrowSet<'tcx>body: &'cg Body<'tcx>

Implementations

Some variable with type live_ty is “regular live” at location – i.e., it may be used later. This means that all regions appearing in the type live_ty must be live at location.

When recording facts for Polonius, records the borrows on the specified place as killed. For example, when assigning to a local, or on a call’s return destination.

Trait Implementations

We sometimes have substs within an rvalue, or within a call. Make them live at the location where they appear.

We sometimes have region within an rvalue, or within a call. Make them live at the location where they appear.

We sometimes have ty within an rvalue, or within a call. Make them live at the location where they appear.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.

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: 48 bytes