File tree 1 file changed +5
-3
lines changed
src/librustc/infer/region_constraints
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,11 @@ impl<'tcx> RegionConstraintCollector<'tcx> {
14
14
/// retain the older (arguably incorrect) behavior of the
15
15
/// compiler.
16
16
///
17
- /// NB. The use of snapshot here is mostly an efficiency thing --
18
- /// we could search *all* region constraints, but that'd be a
19
- /// bigger set and the data structures are not setup for that. If
17
+ /// NB. Although `_snapshot` isn't used, it's passed in to prove
18
+ /// that we are in a snapshot, which guarantees that we can just
19
+ /// search the "undo log" for edges. This is mostly an efficiency
20
+ /// thing -- we could search *all* region constraints, but that'd be
21
+ /// a bigger set and the data structures are not setup for that. If
20
22
/// we wind up keeping some form of this check long term, it would
21
23
/// probably be better to remove the snapshot parameter and to
22
24
/// refactor the constraint set.
You can’t perform that action at this time.
0 commit comments