rust-lang / rustc-dev-guide

A guide to how rustc works and how to contribute to it.
https://rustc-dev-guide.rust-lang.org
Apache License 2.0
1.65k stars 507 forks source link

improve query system documentation #2041

Closed jdonszelmann closed 1 month ago

jdonszelmann commented 1 month ago

Over the last week, I attempted to thoroughly understand rust's query system by implementing a toy one myself. That's not very relevant, but what is, is that I ended up reading the documentation of the query system a bunch of times. I was confused by a few things, and thought I'd clear them up for the next reader. Let me know if there's anything that should be changed.

jdonszelmann commented 1 month ago

In case this is useful, I think I'm mostly adding notes on posts mostly written by you @nikomatsakis. So I guess you'd be the best reviewer for it?