From 9943b56061a30febb019d1cfab641d22e6166c03 Mon Sep 17 00:00:00 2001 From: Ben Kimock Date: Wed, 18 Jan 2023 17:23:48 -0500 Subject: [PATCH] Enable validate-mir by default --- compiler/rustc_session/src/options.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs index 7b5fd6cc2a81d..3efdf625c4cbe 100644 --- a/compiler/rustc_session/src/options.rs +++ b/compiler/rustc_session/src/options.rs @@ -1671,7 +1671,7 @@ options! { "adds unstable command line options to rustc interface (default: no)"), use_ctors_section: Option = (None, parse_opt_bool, [TRACKED], "use legacy .ctors section for initializers rather than .init_array"), - validate_mir: bool = (false, parse_bool, [UNTRACKED], + validate_mir: bool = (true, parse_bool, [UNTRACKED], "validate MIR after each transformation"), #[rustc_lint_opt_deny_field_access("use `Session::verbose` instead of this field")] verbose: bool = (false, parse_bool, [UNTRACKED],