Ah, no, if using `panic::recover` then it wouldn't translate to a crash (I
believe) as it's just normal execution. If you want a panic in Rust to
translate to an abort of the entire process, however, then you've got two
options.

On one hand you could use the custom panic hook support I mentioned above
to install a hook that aborts the process. That way it would prevent
reaching the machinery that actually throws an exception in Rust to be
caught.

An alternative is outlined in RFC 1513 [1] which is to configure
compilations to always trigger an abort on panic instead of doing it via a
roundabout method.

Does that make sense?

[1]: https://github.com/rust-lang/rfcs/pull/1513
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to