Skip to content

Commit 87e3552

Browse files
committed
fix links
1 parent abf512f commit 87e3552

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/borrow_check/region_inference/constraint_propagation.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on one at a time (each of them is fairly independent from the others):
1111
- [member constraints][m_c] (`member R_m of [R_c...]`), which arise from impl Trait.
1212

1313
[`propagate_constraints`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/borrow_check/nll/region_infer/struct.RegionInferenceContext.html#method.propagate_constraints
14-
[m_c]: ./member_constraints.html
14+
[m_c]: ./member_constraints.md
1515

1616
In this chapter, we'll explain the "heart" of constraint propagation,
1717
covering both liveness and outlives constraints.
@@ -29,7 +29,7 @@ given some set of constraints `{C}` and it computes a set of values
2929
- For each constraint C:
3030
- Update `Values` as needed to satisfy the constraint
3131

32-
[riv]: ../region-inference.html#region-variables
32+
[riv]: ../region_inference.md#region-variables
3333

3434
As a simple example, if we have a liveness constraint `R live at E`,
3535
then we can apply `Values(R) = Values(R) union {E}` to make the
@@ -55,7 +55,7 @@ includes a region R is live at some [point] P. This simply means that
5555
the value of R must include the point P. Liveness constraints are
5656
computed by the MIR type checker.
5757

58-
[point]: ../../appendix/glossary.html
58+
[point]: ../../appendix/glossary.md
5959

6060
A liveness constraint `R live at E` is satisfied if `E` is a member of
6161
`Values(R)`. So to "apply" such a constraint to `Values`, we just have

src/borrow_check/region_inference/placeholders_and_universes.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ the type of `foo` the type `bar` expects
3636

3737
We handle this sort of subtyping by taking the variables that are
3838
bound in the supertype and replacing them with
39-
[universally quantified](../appendix/background.html#quantified)
39+
[universally quantified](../../appendix/background.md#quantified)
4040
representatives, denoted like `!1` here. We call these regions "placeholder
4141
regions" – they represent, basically, "some unknown region".
4242

@@ -53,7 +53,7 @@ what we wanted.
5353

5454
So let's work through what happens next. To check if two functions are
5555
subtypes, we check if their arguments have the desired relationship
56-
(fn arguments are [contravariant](../appendix/background.html#variance), so
56+
(fn arguments are [contravariant](../../appendix/background.md#variance), so
5757
we swap the left and right here):
5858

5959
```text
@@ -92,7 +92,7 @@ Here, the root universe would consist of the lifetimes `'static` and
9292
the same concept to types, in which case the types `Foo` and `T` would
9393
be in the root universe (along with other global types, like `i32`).
9494
Basically, the root universe contains all the names that
95-
[appear free](../appendix/background.html#free-vs-bound) in the body of `bar`.
95+
[appear free](../../appendix/background.md#free-vs-bound) in the body of `bar`.
9696

9797
Now let's extend `bar` a bit by adding a variable `x`:
9898

0 commit comments

Comments
 (0)