3 ms·
Panics are not quite the same as an abort in Rust. Most notably a panic can be caught and execution can resume so as to gracefully terminate the application, bu
by Kranar 3y ago
Panics are not quite the same as an abort in Rust. Most notably a panic can be caught and execution can resume so as to gracefully terminate the application, but an abort is an immediate termination, a go to jail do not pass go kind of situation.
An out of bounds access in Rust will result in a panic but a stack overflow is an abort.
- vlovich123 3y agoA segfault would imply it's not an abort either although it seems like it has been converted to a proper abort in newer versions of Rust.
- SAI_Peregrinus 3y agoPanics can be aborts if set in cargo.toml.