Skip to content

Commit 97e8530

Browse files
committed
minor improvements
1 parent 505c99f commit 97e8530

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/borrow_check.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,14 @@ the [`mir_borrowck`] query.
5151
the purpose of this type check is to determine all of the constraints between
5252
different regions.
5353
- Next, we do [region inference](borrow_check/region_inference.html), which computes
54-
the values of each region — basically, points in the control-flow graph.
54+
the values of each region — basically, the points in the control-flow graph where
55+
each lifetime must be valid according to the constraints we collected.
5556
- At this point, we can compute the "borrows in scope" at each point.
5657
- Finally, we do a second walk over the MIR, looking at the actions it
5758
does and reporting errors. For example, if we see a statement like
5859
`*a + 1`, then we would check that the variable `a` is initialized
5960
and that it is not mutably borrowed, as either of those would
60-
require an error to be reported.
61-
- Doing this check requires the results of all the previous analyses.
61+
require an error to be reported. Doing this check requires the results of all
62+
the previous analyses.
6263

6364
[`replace_regions_in_mir`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/borrow_check/nll/fn.replace_regions_in_mir.html

0 commit comments

Comments
 (0)