提交 de19e4d2 编写于 作者: I Ian Jackson 提交者: Mara Bos

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-660460501Signed-off-by: NIan Jackson <ijackson@chiark.greenend.org.uk>
上级 a8bb7fa7
......@@ -720,7 +720,9 @@ pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
/// [`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() -> !;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册