diff options
| author | Wesley Wiser <wwiser@gmail.com> | 2020-09-18 20:14:27 -0400 |
|---|---|---|
| committer | Wesley Wiser <wwiser@gmail.com> | 2020-09-27 19:21:01 -0400 |
| commit | b9d0ea95c8d87310262f6f6cb88c16f6d3d323cc (patch) | |
| tree | eca75f5b5e680d178c067119172c7a3175cad3c5 /compiler/rustc_session/src | |
| parent | 7f7a1cbfd3b55daee191247770627afab09eece2 (diff) | |
| download | rust-b9d0ea95c8d87310262f6f6cb88c16f6d3d323cc.tar.gz rust-b9d0ea95c8d87310262f6f6cb88c16f6d3d323cc.zip | |
[mir-opt] Introduce a new flag to enable experimental/unsound mir opts
Diffstat (limited to 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/options.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs index 8cc55f4ebe8..712c9cb87c9 100644 --- a/compiler/rustc_session/src/options.rs +++ b/compiler/rustc_session/src/options.rs @@ -1115,6 +1115,8 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options, `hir,typed` (HIR with types for each node), `hir-tree` (dump the raw HIR), `mir` (the MIR), or `mir-cfg` (graphviz formatted MIR)"), + unsound_mir_opts: bool = (false, parse_bool, [TRACKED], + "enable unsound and buggy MIR optimizations (default: no)"), unstable_options: bool = (false, parse_bool, [UNTRACKED], "adds unstable command line options to rustc interface (default: no)"), use_ctors_section: Option<bool> = (None, parse_opt_bool, [TRACKED], |
