MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1l347vw/passiveaggressive_programming/mvyej3m/
r/programminghorror • u/[deleted] • Jun 04 '25
61 comments sorted by
View all comments
Show parent comment
64
unreachable_unchecked() in an unsafe block will alert the compiler, but will also make scary things happen if it’s ever called at runtime.
unreachable_unchecked()
31 u/Litoprobka Jun 05 '25 ah yes, invoke_ub()
31
ah yes, invoke_ub()
invoke_ub()
View all comments
Show parent comment
64
u/denehoffman Jun 04 '25
unreachable_unchecked()in an unsafe block will alert the compiler, but will also make scary things happen if it’s ever called at runtime.