Skip to content

Commit 9297caa

Browse files
committed
Fix all the links!
1 parent ac194d4 commit 9297caa

File tree

7 files changed

+17
-12
lines changed

7 files changed

+17
-12
lines changed

book.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ description = "A guide to developing rustc"
99

1010
[output.linkcheck]
1111
follow-web-links = true
12-
exclude = [ "crates\\.io" ]
12+
exclude = [ "crates\\.io", "gcc\\.godbolt\\.org" ]

src/appendix/stupid-stats.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ and a bunch of other crates with the 'librustc_' prefix.
7474
Next is translation, this translates the AST (and all those side tables) into
7575
LLVM IR (intermediate representation). We do this by calling into the LLVM
7676
libraries, rather than actually writing IR directly to a file. The code for
77-
this is in [librustc_trans](https://github.com/rust-lang/rust/tree/master/src/librustc_trans).
77+
this is in librustc_trans.
7878

7979
The next phase is running the LLVM backend. This runs LLVM's optimisation passes
8080
on the generated IR and then generates machine code. The result is object files.
@@ -83,17 +83,22 @@ interface between LLVM and rustc is in [librustc_llvm](https://github.com/rust-l
8383

8484
Finally, we link the object files into an executable. Again we outsource this to
8585
other programs and it's not really part of the rust compiler. The interface is
86-
in [librustc_back](https://github.com/rust-lang/rust/tree/master/src/librustc_back)
87-
(which also contains some things used primarily during translation).
86+
in librustc_back (which also contains some things used primarily during
87+
translation).
88+
89+
> NOTE: `librustc_trans` and `librustc_back` no longer exist, and we don't
90+
> translate AST or HIR directly to LLVM IR anymore. Instead, see
91+
> [`librustc_codegen_llvm`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_codegen_llvm/index.html)
92+
> and [`librustc_codegen_utils`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_codegen_utils/index.html).
8893
8994
All these phases are coordinated by the driver. To see the exact sequence, look
9095
at [the `compile_input` function in `librustc_driver`][compile-input].
91-
The driver handles all the highest level coordination of compilation -
92-
1. handling command-line arguments
96+
The driver handles all the highest level coordination of compilation -
97+
1. handling command-line arguments
9398
2. maintaining compilation state (primarily in the `Session`)
9499
3. calling the appropriate code to run each phase of compilation
95100
4. handles high level coordination of pretty printing and testing.
96-
To create a drop-in compiler replacement or a compiler replacement,
101+
To create a drop-in compiler replacement or a compiler replacement,
97102
we leave most of compilation alone and customise the driver using its APIs.
98103

99104
[compile-input]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_driver/driver/fn.compile_input.html

src/const-eval.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ integer or fat pointer, it will directly yield the value (via `Value::ByVal` or
3535
memory allocation (via `Value::ByRef`). This means that the `const_eval`
3636
function cannot be used to create miri-pointers to the evaluated constant or
3737
static. If you need that, you need to directly work with the functions in
38-
[src/librustc_mir/interpret/const_eval.rs](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/interpret/const_eval/).
38+
[src/librustc_mir/const_eval.rs](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/const_eval/index.html).

src/diag.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,5 +304,5 @@ lints we want to emit. Instead, the [`BufferedEarlyLintId`] type is used. If you
304304
are defining a new lint, you will want to add an entry to this enum. Then, add
305305
an appropriate mapping to the body of [`Lint::from_parser_lint_id`][fplid].
306306

307-
[`BufferedEarlyLintId`]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/early_buffered_lints/struct.BufferedEarlyLintId.html
307+
[`BufferedEarlyLintId`]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/early_buffered_lints/enum.BufferedEarlyLintId.html
308308
[fplid]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc/lint/struct.Lint.html#from_parser_lint_id

src/miri.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ to a pointer to `b`.
112112

113113
Although the main entry point to constant evaluation is the `tcx.const_eval`
114114
query, there are additional functions in
115-
[librustc_mir/interpret/const_eval.rs](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/interpret/const_eval/)
115+
[librustc_mir/const_eval.rs](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/const_eval/index.html)
116116
that allow accessing the fields of a `Value` (`ByRef` or otherwise). You should
117117
never have to access an `Allocation` directly except for translating it to the
118118
compilation target (at the moment just LLVM).

src/tests/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ communicate with the server to coordinate running tests (see
171171
## Crater
172172

173173
[Crater](https://github.com/rust-lang-nursery/crater) is a tool for compiling
174-
and running tests for _every_ crate on [crates.io](https://crates.io/) (and a
174+
and running tests for _every_ crate on [crates.io](https://crates.io) (and a
175175
few on GitHub). It is mainly used for checking for extent of breakage when
176176
implementing potentially breaking changes and ensuring lack of breakage by
177177
running beta vs stable compiler versions.

src/traits/chalk-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ See [The SLG Solver][slg].
141141
[clause]: https://github.com/rust-lang-nursery/chalk/blob/master/GLOSSARY.md#clause
142142
[goals-and-clauses]: ./goals-and-clauses.html
143143
[well-formedness-checks]: https://github.com/rust-lang-nursery/chalk/blob/94a1941a021842a5fcb35cd043145c8faae59f08/src/ir/lowering.rs#L230-L232
144-
[ir-code]: https://github.com/rust-lang-nursery/chalk/blob/master/src/ir.rs
144+
[ir-code]: https://github.com/rust-lang-nursery/chalk/tree/master/chalk-ir
145145
[HIR]: ../hir.html
146146
[binders-struct]: https://github.com/rust-lang-nursery/chalk/blob/94a1941a021842a5fcb35cd043145c8faae59f08/src/ir.rs#L661
147147
[rules-environment]: https://github.com/rust-lang-nursery/chalk/blob/94a1941a021842a5fcb35cd043145c8faae59f08/src/rules.rs#L9

0 commit comments

Comments
 (0)