by Raphael_Amiard · 10y ago · 0 comments
If I was to implement incremental compilation, I'd start with per-module I guess, because it's the atomic unit for a compiler, so it would be a lot simpler. That's why I'm curious.
https://manishearth.github.io/rust-internals-docs/rustc/dep_...
Note that as per:
https://manishearth.github.io/rust-internals-docs/rustc/dep_...
The DepGraph that we actually care about is specialized to talk about DefIds. In rustc, DefIds are attached to the following things:
https://manishearth.github.io/rust-internals-docs/rustc/hir/...
This means dependencies are analyzed down to local variables and uses. But even beyond that it tracks things such as borrow checks, linting and more!