Skip to content

Commit d3a395f

Browse files
igaraymark-i-m
authored andcommitted
Fixed links broken by merging chalks rules and solve
1 parent 7068677 commit d3a395f

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

src/traits/chalk-overview.md

+9-11
Original file line numberDiff line numberDiff line change
@@ -126,18 +126,18 @@ things", chalk_ir defines [`ProgramEnvironment`] which is "pure logic".
126126
The main field in that struct is `program_clauses`, which contains the
127127
[`ProgramClause`]s generated by the rules module.
128128

129-
### Rules ([chalk_rules])
129+
### Rules ([chalk_solve])
130130

131-
The `chalk_rules` crate ([source code][chalk_rules]) defines the logic rules we use
132-
for each item in the Rust IR. It works by iterating over every trait, impl,
131+
The `chalk_solve` crate ([source code][chalk_solve]) defines the logic rules we
132+
use for each item in the Rust IR. It works by iterating over every trait, impl,
133133
etc. and emitting the rules that come from each one.
134134

135135
*See also: [Lowering Rules][lowering-rules]*
136136

137137
#### Well-formedness checks
138138

139139
As part of lowering to logic, we also do some "well formedness" checks. See
140-
the [`chalk_rules::wf` source code][rules-wf-src] for where those are done.
140+
the [`chalk_solve::wf` source code][solve-wf-src] for where those are done.
141141

142142
*See also: [Well-formedness checking][wf-checking]*
143143

@@ -163,12 +163,11 @@ Chalk's functionality is broken up into the following crates:
163163
- [**chalk_ir**][chalk_ir]: Defines chalk's internal representation of
164164
types, lifetimes, and goals.
165165
- [**chalk_solve**][chalk_solve]: Combines `chalk_ir` and `chalk_engine`,
166-
effectively.
166+
effectively, which implements logic rules converting `chalk_rust_ir` to
167+
`chalk_ir`
168+
- Defines the `coherence` module, which implements coherence rules
167169
- [`chalk_engine::context`][engine-context] provides the necessary hooks.
168170
- [**chalk_parse**][chalk_parse]: Defines the raw AST and a parser.
169-
- [**chalk_rules**][chalk_rules]: which implements logic rules converting
170-
`chalk_rust_ir` to `chalk_ir`
171-
- Defines the `coherence` module, which implements coherence rules
172171
- [**chalk**][doc-chalk]: Brings everything together. Defines the following
173172
modules:
174173
- `chalk::lowering`, which converts AST to `chalk_rust_ir`
@@ -236,7 +235,6 @@ Likewise, lowering tests use the [`lowering_success!` and
236235
[chalk_ir]: https://rust-lang.github.io/chalk/doc/chalk_ir/index.html
237236
[chalk_parse]: https://rust-lang.github.io/chalk/doc/chalk_parse/index.html
238237
[chalk_solve]: https://rust-lang.github.io/chalk/doc/chalk_solve/index.html
239-
[chalk_rules]: https://rust-lang.github.io/chalk/doc/chalk_rules/index.html
240238
[chalk_rust_ir]: https://rust-lang.github.io/chalk/doc/chalk_rust_ir/index.html
241239
[doc-chalk]: https://rust-lang.github.io/chalk/doc/chalk/index.html
242240
[engine-context]: https://rust-lang.github.io/chalk/doc/chalk_engine/context/index.html
@@ -250,9 +248,9 @@ Likewise, lowering tests use the [`lowering_success!` and
250248
[chalk-test-wf]: https://github.com/rust-lang/chalk/blob/4bce000801de31bf45c02f742a5fce335c9f035f/src/rules/wf/test.rs#L1
251249
[chalki]: https://rust-lang.github.io/chalk/doc/chalki/index.html
252250
[clause]: https://github.com/rust-lang/chalk/blob/master/GLOSSARY.md#clause
253-
[coherence-src]: http://rust-lang.github.io/chalk/doc/chalk_rules/coherence/index.html
251+
[coherence-src]: http://rust-lang.github.io/chalk/doc/chalk_solve/coherence/index.html
254252
[ir-code]: http://rust-lang.github.io/chalk/doc/chalk_rust_ir/
255-
[rules-wf-src]: http://rust-lang.github.io/chalk/doc/chalk_rules/wf/index.html
253+
[solve-wf-src]: http://rust-lang.github.io/chalk/doc/chalk_solve/wf/index.html
256254
[solve_goal]: https://github.com/rust-lang/chalk/blob/4bce000801de31bf45c02f742a5fce335c9f035f/src/test.rs#L85
257255
[test-lowering-macros]: https://github.com/rust-lang/chalk/blob/4bce000801de31bf45c02f742a5fce335c9f035f/src/test_util.rs#L21-L54
258256
[test-macro]: https://github.com/rust-lang/chalk/blob/4bce000801de31bf45c02f742a5fce335c9f035f/src/test.rs#L33

0 commit comments

Comments
 (0)