Modules§
- dump_
mir πAs part of generating the regions, if you enable-Zdump-mir=nll
, we will generate an annotated copy of the MIR that includes the state of region inference. This code handles emitting the region context internal state. - graphviz πThis module provides linkage between RegionInferenceContext and
rustc_graphviz
traits, specialized to attaching borrowck analysis data to rendered labels. - opaque_
types π - reverse_
sccs π - values π
Structs§
- Each time that
apply_member_constraint
is successful, it appends one of these structs to themember_constraints_applied
field. This is used in error reporting to trace out what happened. - Blame
Constraint π - Region
Definition π - An annotation for region graph SCCs that tracks the values of its elements.
- Type
Test πA βtype testβ corresponds to an outlives constraint between a type and a lifetime, likeT: 'x
or<T as Foo>::Bar: 'x
. They are translated from theVerify
region constraints in the ordinary inference context.
Enums§
- Cause πN.B., the variants in
Cause
are intentionally ordered. Lower values are preferred when it comes to error messages. Do not reorder willy nilly. - Extra
Constraint πInfo - When we have an unmet lifetime constraint, we try to propagate it outward (e.g. to a closure environment). If we canβt, it is an error.
- Trace π
Functions§
- sccs_
info π
Type Aliases§
- Constraint
Sccs π