mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-23 21:54:16 +00:00
Most of the tracing calls didn't fully leverage the power of `tracing`. For example, several of them used to hard-code method names / tracing spans as well as variable names. Use `#[instrument]` and `?var` / `%var` (etc.) instead. In my opinion, this is the proper way to migrate them from the old AstConv nomenclature to the new HIR ty lowering one.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.