We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb1702f commit db7a07cCopy full SHA for db7a07c
src/librustc_mir/borrow_check/nll/constraints/mod.rs
@@ -37,9 +37,11 @@ impl ConstraintSet {
37
}
38
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).
+ /// easy to find the constraints affecting a particular region.
+ ///
+ /// 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.
45
crate fn graph(&self, num_region_vars: usize) -> graph::ConstraintGraph {
46
graph::ConstraintGraph::new(self, num_region_vars)
47
0 commit comments