Skip to content

Commit a9e9539

Browse files
JohnTitorjyn514
authored andcommitted
Prefer relative links
Signed-off-by: Yuki Okushi <[email protected]>
1 parent d08b61d commit a9e9539

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/doc/rustc-dev-guide/src/building/how-to-build-and-run.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ If you set `download-ci-llvm = true`, in some circumstances, such as when
6363
updating the version of LLVM used by `rustc`, you may want to temporarily
6464
disable this feature. See the ["Updating LLVM" section] for more.
6565

66-
["Updating LLVM" section]: /backend/updating-llvm.md#feature-updates
66+
["Updating LLVM" section]: ../backend/updating-llvm.md#feature-updates
6767

6868
If you have already built `rustc` and you change settings related to LLVM, then you may have to
6969
execute `rm -rf build` for subsequent configuration changes to take effect. Note that `./x.py
@@ -254,7 +254,7 @@ For examples of the complete configuration necessary to build a target, please v
254254
select any target under the "Platform Support" heading on the left,
255255
and see the section related to building a compiler for that target.
256256
For targets without a corresponding page in the rustc book,
257-
it may be useful to [inspect the Dockerfiles](/tests/docker.md)
257+
it may be useful to [inspect the Dockerfiles](../tests/docker.md)
258258
that the Rust infrastructure itself uses to set up and configure cross-compilation.
259259

260260
If you have followed the directions from the prior section on creating a rustup toolchain,

src/doc/rustc-dev-guide/src/mir/optimizations.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ to do, so compilation is faster. Note that since MIR is generic (not
88
effective; we can optimize the generic version, so all of the monomorphizations
99
are cheaper!
1010

11-
[mir]: /mir/index.md
12-
[monomorph]: /appendix/glossary.md#mono
11+
[mir]: ../mir/index.md
12+
[monomorph]: ../appendix/glossary.md#mono
1313

1414
MIR optimizations run after borrow checking. We run a series of optimization
1515
passes over the MIR to improve it. Some passes are required to run on all code,
@@ -22,9 +22,9 @@ run and that some validation has occurred. Then, it [steals][steal] the MIR,
2222
optimizes it, and returns the improved MIR.
2323

2424
[optmir]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_transform/fn.optimized_mir.html
25-
[query]: /query.md
26-
[defid]: /appendix/glossary.md#def-id
27-
[steal]: /mir/passes.md#stealing
25+
[query]: ../query.md
26+
[defid]: ../appendix/glossary.md#def-id
27+
[steal]: ../mir/passes.md#stealing
2828

2929
## Quickstart for adding a new optimization
3030

0 commit comments

Comments
 (0)