@@ -44,10 +44,10 @@ impls, and struct definitions. Parsing is often the first "phase" of
44
44
transformation that a program goes through in order to become a format that
45
45
chalk can understand.
46
46
47
- ### Rust Intermediate Representation ([ chalk_rust_ir ] )
47
+ ### Rust Intermediate Representation ([ chalk_solve::rust_ir ] )
48
48
49
49
After getting the AST we convert it to a more convenient intermediate
50
- representation called [ ` chalk_rust_ir ` ] [ chalk_rust_ir ] . This is sort of
50
+ representation called ` chalk_rust_ir ` . This is sort of
51
51
analogous to the [ HIR] in Rust. The process of converting to IR is called
52
52
* lowering* .
53
53
@@ -133,12 +133,12 @@ queries is called the *solver*.
133
133
134
134
Chalk's functionality is broken up into the following crates:
135
135
- [ ** chalk_engine** ] [ chalk_engine ] : Defines the core [ SLG solver] [ slg ] .
136
- - [ ** chalk_rust_ir** ] [ chalk_rust_ir ] , containing the "HIR-like" form of the AST
137
136
- [ ** chalk_ir** ] [ chalk_ir ] : Defines chalk's internal representation of
138
137
types, lifetimes, and goals.
139
138
- [ ** chalk_solve** ] [ chalk_solve ] : Combines ` chalk_ir ` and ` chalk_engine ` ,
140
139
effectively, which implements logic rules converting ` chalk_rust_ir ` to
141
140
` chalk_ir `
141
+ - Contains the ` rust_ir ` module, which defines the "HIR-like" Rust IR
142
142
- Defines the ` coherence ` module, which implements coherence rules
143
143
- [ ` chalk_engine::context ` ] [ engine-context ] provides the necessary hooks.
144
144
- [ ** chalk_parse** ] [ chalk_parse ] : Defines the raw AST and a parser.
@@ -197,7 +197,7 @@ Likewise, lowering tests use the [`lowering_success!` and
197
197
[ chalk_ir ] : https://rust-lang.github.io/chalk/chalk_ir/index.html
198
198
[ chalk_parse ] : https://rust-lang.github.io/chalk/chalk_parse/index.html
199
199
[ chalk_solve ] : https://rust-lang.github.io/chalk/chalk_solve/index.html
200
- [ chalk_rust_ir ] : https://rust-lang.github.io/chalk/chalk_rust_ir /index.html
200
+ [ chalk_solve::rust_ir ] : https://rust-lang.github.io/chalk/chalk_solve/rust_ir /index.html
201
201
[ doc-chalk ] : https://rust-lang.github.io/chalk/chalk/index.html
202
202
[ engine-context ] : https://rust-lang.github.io/chalk/chalk_engine/context/index.html
203
203
[ chalk-program ] : https://rust-lang.github.io/chalk/chalk_integration/program/struct.Program.html
@@ -211,7 +211,7 @@ Likewise, lowering tests use the [`lowering_success!` and
211
211
[ chalki ] : https://github.com/rust-lang/chalk/blob/master/src/main.rs
212
212
[ clause ] : https://github.com/rust-lang/chalk/blob/master/GLOSSARY.md#clause
213
213
[ coherence-src ] : https://rust-lang.github.io/chalk/chalk_solve/coherence/index.html
214
- [ ir-code ] : https://rust-lang.github.io/chalk/chalk_rust_ir /
214
+ [ ir-code ] : https://rust-lang.github.io/chalk/chalk_solve/rust_ir /
215
215
[ solve-wf-src ] : https://rust-lang.github.io/chalk/chalk_solve/wf/index.html
216
216
[ solve_goal ] : https://github.com/rust-lang/chalk/blob/4bce000801de31bf45c02f742a5fce335c9f035f/src/test.rs#L85
217
217
[ test-lowering-macros ] : https://github.com/rust-lang/chalk/blob/4bce000801de31bf45c02f742a5fce335c9f035f/src/test_util.rs#L21-L54
0 commit comments