mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-03 06:25:40 +00:00
Remove CrateNum parameter for queries that only work on local crate The pervasive `CrateNum` parameter is a remnant of the multi-crate rustc idea. Using `()` as query key in those cases avoids having to worry about the validity of the query key.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.