MCPcopy Create free account
hub / github.com/bnjbvr/trinity / invalid_enum_discriminant

Function invalid_enum_discriminant

modules/libcommand/src/trinity_module.rs:603–609  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

601 alloc::dealloc(ptr, layout);
602 }
603 pub unsafe fn invalid_enum_discriminant<T>() -> T {
604 if cfg!(debug_assertions) {
605 panic!("invalid enum discriminant")
606 } else {
607 unsafe { core::hint::unreachable_unchecked() }
608 }
609 }
610 pub use alloc_crate::alloc;
611 extern crate alloc as alloc_crate;
612}

Callers 2

_export_init_cabiFunction · 0.70
_export_help_cabiFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected