Re:“Rust is safe” is not some kind of absolute guarantee of ...
by skybrian on Sunday October 02, 2022 @12:04PM
(#33057128)
That's different. You can't perfectly detect all infinite loops in a language that allows arbitrary loops. This also means you can't perfectly detect unreachable code.
But determining that a function (such as panic) is never called because there are no calls to it is pretty easy.
But determining that a function (such as panic) is never called because there are no calls to it is pretty easy.