Update comment about personalities in panic_abort

This commit is contained in:
Amanieu d'Antras 2022-02-09 17:43:00 +00:00
parent c110329f25
commit a54ddd494f

View File

@ -113,7 +113,11 @@ unsafe fn abort() -> ! {
// binaries, but it should never be called as we don't link in an unwinding // binaries, but it should never be called as we don't link in an unwinding
// runtime at all. // runtime at all.
pub mod personalities { pub mod personalities {
// Similar to above, this corresponds to the `eh_catch_typeinfo` lang item // In the past this module used to contain stubs for the personality
// functions of various platforms, but these where removed when personality
// functions were moved to std.
// This corresponds to the `eh_catch_typeinfo` lang item
// that's only used on Emscripten currently. // that's only used on Emscripten currently.
// //
// Since panics don't generate exceptions and foreign exceptions are // Since panics don't generate exceptions and foreign exceptions are