Skip to content

Commit

Permalink
Auto merge of #126834 - bjorn3:interface_refactor, r=michaelwoerister
Browse files Browse the repository at this point in the history
Various refactorings to rustc_interface

This should make it easier to move the driver interface away from queries in the future. Many custom drivers call queries like `queries.global_ctxt()` before they are supposed to be called, breaking some things like certain `--print` and `-Zunpretty` options, `-Zparse-only` and emitting the dep info at the wrong point in time. They are also not actually necessary at all. Passing around the query output manually would avoid recomputation too and would be just as easy. Removing driver queries would also reduce the amount of global mutable state of the compiler. I'm not removing driver queries in this PR to avoid breaking the aforementioned custom drivers.
  • Loading branch information
bors committed Jun 25, 2024
2 parents 24e16c6 + 31a98c7 commit bcf354a
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit bcf354a

Please sign in to comment.