diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2021-09-16 15:20:44 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2021-09-16 15:20:44 +0200 |
| commit | cb14269145abef952861b4f73beb78a7ca79e8f6 (patch) | |
| tree | 9e5b56fa939065ae63dc12feedee2b602613d525 /library/std/src/sys/unix/mod.rs | |
| parent | 1ad44b23d1e6d0d5f52d3ed689f35abbe797ef11 (diff) | |
| download | rust-cb14269145abef952861b4f73beb78a7ca79e8f6.tar.gz rust-cb14269145abef952861b4f73beb78a7ca79e8f6.zip | |
Replace a couple of asserts with rtassert! in rt code
This replaces a couple of panic locations with hard aborts. The panics can't be catched by the user anyway in these locations.
Diffstat (limited to 'library/std/src/sys/unix/mod.rs')
| -rw-r--r-- | library/std/src/sys/unix/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/unix/mod.rs b/library/std/src/sys/unix/mod.rs index f5424e3d282..1c37f4ee498 100644 --- a/library/std/src/sys/unix/mod.rs +++ b/library/std/src/sys/unix/mod.rs @@ -120,7 +120,7 @@ pub unsafe fn init(argc: isize, argv: *const *const u8) { unsafe fn reset_sigpipe() { #[cfg(not(any(target_os = "emscripten", target_os = "fuchsia")))] - assert!(signal(libc::SIGPIPE, libc::SIG_IGN) != libc::SIG_ERR); + rtassert!(signal(libc::SIGPIPE, libc::SIG_IGN) != libc::SIG_ERR); } } |
