]> git.lizzy.rs Git - rust.git/commitdiff
Rename `debugging_opts` to `unstable_opts`
authorJoshua Nelson <jnelson@cloudflare.com>
Wed, 6 Jul 2022 12:44:47 +0000 (07:44 -0500)
committerJoshua Nelson <jnelson@cloudflare.com>
Wed, 13 Jul 2022 22:47:06 +0000 (17:47 -0500)
This is no longer used only for debugging options (e.g. `-Zoutput-width`, `-Zallow-features`).
Rename it to be more clear.

src/allocator.rs
src/cast.rs
src/debuginfo/line_info.rs
src/driver/aot.rs
src/intrinsics/mod.rs

index c3b99b64263f2988585865eba773efbab4b8eb1d..6d321c7b298a730464bbf88e4e723afc52a7e501 100644 (file)
@@ -24,7 +24,7 @@ pub(crate) fn codegen(
             unwind_context,
             kind,
             tcx.lang_items().oom().is_some(),
-            tcx.sess.opts.debugging_opts.oom,
+            tcx.sess.opts.unstable_opts.oom,
         );
         true
     } else {
index e19070774c6e0c246662f55ed06e4cf5a53f17e0..b24e49e94c91ecfa850ec44c48dc5f1b368b7114 100644 (file)
@@ -144,7 +144,7 @@ pub(crate) fn clif_int_or_float_cast(
             fx.bcx.ins().fcvt_to_uint_sat(to_ty, from)
         };
 
-        if let Some(false) = fx.tcx.sess.opts.debugging_opts.saturating_float_casts {
+        if let Some(false) = fx.tcx.sess.opts.unstable_opts.saturating_float_casts {
             return val;
         }
 
index 476d6a54e125658d9ec2568a4cd861298bcabe9e..bbcb9591373dd7192f2e8b7f05a1063fbd0ed348 100644 (file)
@@ -140,7 +140,7 @@ pub(super) fn create_debug_lines(
             // In order to have a good line stepping behavior in debugger, we overwrite debug
             // locations of macro expansions with that of the outermost expansion site
             // (unless the crate is being compiled with `-Z debug-macros`).
-            let span = if !span.from_expansion() || tcx.sess.opts.debugging_opts.debug_macros {
+            let span = if !span.from_expansion() || tcx.sess.opts.unstable_opts.debug_macros {
                 span
             } else {
                 // Walk up the macro expansion chain until we reach a non-expanded span.
index 50d8fc30d7d7cabe13275e9a3c099834abb37c69..3cd1ef5639ef9f2e33f9c06e606ce4701fbf1ec2 100644 (file)
@@ -33,7 +33,7 @@ fn make_module(sess: &Session, isa: Box<dyn TargetIsa>, name: String) -> ObjectM
     // Unlike cg_llvm, cg_clif defaults to disabling -Zfunction-sections. For cg_llvm binary size
     // is important, while cg_clif cares more about compilation times. Enabling -Zfunction-sections
     // can easily double the amount of time necessary to perform linking.
-    builder.per_function_section(sess.opts.debugging_opts.function_sections.unwrap_or(false));
+    builder.per_function_section(sess.opts.unstable_opts.function_sections.unwrap_or(false));
     ObjectModule::new(builder)
 }
 
index 6937e658ed5ee8a8abe7e5909637fe6611251905..eafae1cdc8af0f2aa3713fd1400e5c7207cf0eee 100644 (file)
@@ -676,7 +676,7 @@ fn swap(bcx: &mut FunctionBuilder<'_>, v: Value) -> Value {
                 && !layout.might_permit_raw_init(
                     fx,
                     InitKind::Zero,
-                    fx.tcx.sess.opts.debugging_opts.strict_init_checks) {
+                    fx.tcx.sess.opts.unstable_opts.strict_init_checks) {
 
                 with_no_trimmed_paths!({
                     crate::base::codegen_panic(
@@ -692,7 +692,7 @@ fn swap(bcx: &mut FunctionBuilder<'_>, v: Value) -> Value {
                 && !layout.might_permit_raw_init(
                     fx,
                     InitKind::Uninit,
-                    fx.tcx.sess.opts.debugging_opts.strict_init_checks) {
+                    fx.tcx.sess.opts.unstable_opts.strict_init_checks) {
 
                 with_no_trimmed_paths!({
                     crate::base::codegen_panic(