Registry / utility / unreachable

unreachable

JSON →
library1.0.0rscratesunverified

Provides a macro for marking unreachable code paths in stable Rust, similar to std::unreachable! but with a hint for optimization.

# Cargo.toml [dependencies] unreachable = "1.0.0"
INSTALL
IMPORT
SIG · UNREACHABLE
U
unreachable
utilityrustv1.0.0
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.

unreachable
use unreachable::unreachable;

Uses the unreachable! macro to mark a match arm that should never execute.

use unreachable::unreachable; fn main() { let x = 1; match x { 1 => println!("one"), _ => unreachable!(), } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
unreachable — cargo add unreachable · libregistry