Skip to content

Commit 37b288e

Browse files
tshepangspastorino
authored andcommitted
fix chalk links (#457)
* whitespace * update links
1 parent fbe1a9a commit 37b288e

File tree

3 files changed

+28
-28
lines changed

3 files changed

+28
-28
lines changed

Diff for: src/macro-expansion.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ TODO
205205
TODO: maybe something about macros 2.0?
206206
207207
208-
[code_dir]: https://github.com/rust-lang/rust/tree/master/src/libsyntax/ext/tt
209-
[code_mp]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/ext/tt/macro_parser/
210-
[code_mr]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/ext/tt/macro_rules/
211-
[code_parse_int]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/ext/tt/macro_parser/fn.parse.html
208+
[code_dir]: https://github.com/rust-lang/rust/tree/master/src/libsyntax/ext/mbe
209+
[code_mp]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/ext/mbe/macro_parser
210+
[code_mr]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/ext/mbe/macro_rules
211+
[code_parse_int]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/ext/mbe/macro_parser/fn.parse.html
212212
[parsing]: ./the-parser.html

Diff for: src/traits/chalk-overview.md

+17-17
Original file line numberDiff line numberDiff line change
@@ -229,28 +229,28 @@ Likewise, lowering tests use the [`lowering_success!` and
229229
[rustc-issues]: https://github.com/rust-lang/rustc-guide/issues
230230
[universal quantification]: https://en.wikipedia.org/wiki/Universal_quantification
231231

232-
[`ProgramClause`]: https://rust-lang.github.io/chalk/doc/chalk_ir/enum.ProgramClause.html
233-
[`ProgramEnvironment`]: https://rust-lang.github.io/chalk/doc/chalk/program_environment/struct.ProgramEnvironment.html
234-
[chalk_engine]: https://rust-lang.github.io/chalk/doc/chalk_engine/index.html
235-
[chalk_ir]: https://rust-lang.github.io/chalk/doc/chalk_ir/index.html
236-
[chalk_parse]: https://rust-lang.github.io/chalk/doc/chalk_parse/index.html
237-
[chalk_solve]: https://rust-lang.github.io/chalk/doc/chalk_solve/index.html
238-
[chalk_rust_ir]: https://rust-lang.github.io/chalk/doc/chalk_rust_ir/index.html
239-
[doc-chalk]: https://rust-lang.github.io/chalk/doc/chalk/index.html
240-
[engine-context]: https://rust-lang.github.io/chalk/doc/chalk_engine/context/index.html
241-
[chalk-program]: https://rust-lang.github.io/chalk/doc/chalk/program/struct.Program.html
242-
243-
[binders-struct]: https://rust-lang.github.io/chalk/doc/chalk_ir/struct.Binders.html
244-
[chalk-ast]: https://rust-lang.github.io/chalk/doc/chalk_parse/ast/index.html
232+
[`ProgramClause`]: https://rust-lang.github.io/chalk/chalk_ir/enum.ProgramClause.html
233+
[`ProgramEnvironment`]: https://rust-lang.github.io/chalk/chalk/program_environment/struct.ProgramEnvironment.html
234+
[chalk_engine]: https://rust-lang.github.io/chalk/chalk_engine
235+
[chalk_ir]: https://rust-lang.github.io/chalk/chalk_ir/index.html
236+
[chalk_parse]: https://rust-lang.github.io/chalk/chalk_parse/index.html
237+
[chalk_solve]: https://rust-lang.github.io/chalk/chalk_solve/index.html
238+
[chalk_rust_ir]: https://rust-lang.github.io/chalk/chalk_rust_ir/index.html
239+
[doc-chalk]: https://rust-lang.github.io/chalk/chalk/index.html
240+
[engine-context]: https://rust-lang.github.io/chalk/chalk_engine/context/index.html
241+
[chalk-program]: https://rust-lang.github.io/chalk/chalk/program/struct.Program.html
242+
243+
[binders-struct]: https://rust-lang.github.io/chalk/chalk_ir/struct.Binders.html
244+
[chalk-ast]: https://rust-lang.github.io/chalk/chalk_parse/ast/index.html
245245
[chalk-test-example]: https://github.com/rust-lang/chalk/blob/4bce000801de31bf45c02f742a5fce335c9f035f/src/test.rs#L115
246246
[chalk-test-lowering-example]: https://github.com/rust-lang/chalk/blob/4bce000801de31bf45c02f742a5fce335c9f035f/src/rust_ir/lowering/test.rs#L8-L31
247247
[chalk-test-lowering]: https://github.com/rust-lang/chalk/blob/4bce000801de31bf45c02f742a5fce335c9f035f/src/rust_ir/lowering/test.rs
248248
[chalk-test-wf]: https://github.com/rust-lang/chalk/blob/4bce000801de31bf45c02f742a5fce335c9f035f/src/rules/wf/test.rs#L1
249-
[chalki]: https://rust-lang.github.io/chalk/doc/chalki/index.html
249+
[chalki]: https://rust-lang.github.io/chalk/chalki/index.html
250250
[clause]: https://github.com/rust-lang/chalk/blob/master/GLOSSARY.md#clause
251-
[coherence-src]: https://rust-lang.github.io/chalk/doc/chalk_solve/coherence/index.html
252-
[ir-code]: https://rust-lang.github.io/chalk/doc/chalk_rust_ir/
253-
[solve-wf-src]: https://rust-lang.github.io/chalk/doc/chalk_solve/wf/index.html
251+
[coherence-src]: https://rust-lang.github.io/chalk/chalk_solve/coherence/index.html
252+
[ir-code]: https://rust-lang.github.io/chalk/chalk_rust_ir/
253+
[solve-wf-src]: https://rust-lang.github.io/chalk/chalk_solve/wf/index.html
254254
[solve_goal]: https://github.com/rust-lang/chalk/blob/4bce000801de31bf45c02f742a5fce335c9f035f/src/test.rs#L85
255255
[test-lowering-macros]: https://github.com/rust-lang/chalk/blob/4bce000801de31bf45c02f742a5fce335c9f035f/src/test_util.rs#L21-L54
256256
[test-macro]: https://github.com/rust-lang/chalk/blob/4bce000801de31bf45c02f742a5fce335c9f035f/src/test.rs#L33

Diff for: src/traits/slg.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ well as the various *strands*, which are basically suspended
4747
computations that may be used to find more answers. Tables are
4848
interdependent: solving one query may require solving others.
4949

50-
[`Forest`]: https://rust-lang.github.io/chalk/doc/chalk_engine/forest/struct.Forest.html
50+
[`Forest`]: https://rust-lang.github.io/chalk/chalk_engine/forest/struct.Forest.html
5151

5252
### Walkthrough
5353

@@ -126,7 +126,7 @@ literals and region constraints, an X-clause just looks like this:
126126
```text
127127
G :- L
128128
```
129-
129+
130130
where G is a goal and L is a set of subgoals that must be proven.
131131
(The L stands for *literal* -- when we address negative reasoning, a
132132
literal will be either a positive or negative subgoal.) The idea is
@@ -150,7 +150,7 @@ is the subgoal after the turnstile (`:-`) that we are currently trying
150150
to prove in this strand. Initially, when a strand is first created,
151151
there is no selected subgoal.
152152

153-
[`ExClause`]: https://rust-lang.github.io/chalk/doc/chalk_engine/struct.ExClause.html
153+
[`ExClause`]: https://rust-lang.github.io/chalk/chalk_engine/struct.ExClause.html
154154

155155
**Activating a strand.** Now that we have created the table T0 and
156156
initialized it with strands, we have to actually try and produce an answer.
@@ -182,12 +182,12 @@ the state of the strand to:
182182
```text
183183
(Rc<?T>: Debug) :- selected(?T: Debug, A0)
184184
```
185-
185+
186186
Here, we write `selected(L, An)` to indicate that (a) the literal `L`
187187
is the selected subgoal and (b) which answer `An` we are looking for. We
188188
start out looking for `A0`.
189189

190-
[`ensure_root_answer`]: https://rust-lang.github.io/chalk/doc/chalk_engine/forest/struct.Forest.html#method.ensure_root_answer
190+
[`ensure_root_answer`]: https://rust-lang.github.io/chalk/chalk_engine/forest/struct.Forest.html#method.ensure_root_answer
191191

192192
**Processing the selected subgoal.** Next, we have to try and find an
193193
answer to this selected goal. To do that, we will u-canonicalize it
@@ -210,14 +210,14 @@ follows:
210210
Table T0 [Rc<?0>: Debug]
211211
Strands:
212212
(Rc<?T>: Debug) :- selected(?T: Debug, A0)
213-
213+
214214
Table T1 [?0: Debug]
215215
Strands:
216216
(u32: Debug) :-
217217
(Vec<?U>: Debug) :- (?U: Debug)
218218
(Rc<?V>: Debug) :- (?V: Debug)
219219
```
220-
220+
221221
**Delegation between tables.** Now that the active strand from T0 has
222222
created the table T1, it can try to extract an answer. It does this
223223
via that same `ensure_answer` operation we saw before. In this case,

0 commit comments

Comments
 (0)