mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Make validate_mir pull optimized/ctfe MIR for all bodies
This commit is contained in:
parent
a6043039ad
commit
470ada2de0
@ -818,6 +818,13 @@ fn run_required_analyses(tcx: TyCtxt<'_>) {
|
|||||||
});
|
});
|
||||||
sess.time("layout_testing", || layout_test::test_layout(tcx));
|
sess.time("layout_testing", || layout_test::test_layout(tcx));
|
||||||
sess.time("abi_testing", || abi_test::test_abi(tcx));
|
sess.time("abi_testing", || abi_test::test_abi(tcx));
|
||||||
|
if tcx.sess.opts.unstable_opts.validate_mir {
|
||||||
|
sess.time("ensuring_optimized_MIR_is_computable", || {
|
||||||
|
tcx.hir().par_body_owners(|def_id| {
|
||||||
|
tcx.instance_mir(ty::InstanceKind::Item(def_id.into()));
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Runs the type-checking, region checking and other miscellaneous analysis
|
/// Runs the type-checking, region checking and other miscellaneous analysis
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
//@ known-bug: #121127
|
//@ known-bug: #121127
|
||||||
//@ compile-flags: -Zpolymorphize=on -Zinline-mir=yes -C debuginfo=2
|
//@ compile-flags: -Zvalidate-mir -Zinline-mir=yes -C debuginfo=2
|
||||||
// Note that as of PR#123949 this only crashes with debuginfo enabled
|
// Note that as of PR#123949 this only crashes with debuginfo enabled
|
||||||
|
|
||||||
#![feature(specialization)]
|
#![feature(specialization)]
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
//@ compile-flags: -Zpolymorphize=on -Zinline-mir=yes
|
//@ compile-flags: -Zvalidate-mir -Zinline-mir=yes
|
||||||
//@ known-bug: #122909
|
//@ known-bug: #122909
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
//@ known-bug: rust-lang/rust#126896
|
//@ known-bug: rust-lang/rust#126896
|
||||||
//@ compile-flags: -Zpolymorphize=on -Zinline-mir=yes
|
//@ compile-flags: -Zvalidate-mir -Zinline-mir=yes
|
||||||
|
|
||||||
#![feature(type_alias_impl_trait)]
|
#![feature(type_alias_impl_trait)]
|
||||||
type Two<'a, 'b> = impl std::fmt::Debug;
|
type Two<'a, 'b> = impl std::fmt::Debug;
|
||||||
|
Loading…
Reference in New Issue
Block a user