Improve documentation of MIR queries & passes by Jaic1 · Pull Request #1434 · rust-lang/rustc-dev-guide (original) (raw)
This PR improve the documentation of MIR queries and passes.
Below is the summary of changes:
- delete
mir_validated - add
mir_promotedandmir_drops_elaborated_and_const_checked - replace the
NoLandingPadspass example withCleanupNonCodegenStatements - extend the stealing mechanism and give the dependency of MIR queries as an overview
- add
mdbook-mermaidin the build instructions
FIXME:
- Does
ty::queries::foo::force(...)still appear in rustc?
Since rust-lang/rust#99102 may significantly change the MIR queries (and thus its doc), we can wait for its result or send follow-up PRs. This is mostly documenting the code in rustc_mir_transform, so maybe cc @rust-lang/wg-mir-opt.