]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #45916 - eddyb:even-mirer-0, r=nikomatsakis
authorbors <bors@rust-lang.org>
Tue, 14 Nov 2017 07:54:51 +0000 (07:54 +0000)
committerbors <bors@rust-lang.org>
Tue, 14 Nov 2017 07:54:51 +0000 (07:54 +0000)
rustc_mir: hardcode pass list internally and remove premature pluggability.

Fixes #41712 by moving the MIR pass lists from `rustc_driver` to `rustc_mir`.
The application of the passes is done with the `rustc_mir::transform::run_passes` macro, which is public, as are all the passes AFAIK, and can be used to apply MIR passes outside of `rustc_mir`.

With the ability to override query providers through the `rustc_driver` (orthogonal to, and not included in this PR), custom drivers will be able to substitute the entire pass list if they want to.
**EDIT**: the aforementioned ability is added by #45944.

r? @nikomatsakis


Trivial merge