This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +10
-3
lines changed
compiler/rustc_interface/src Expand file tree Collapse file tree 4 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -818,6 +818,13 @@ fn run_required_analyses(tcx: TyCtxt<'_>) {
818818 } ) ;
819819 sess. time ( "layout_testing" , || layout_test:: test_layout ( tcx) ) ;
820820 sess. time ( "abi_testing" , || abi_test:: test_abi ( tcx) ) ;
821+ if tcx. sess . opts . unstable_opts . validate_mir {
822+ sess. time ( "ensuring_optimized_MIR_is_computable" , || {
823+ tcx. hir ( ) . par_body_owners ( |def_id| {
824+ tcx. instance_mir ( ty:: InstanceKind :: Item ( def_id. into ( ) ) ) ;
825+ } ) ;
826+ } ) ;
827+ }
821828}
822829
823830/// Runs the type-checking, region checking and other miscellaneous analysis
Original file line number Diff line number Diff line change 11//@ known-bug: #121127
2- //@ compile-flags: -Zpolymorphize=on -Zinline-mir=yes -C debuginfo=2
2+ //@ compile-flags: -Zvalidate-mir -Zinline-mir=yes -C debuginfo=2
33// Note that as of PR#123949 this only crashes with debuginfo enabled
44
55#![ feature( specialization) ]
Original file line number Diff line number Diff line change 1- //@ compile-flags: -Zpolymorphize=on -Zinline-mir=yes
1+ //@ compile-flags: -Zvalidate-mir -Zinline-mir=yes
22//@ known-bug: #122909
33
44
Original file line number Diff line number Diff line change 11//@ known-bug: rust-lang/rust#126896
2- //@ compile-flags: -Zpolymorphize=on -Zinline-mir=yes
2+ //@ compile-flags: -Zvalidate-mir -Zinline-mir=yes
33
44#![ feature( type_alias_impl_trait) ]
55type Two < ' a , ' b > = impl std:: fmt:: Debug ;
You can’t perform that action at this time.
0 commit comments