3 ms·
Panics do not violate any runtime guarantees, and defers run in the presence of panics. All safety guarantees possible if there were no panics are possible wit
by Groxx 4y ago
Panics do not violate any runtime guarantees, and defers run in the presence of panics.
All safety guarantees possible if there were no panics are possible with.
- preseinger 4y agoWhen some bit of code invokes `panic` it is saying that there is an error which is unrecoverable, and the default expectation is that the process will terminate. There is no way to assert that panics do not violate runtime or memory model expectations. They can.