From de19e4d2b6328f09f11abea5e56cb22a0fe6536e Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 17 May 2021 15:23:47 +0100 Subject: [PATCH] abort docs: Do not claim that intrinsics::abort is always a debug trap As per discussion here https://github.com/rust-lang/rust/pull/85377#pullrequestreview-660460501 Signed-off-by: Ian Jackson --- library/core/src/intrinsics.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/core/src/intrinsics.rs b/library/core/src/intrinsics.rs index 8be4f5997693c..12229009ec831 100644 --- a/library/core/src/intrinsics.rs +++ b/library/core/src/intrinsics.rs @@ -720,7 +720,9 @@ extern "rust-intrinsic" { /// [`std::process::abort`](../../std/process/fn.abort.html) is to be preferred if possible, /// as its behaviour is more user-friendly and more stable. /// - /// The current implementation of `intrinsics::abort` (ab)uses a debug trap. On Unix, the + /// The current implementation of `intrinsics::abort` (ab)uses a debug trap + /// on some popular platforms. + /// On Unix, the /// process will probably die of a signal like `SIGABRT`, `SIGILL`, `SIGTRAP`, `SIGSEGV` or /// `SIGBUS`. The precise behaviour is not guaranteed and not stable. pub fn abort() -> !;