Skip to main content

Module macros

Module macros 

Source

Macros§

bug
A macro for triggering an ICE. Calling bug instead of panicking will result in a nicer error message and should therefore be preferred over panic/unreachable or others.
span_bug
A macro for triggering an ICE with a span. Calling span_bug! instead of panicking will result in a nicer error message and point at the code the compiler was compiling when it ICEd. This is the preferred way to trigger ICEs.

Statics§

EMIT_BUG_DIAGNOSTIC

Functions§

bug_impl
default_emit_diagnostic 🔒