Stream: general

Topic: debug-unreachable


RalfJ (Jun 28 2019 at 14:23, on Zulip):

TIL that debug_unreachable! from https://github.com/mbrubeck/rust-debug-unreachable is very different from debug_assert!... the latter is a NOP in release builds, the former is insta-UB!
Am I the only one who finds that a weird way to name this macro?

centril (Jun 28 2019 at 15:25, on Zulip):

there should be an "unsafe" in the name somewhere :slight_smile:

RalfJ (Jun 28 2019 at 16:16, on Zulip):

and that too^^

RalfJ (Jun 28 2019 at 16:16, on Zulip):

or unchecked

RalfJ (Jun 28 2019 at 16:16, on Zulip):

like in unreachable_unchecked from libstd

Last update: Nov 20 2019 at 13:35UTC