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.
This commit is contained in:
parent
43388812a6
commit
b2ae24e6a1
@ -24,7 +24,7 @@ pub(crate) fn codegen(
|
|||||||
unwind_context,
|
unwind_context,
|
||||||
kind,
|
kind,
|
||||||
tcx.lang_items().oom().is_some(),
|
tcx.lang_items().oom().is_some(),
|
||||||
tcx.sess.opts.debugging_opts.oom,
|
tcx.sess.opts.unstable_opts.oom,
|
||||||
);
|
);
|
||||||
true
|
true
|
||||||
} else {
|
} else {
|
||||||
|
@ -144,7 +144,7 @@ pub(crate) fn clif_int_or_float_cast(
|
|||||||
fx.bcx.ins().fcvt_to_uint_sat(to_ty, from)
|
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;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -140,7 +140,7 @@ pub(super) fn create_debug_lines(
|
|||||||
// In order to have a good line stepping behavior in debugger, we overwrite debug
|
// 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
|
// locations of macro expansions with that of the outermost expansion site
|
||||||
// (unless the crate is being compiled with `-Z debug-macros`).
|
// (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
|
span
|
||||||
} else {
|
} else {
|
||||||
// Walk up the macro expansion chain until we reach a non-expanded span.
|
// Walk up the macro expansion chain until we reach a non-expanded span.
|
||||||
|
@ -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
|
// 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
|
// is important, while cg_clif cares more about compilation times. Enabling -Zfunction-sections
|
||||||
// can easily double the amount of time necessary to perform linking.
|
// 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)
|
ObjectModule::new(builder)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -676,7 +676,7 @@ fn swap(bcx: &mut FunctionBuilder<'_>, v: Value) -> Value {
|
|||||||
&& !layout.might_permit_raw_init(
|
&& !layout.might_permit_raw_init(
|
||||||
fx,
|
fx,
|
||||||
InitKind::Zero,
|
InitKind::Zero,
|
||||||
fx.tcx.sess.opts.debugging_opts.strict_init_checks) {
|
fx.tcx.sess.opts.unstable_opts.strict_init_checks) {
|
||||||
|
|
||||||
with_no_trimmed_paths!({
|
with_no_trimmed_paths!({
|
||||||
crate::base::codegen_panic(
|
crate::base::codegen_panic(
|
||||||
@ -692,7 +692,7 @@ fn swap(bcx: &mut FunctionBuilder<'_>, v: Value) -> Value {
|
|||||||
&& !layout.might_permit_raw_init(
|
&& !layout.might_permit_raw_init(
|
||||||
fx,
|
fx,
|
||||||
InitKind::Uninit,
|
InitKind::Uninit,
|
||||||
fx.tcx.sess.opts.debugging_opts.strict_init_checks) {
|
fx.tcx.sess.opts.unstable_opts.strict_init_checks) {
|
||||||
|
|
||||||
with_no_trimmed_paths!({
|
with_no_trimmed_paths!({
|
||||||
crate::base::codegen_panic(
|
crate::base::codegen_panic(
|
||||||
|
Loading…
Reference in New Issue
Block a user