Put checks that detect UB under their own flag below debug_assertions
This commit is contained in:
@@ -25,6 +25,7 @@ pub type GatedCfg = (Symbol, Symbol, GateFn);
|
||||
const GATED_CFGS: &[GatedCfg] = &[
|
||||
// (name in cfg, feature, function to check if the feature is enabled)
|
||||
(sym::overflow_checks, sym::cfg_overflow_checks, cfg_fn!(cfg_overflow_checks)),
|
||||
(sym::ub_checks, sym::cfg_ub_checks, cfg_fn!(cfg_ub_checks)),
|
||||
(sym::target_thread_local, sym::cfg_target_thread_local, cfg_fn!(cfg_target_thread_local)),
|
||||
(
|
||||
sym::target_has_atomic_equal_alignment,
|
||||
|
||||
Reference in New Issue
Block a user