Skip to content

Commit d6a6122

Browse files
authored
Add link to rustc::mir::Location (#579)
1 parent df680be commit d6a6122

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/borrow_check/region_inference.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ use sparse bitsets).
8686

8787
The kinds of region elements are as follows:
8888

89-
- Each **location** in the MIR control-flow graph: a location is just
89+
- Each **[`location`]** in the MIR control-flow graph: a location is just
9090
the pair of a basic block and an index. This identifies the point
9191
**on entry** to the statement with that index (or the terminator, if
9292
the index is equal to `statements.len()`).
@@ -219,6 +219,7 @@ Here are some of the fields of the struct:
219219

220220
[`constraints`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/borrow_check/region_infer/struct.RegionInferenceContext.html#structfield.constraints
221221
[`liveness_constraints`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/borrow_check/region_infer/struct.RegionInferenceContext.html#structfield.liveness_constraints
222+
[`location`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc/mir/struct.Location.html
222223
[`universal_regions`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/borrow_check/region_infer/struct.RegionInferenceContext.html#structfield.universal_regions
223224
[`universal_region_relations`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/borrow_check/region_infer/struct.RegionInferenceContext.html#structfield.universal_region_relations
224225
[`type_tests`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/borrow_check/region_infer/struct.RegionInferenceContext.html#structfield.type_tests

0 commit comments

Comments
 (0)