Linus Torvalds on Rust support in kernel
Agreed.  The whole panic situation is an awful mess that the Rust designers refuse to deal with.  It&#x27;s the sort of thing you put into a language when it&#x27;s a toy, but Rust isn&#x27;t a toy anymore and they refuse to do any of these:<p>* remove it<p>* make panics reliably &quot;catch&quot;-able 100% of the time like thrown exceptions (in languages with exceptions)<p>* make it possible to statically check panic-safety, the way we check unsafe {}<p>The dodge I always hear is &quot;yeah but your code could always go off into an infinite loop, and we&#x27;ll never be able to prevent or detect that&quot;.  Okay, but <i>nobody uses &quot;while(1){}&quot; as a deliberate response to an error condition</i>.  The Rust standard library is jammed full of code that will deliberately panic if tickled the wrong way.<p>Look, I love Rust, but the denial around panic is just ridiculous.  We need &quot;might_panic&quot; annotations, enforced exactly the way &quot;unsafe&quot; annotations are enforced, and the standard library needs to be updated to provide them.  Bite the bullet.  Linus is right.  This should have happened years ago.