Skip to content

Commit fd1ce74

Browse files
authored
Fix internal and incomplete links (#2107)
* Fix broken link in syntax-intro.md * Fix broken link in tests/compiletest.md * Fix incorrectly formatted reference-style link in compiler-src.md * Fix broken links to rustc-driver.md to point to rustc-driver/intro.md * Define URLs for incomplete links to rustc sources in stabilization_guide.md * Define link to coherence.md for incomplete link in solve/invariants.md
1 parent 124513e commit fd1ce74

File tree

8 files changed

+12
-9
lines changed

8 files changed

+12
-9
lines changed

Diff for: src/appendix/code-index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Item | Kind | Short description | Chapter |
3434
[The HIR]: ../hir.html
3535
[Identifiers in the HIR]: ../hir.html#hir-id
3636
[The parser]: ../the-parser.html
37-
[The Rustc Driver and Interface]: ../rustc-driver.html
37+
[The Rustc Driver and Interface]: ../rustc-driver/intro.html
3838
[Type checking]: ../type-checking.html
3939
[The `ty` modules]: ../ty.html
4040
[Rustdoc]: ../rustdoc.html

Diff for: src/compiler-src.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ where the rustc source code lives.
1616
## Workspace structure
1717

1818
The [`rust-lang/rust`] repository consists of a single large cargo workspace
19-
containing the compiler, the standard libraries ([`core`], [`alloc`],[ `std`],
19+
containing the compiler, the standard libraries ([`core`], [`alloc`], [`std`],
2020
[`proc_macro`], [`etc`]), and [`rustdoc`], along with the build system and a
2121
bunch of tools and submodules for building a full Rust distribution.
2222

Diff for: src/memory.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ structures (e.g. the [Abstract Syntax Tree (AST)][ast], [High-Level Intermediate
9494
Representation (`HIR`)][hir], and the type system) and as such, arenas and
9595
references are heavily relied upon to minimize unnecessary memory use. This
9696
manifests itself in the way people can plug into the compiler (i.e. the
97-
[driver](./rustc-driver.md)), preferring a "push"-style API (callbacks) instead
97+
[driver](./rustc-driver/intro.md)), preferring a "push"-style API (callbacks) instead
9898
of the more Rust-ic "pull" style (think the `Iterator` trait).
9999

100100
Thread-local storage and interning are used a lot through the compiler to reduce

Diff for: src/overview.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ the final binary.
146146
[`Parser`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_parse/parser/struct.Parser.html
147147
[`Pat`]: https://doc.rust-lang.org/beta/nightly-rustc/rustc_ast/ast/struct.Pat.html
148148
[`rustc_ast::ast`]: https://doc.rust-lang.org/beta/nightly-rustc/rustc_ast/index.html
149-
[`rustc_driver`]: rustc-driver.md
149+
[`rustc_driver`]: rustc-driver/intro.md
150150
[`rustc_interface::Config`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_interface/interface/struct.Config.html
151151
[`rustc_lexer`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lexer/index.html
152152
[`rustc_parse::lexer`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_parse/lexer/index.html
@@ -387,7 +387,7 @@ For more details on bootstrapping, see
387387
# References
388388

389389
- Command line parsing
390-
- Guide: [The Rustc Driver and Interface](rustc-driver.md)
390+
- Guide: [The Rustc Driver and Interface](rustc-driver/intro.md)
391391
- Driver definition: [`rustc_driver`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_driver/)
392392
- Main entry point: [`rustc_session::config::build_session_options`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_session/config/fn.build_session_options.html)
393393
- Lexical Analysis: Lex the user program to a stream of tokens

Diff for: src/solve/invariants.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ in the trait solver
113113

114114
#### The type system is complete during the implicit negative overlap check in coherence ✅
115115

116-
For more on overlap checking: [../coherence.md]
116+
For more on overlap checking: [coherence]
117117

118118
During the implicit negative overlap check in coherence we must never return *error* for
119119
goals which can be proven. This would allow for overlapping impls with potentially different
@@ -153,4 +153,5 @@ arguments. This currently does not hold: [#97156].
153153

154154
[#57893]: https://github.com/rust-lang/rust/issues/57893
155155
[#97156]: https://github.com/rust-lang/rust/issues/97156
156-
[#114936]: https://github.com/rust-lang/rust/issues/114936
156+
[#114936]: https://github.com/rust-lang/rust/issues/114936
157+
[coherence]: ../coherence.md

Diff for: src/stabilization_guide.md

+2
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ if something { /* XXX */ }
187187
[forge-versions]: https://forge.rust-lang.org/#current-release-versions
188188
[forge-release-process]: https://forge.rust-lang.org/release/process.html
189189
[`compiler/rustc_feature`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_feature/index.html
190+
[`compiler/rustc_feature/src/accepted.rs`]: https://github.com/rust-lang/rust/tree/master/compiler/rustc_feature/src/accepted.rs
191+
[`compiler/rustc_feature/src/unstable.rs`]: https://github.com/rust-lang/rust/tree/master/compiler/rustc_feature/src/unstable.rs
190192
[The Reference]: https://github.com/rust-lang/reference
191193
[The Book]: https://github.com/rust-lang/book
192194
[Rust by Example]: https://github.com/rust-lang/rust-by-example

Diff for: src/syntax-intro.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ And parsing requires macro expansion, which in turn may require parsing the outp
1414
[AST]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_parse/index.html
1515
[macro expansion]: ./macro-expansion.md
1616
[feature-gate checking]: ./feature-gate-ck.md
17-
[lexing, parsing]: ./lexing-parsing.md
17+
[lexing, parsing]: ./the-parser.md
1818
[name resolution]: ./name-resolution.md
1919
[validation]: ./ast-validation.md

Diff for: src/tests/compiletest.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ on if or how to run the test, what behavior to expect, and more. See
2929
[directives](directives.md) and the test suite documentation below for more details
3030
on these annotations.
3131

32-
See the [Adding new tests](adding.md) and [Best practies](best-practiecs.md)
32+
See the [Adding new tests](adding.md) and [Best practies](best-practices.md)
3333
chapters for a tutorial on creating a new test and advice on writing a good
3434
test, and the [Running tests](running.md) chapter on how to run the test suite.
3535

0 commit comments

Comments
 (0)