File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/librustc_mir/borrow_check/nll/constraints Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,11 @@ impl ConstraintSet {
37
37
}
38
38
39
39
/// Constructs a graph from the constraint set; the graph makes it
40
- /// easy to find the constraints affecting a particular region
41
- /// (you should not mutate the set once this graph is
42
- /// constructed).
40
+ /// easy to find the constraints affecting a particular region.
41
+ ///
42
+ /// NB: This graph contains a "frozen" view of the current
43
+ /// constraints. any new constraints added to the `ConstraintSet`
44
+ /// after the graph is built will not be present in the graph.
43
45
crate fn graph ( & self , num_region_vars : usize ) -> graph:: ConstraintGraph {
44
46
graph:: ConstraintGraph :: new ( self , num_region_vars)
45
47
}
You can’t perform that action at this time.
0 commit comments