Skip to content

Commit 1d21a78

Browse files
committed
Update readme section "How does chalk relate to rustc"
1 parent b41dc49 commit 1d21a78

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ See the [Chalk book](https://rust-lang.github.io/chalk/book/) for more informati
1111

1212
## FAQ
1313

14-
**How does chalk relate to rustc?** The plan is to have rustc use the `chalk-engine` crate (in this repo), which defines
15-
chalk's solver. The rest of chalk can then be considered an elaborate unit testing harness. For more details, see
16-
[this chapter of the rustc-dev-guide](https://rustc-dev-guide.rust-lang.org/traits/chalk.html).
14+
**How does chalk relate to rustc?** The plan is to have rustc use the
15+
`chalk-solve` crate (in this repo) to answer questions about Rust programs, for
16+
example, "Does `Vec<u32>` implement `Debug`?". Internally, chalk converts
17+
Rust-specific information into logic and uses a logic engine to find the answer
18+
to the original query. For more details, see
19+
[this explanation in the chalk book][chalk-lowering-details].
1720

1821
**Where does the name come from?** `chalk` is named after [Chalkidiki], the area where [Aristotle] was
1922
born. Since Prolog is a logic programming language, this seemed a
@@ -22,6 +25,7 @@ suitable reference.
2225
[Prolog]: https://en.wikipedia.org/wiki/Prolog
2326
[Chalkidiki]: https://en.wikipedia.org/wiki/Chalkidiki
2427
[Aristotle]: https://en.wikipedia.org/wiki/Aristotle
28+
[chalk-lowering-details]: http://rust-lang.github.io/chalk/book/#chalk-works-by-converting-rust-goals-into-logical-inference-rules
2529

2630
## Blog posts
2731
[blog-posts]: #blog-posts

0 commit comments

Comments
 (0)