Registry / utility / new-debug-unreachable

new-debug-unreachable

JSON →
library1.0.6rscratesunverified

A fork of debug_unreachable that panics in debug mode and uses intrinsics::unreachable() in release builds.

# Cargo.toml [dependencies] new_debug_unreachable = "1.0.6"
INSTALL
IMPORT
SIG · NEW-DEBUG-UNREACHA
N
new-debug-unreachable
utilityrustv1.0.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

debug_unreachable
use new_debug_unreachable::debug_unreachable;

Demonstrates the debug_unreachable macro which panics in debug and is unreachable in release.

use new_debug_unreachable::debug_unreachable; fn main() { debug_unreachable!("This should not be reached"); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.6latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
new-debug-unreachable — cargo add new-debug-unreachable · libregistry