Skip to content

Commit bca7b02

Browse files
committed
Rename debugging_opts to unstable_opts
This is no longer used only for debugging options (e.g. `-Zoutput-width`, `-Zallow-features`). Rename it to be more clear.
1 parent 6bcab05 commit bca7b02

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/allocator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ pub(crate) unsafe fn codegen(tcx: TyCtxt<'_>, mods: &mut GccContext, _module_nam
117117

118118
let name = OomStrategy::SYMBOL.to_string();
119119
let global = context.new_global(None, GlobalKind::Exported, i8, name);
120-
let value = tcx.sess.opts.debugging_opts.oom.should_panic();
120+
let value = tcx.sess.opts.unstable_opts.oom.should_panic();
121121
let value = context.new_rvalue_from_int(i8, value as i32);
122122
global.global_set_initializer_rvalue(value);
123123
}

src/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ pub fn compile_codegen_unit<'tcx>(tcx: TyCtxt<'tcx>, cgu_name: Symbol, supports_
9696
// NOTE: Rust relies on LLVM not doing TBAA (https://github.com/rust-lang/unsafe-code-guidelines/issues/292).
9797
context.add_command_line_option("-fno-strict-aliasing");
9898

99-
if tcx.sess.opts.debugging_opts.function_sections.unwrap_or(tcx.sess.target.function_sections) {
99+
if tcx.sess.opts.unstable_opts.function_sections.unwrap_or(tcx.sess.target.function_sections) {
100100
context.add_command_line_option("-ffunction-sections");
101101
context.add_command_line_option("-fdata-sections");
102102
}

0 commit comments

Comments
 (0)