@@ -126,18 +126,18 @@ things", chalk_ir defines [`ProgramEnvironment`] which is "pure logic".
126
126
The main field in that struct is ` program_clauses ` , which contains the
127
127
[ ` ProgramClause ` ] s generated by the rules module.
128
128
129
- ### Rules ([ chalk_rules ] )
129
+ ### Rules ([ chalk_solve ] )
130
130
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,
133
133
etc. and emitting the rules that come from each one.
134
134
135
135
* See also: [ Lowering Rules] [ lowering-rules ] *
136
136
137
137
#### Well-formedness checks
138
138
139
139
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.
141
141
142
142
* See also: [ Well-formedness checking] [ wf-checking ] *
143
143
@@ -163,12 +163,11 @@ Chalk's functionality is broken up into the following crates:
163
163
- [ ** chalk_ir** ] [ chalk_ir ] : Defines chalk's internal representation of
164
164
types, lifetimes, and goals.
165
165
- [ ** 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
167
169
- [ ` chalk_engine::context ` ] [ engine-context ] provides the necessary hooks.
168
170
- [ ** 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
172
171
- [ ** chalk** ] [ doc-chalk ] : Brings everything together. Defines the following
173
172
modules:
174
173
- ` chalk::lowering ` , which converts AST to ` chalk_rust_ir `
@@ -236,7 +235,6 @@ Likewise, lowering tests use the [`lowering_success!` and
236
235
[ chalk_ir ] : https://rust-lang.github.io/chalk/doc/chalk_ir/index.html
237
236
[ chalk_parse ] : https://rust-lang.github.io/chalk/doc/chalk_parse/index.html
238
237
[ 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
240
238
[ chalk_rust_ir ] : https://rust-lang.github.io/chalk/doc/chalk_rust_ir/index.html
241
239
[ doc-chalk ] : https://rust-lang.github.io/chalk/doc/chalk/index.html
242
240
[ 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
250
248
[ chalk-test-wf ] : https://github.com/rust-lang/chalk/blob/4bce000801de31bf45c02f742a5fce335c9f035f/src/rules/wf/test.rs#L1
251
249
[ chalki ] : https://rust-lang.github.io/chalk/doc/chalki/index.html
252
250
[ 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
254
252
[ 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
256
254
[ solve_goal ] : https://github.com/rust-lang/chalk/blob/4bce000801de31bf45c02f742a5fce335c9f035f/src/test.rs#L85
257
255
[ test-lowering-macros ] : https://github.com/rust-lang/chalk/blob/4bce000801de31bf45c02f742a5fce335c9f035f/src/test_util.rs#L21-L54
258
256
[ test-macro ] : https://github.com/rust-lang/chalk/blob/4bce000801de31bf45c02f742a5fce335c9f035f/src/test.rs#L33
0 commit comments