Skip to content

Commit f5ff6d0

Browse files
Rajkumar Natarajanmark-i-m
Rajkumar Natarajan
authored andcommitted
Link to internal rustdocs#100
1 parent 3c189da commit f5ff6d0

8 files changed

+22
-22
lines changed

src/appendix-stupid-stats.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ in [librustc_back](https://github.com/rust-lang/rust/tree/master/src/librustc_ba
8787
(which also contains some things used primarily during translation).
8888

8989
All these phases are coordinated by the driver. To see the exact sequence, look
90-
at the `compile_input` function in [librustc_driver/driver.rs](https://github.com/rust-lang/rust/tree/master/src/librustc_driver/driver.rs).
90+
at the `compile_input` function in [librustc_driver/driver.rs](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_driver/driver/).
9191
The driver (which is found in [librust_driver](https://github.com/rust-lang/rust/tree/master/src/librustc_driver))
9292
handles all the highest level coordination of compilation - handling command
9393
line arguments, maintaining compilation state (primarily in the `Session`), and

src/macro-expansion.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ TODO
156156

157157

158158
[code_dir]: https://github.com/rust-lang/rust/tree/master/src/libsyntax/ext/tt
159-
[code_mp]: https://github.com/rust-lang/rust/tree/master/src/libsyntax/ext/tt/macro_parser.rs
160-
[code_mr]: https://github.com/rust-lang/rust/tree/master/src/libsyntax/ext/tt/macro_rules.rs
161-
[code_parse_int]: https://github.com/rust-lang/rust/blob/a97cd17f5d71fb4ec362f4fbd79373a6e7ed7b82/src/libsyntax/ext/tt/macro_parser.rs#L421
159+
[code_mp]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/ext/tt/macro_parser/
160+
[code_mr]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/ext/tt/macro_rules/
161+
[code_parse_int]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/ext/tt/macro_parser/fn.parse.html
162162
[parsing]: ./the-parser.html

src/mir-passes.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,6 @@ This mechanism is a bit dodgy. There is a discussion of more elegant
172172
alternatives in [rust-lang/rust#41710].
173173

174174
[rust-lang/rust#41710]: https://github.com/rust-lang/rust/issues/41710
175-
[mirtransform]: https://github.com/rust-lang/rust/tree/master/src/librustc_mir/transform/mod.rs
176-
[`NoLandingPads`]: https://github.com/rust-lang/rust/tree/master/src/librustc_mir/transform/no_landing_pads.rs
175+
[mirtransform]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/transform/
176+
[`NoLandingPads`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/transform/no_landing_pads/struct.NoLandingPads.html
177177
[MIR visitor]: mir-visitor.html

src/mir-visitor.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ them, generated via a single macro: `Visitor` (which operates on a
77
`&Mir` and gives back shared references) and `MutVisitor` (which
88
operates on a `&mut Mir` and gives back mutable references).
99

10-
[m-v]: https://github.com/rust-lang/rust/tree/master/src/librustc/mir/visit.rs
10+
[m-v]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc/mir/visit/index.html
1111

1212
To implement a visitor, you have to create a type that represents
1313
your visitor. Typically, this type wants to "hang on" to whatever
@@ -41,7 +41,7 @@ A very simple example of a visitor can be found in [`NoLandingPads`].
4141
That visitor doesn't even require any state: it just visits all
4242
terminators and removes their `unwind` successors.
4343

44-
[`NoLandingPads`]: https://github.com/rust-lang/rust/tree/master/src/librustc_mir/transform/no_landing_pads.rs
44+
[`NoLandingPads`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/transform/no_landing_pads/struct.NoLandingPads.html
4545

4646
## Traversal
4747

@@ -50,6 +50,6 @@ contains useful functions for walking the MIR CFG in
5050
[different standard orders][traversal] (e.g. pre-order, reverse
5151
post-order, and so forth).
5252

53-
[t]: https://github.com/rust-lang/rust/tree/master/src/librustc/mir/traversal.rs
53+
[t]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc/mir/traversal/index.html
5454
[traversal]: https://en.wikipedia.org/wiki/Tree_traversal
5555

src/query.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ the big macro invocation in
216216
changed by the time you read this README, but at present it looks
217217
something like:
218218

219-
[maps-mod]: https://github.com/rust-lang/rust/blob/master/src/librustc/ty/maps/mod.rs
219+
[maps-mod]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc/ty/maps/index.html
220220

221221
```
222222
define_maps! { <'tcx>
@@ -270,7 +270,7 @@ Let's go over them one by one:
270270
of `Steal` for more details. New uses of `Steal` should **not** be
271271
added without alerting `@rust-lang/compiler`.
272272

273-
[dep-node]: https://github.com/rust-lang/rust/blob/master/src/librustc/dep_graph/dep_node.rs
273+
[dep-node]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc/dep_graph/struct.DepNode.html
274274

275275
So, to add a query:
276276

src/rustc-driver.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ pervasive lifetimes. The `rustc::ty::tls` module is used to access these
6767
thread-locals, although you should rarely need to touch it.
6868

6969

70-
[`rustc_driver`]: https://github.com/rust-lang/rust/tree/master/src/librustc_driver
71-
[`CompileState`]: https://github.com/rust-lang/rust/blob/master/src/librustc_driver/driver.rs
72-
[`Session`]: https://github.com/rust-lang/rust/blob/master/src/librustc/session/mod.rs
73-
[`TyCtxt`]: https://github.com/rust-lang/rust/blob/master/src/librustc/ty/context.rs
74-
[`CodeMap`]: https://github.com/rust-lang/rust/blob/master/src/libsyntax/codemap.rs
70+
[`rustc_driver`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_driver/
71+
[`CompileState`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_driver/driver/struct.CompileState.html
72+
[`Session`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc/session/struct.Session.html
73+
[`TyCtxt`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc/ty/struct.TyCtxt.html
74+
[`CodeMap`]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/codemap/struct.CodeMap.html
7575
[stupid-stats]: https://github.com/nrc/stupid-stats
7676
[Appendix A]: appendix-stupid-stats.html

src/the-parser.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ all the information needed while parsing, as well as the `CodeMap` itself.
3434
[libsyntax]: https://github.com/rust-lang/rust/tree/master/src/libsyntax
3535
[rustc_errors]: https://github.com/rust-lang/rust/tree/master/src/librustc_errors
3636
[ast]: https://en.wikipedia.org/wiki/Abstract_syntax_tree
37-
[`CodeMap`]: https://github.com/rust-lang/rust/blob/master/src/libsyntax/codemap.rs
38-
[ast module]: https://github.com/rust-lang/rust/blob/master/src/libsyntax/ast.rs
37+
[`CodeMap`]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/codemap/struct.CodeMap.html
38+
[ast module]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/ast/index.html
3939
[parser module]: https://github.com/rust-lang/rust/tree/master/src/libsyntax/parse
40-
[`Parser`]: https://github.com/rust-lang/rust/blob/master/src/libsyntax/parse/parser.rs
41-
[`StringReader`]: https://github.com/rust-lang/rust/blob/master/src/libsyntax/parse/lexer/mod.rs
42-
[visit module]: https://github.com/rust-lang/rust/blob/master/src/libsyntax/visit.rs
40+
[`Parser`]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/parse/parser/struct.Parser.html
41+
[`StringReader`]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/parse/lexer/struct.StringReader.html
42+
[visit module]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/visit/index.html

src/traits-lowering-module.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The program clauses described in the
44
[lowering rules](./traits-lowering-rules.html) section are actually
55
created in the [`rustc_traits::lowering`][lowering] module.
66

7-
[lowering]: https://github.com/rust-lang/rust/tree/master/src/librustc_traits/lowering.rs
7+
[lowering]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_traits/lowering/
88

99
## The `program_clauses_for` query
1010

0 commit comments

Comments
 (0)