Skip to content

Commit cd7f600

Browse files
authored
Replace direct http links to rustc-dev-guide.rust-lang.org to relative links to the corresponding md source files. (#2044)
Use relative links to the corresponding md source files; this helps local browsing of generated docs.
1 parent 98926c5 commit cd7f600

5 files changed

+8
-8
lines changed

src/borrow_check/opaque-types-region-inference-restrictions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ See [#113971] for how we used to conflate the difference.
158158

159159
[#113971]: https://github.com/rust-lang/rust/issues/113971
160160
[SCC]: https://en.wikipedia.org/wiki/Strongly_connected_component
161-
[member constraints]: https://rustc-dev-guide.rust-lang.org/borrow_check/region_inference/member_constraints.html
161+
[member constraints]: ./region_inference/member_constraints.md
162162

163163
**interaction with "once modulo regions" restriction**
164164
In the example above, note the opaque type in the signature is `Opaque<'a>` and the one in the

src/opaque-types-impl-trait-inference.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ This kind of type inference is particularly complex because,
55
unlike other kinds of type inference,
66
it can work across functions and function bodies.
77

8-
[hidden type]: https://rustc-dev-guide.rust-lang.org/borrow_check/region_inference/member_constraints.html?highlight=%22hidden%20type%22#member-constraints
9-
[opaque type]: https://rustc-dev-guide.rust-lang.org/opaque-types-type-alias-impl-trait.html
8+
[hidden type]: ./borrow_check/region_inference/member_constraints.html?highlight=%22hidden%20type%22#member-constraints
9+
[opaque type]: ./opaque-types-type-alias-impl-trait.md
1010

1111
## Running example
1212

src/overview.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ following files are found in the `parser`:
7272

7373
This naming scheme is used across many compiler stages. You will find either a
7474
file or directory with the same name across the parsing, lowering, type
75-
checking, [Typed High-level Intermediate Representation (`THIR`)] lowering, and
75+
checking, [Typed High-level Intermediate Representation (`THIR`)][thir] lowering, and
7676
[Mid-level Intermediate Representation (`MIR`)][mir] building sources.
7777

7878
Macro-expansion, `AST`-validation, name-resolution, and early linting also take
@@ -168,7 +168,7 @@ the final binary.
168168
[parser]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_parse/index.html
169169
[rustc_parse_parser_dir]: https://github.com/rust-lang/rust/tree/master/compiler/rustc_parse/src/parser
170170
[String interning]: https://en.wikipedia.org/wiki/String_interning
171-
[Typed High-level Intermediate Representation (`THIR`)]: https://rustc-dev-guide.rust-lang.org/thir.html
171+
[thir]: ./thir.md
172172

173173
## How it does it
174174

src/param_env/param_env_construction_internals.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ fn foo<T: Trait + Trait>() {}
4040
The [next-gen trait solver][next-gen-solver] also requires this elaboration to take place.
4141

4242
[elaborate]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_infer/traits/util/fn.elaborate.html
43-
[next-gen-solver]: https://rustc-dev-guide.rust-lang.org/solve/trait-solving.html
43+
[next-gen-solver]: ../solve/trait-solving.md
4444

4545
## Normalizing all bounds
4646

@@ -80,4 +80,4 @@ In the next-gen trait solver the requirement for all where clauses in the `Param
8080

8181
[example]: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=e6933265ea3e84eaa47019465739992c
8282
[pe]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.ParamEnv.html
83-
[normalize_env_or_error]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_trait_selection/traits/fn.normalize_param_env_or_error.html
83+
[normalize_env_or_error]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_trait_selection/traits/fn.normalize_param_env_or_error.html

src/solve/opaque-types.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ end up leaking placeholders.
9595
The handling of member constraints does not change in the new solver. See the
9696
[relevant existing chapter][member-constraints] for that.
9797

98-
[member-constraints]: https://rustc-dev-guide.rust-lang.org/borrow_check/region_inference/member_constraints.html
98+
[member-constraints]: ../borrow_check/region_inference/member_constraints.md
9999

100100
## calling methods on opaque types
101101

0 commit comments

Comments
 (0)