mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-17 20:25:46 +00:00
There is a type `QueryCtxt`, which impls the trait `QueryContext`. Confusingly, there is another type `QueryContext`. The latter is (like `TyCtxt`) just a pointer to a `GlobalContext`. It's not used much, e.g. its `impl` block has a single method. This commit removes `QueryContext`, replacing its use with direct `GlobalCtxt` use.
For more information about how rustc works, see the rustc dev guide.