pub static SOFT_ASSERTIONS: Static<AtomicBool>Available on crate feature
assert-no-tracing only.Expand description
Whether to enable soft assertions.
MZ_SOFT_ASSERTIONS decides this whenever it is set, and debug_assertions
decides it otherwise. NOTE: setting the variable to a falsey value therefore
turns soft assertions off even in a build that has debug_assertions
compiled in. A caller that feeds the binary state it knows to be corrupt,
such as a catalog-repair test, needs that: the tripwires it would otherwise
hit are guarding the very condition it is there to repair.