]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_session/src/options.rs
Auto merge of #83129 - LeSeulArtichaut:thir-unsafeck, r=nikomatsakis
[rust.git] / compiler / rustc_session / src / options.rs
index d2145b2865b179469167b6c2932ab6e59ae02a6e..c9f95ed1224d0d23312b94e6c8952b491dd0c110 100644 (file)
@@ -1254,6 +1254,8 @@ mod parse {
         "select processor to schedule for (`rustc --print target-cpus` for details)"),
     thinlto: Option<bool> = (None, parse_opt_bool, [TRACKED],
         "enable ThinLTO when possible"),
+    thir_unsafeck: bool = (false, parse_bool, [TRACKED],
+        "use the work-in-progress THIR unsafety checker. NOTE: this is unsound (default: no)"),
     /// We default to 1 here since we want to behave like
     /// a sequential compiler for now. This'll likely be adjusted
     /// in the future. Note that -Zthreads=0 is the way to get