diff options
| author | Ralf Jung <post@ralfj.de> | 2020-05-17 19:37:44 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2020-05-17 23:38:31 +0200 |
| commit | 2764673dca6badb2ef89450bbdd84b19c317a9c7 (patch) | |
| tree | e087fbebad94323e2d5a506a9def5c59faccc904 /src/libstd/process.rs | |
| parent | 34cce58d81f006a5406fcae918db4492e6cf2784 (diff) | |
| download | rust-2764673dca6badb2ef89450bbdd84b19c317a9c7.tar.gz rust-2764673dca6badb2ef89450bbdd84b19c317a9c7.zip | |
abort_internal is safe
Diffstat (limited to 'src/libstd/process.rs')
| -rw-r--r-- | src/libstd/process.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/process.rs b/src/libstd/process.rs index b457d190b95..f7e7a5abf8e 100644 --- a/src/libstd/process.rs +++ b/src/libstd/process.rs @@ -1620,7 +1620,7 @@ pub fn exit(code: i32) -> ! { /// [panic hook]: ../../std/panic/fn.set_hook.html #[stable(feature = "process_abort", since = "1.17.0")] pub fn abort() -> ! { - unsafe { crate::sys::abort_internal() }; + crate::sys::abort_internal(); } /// Returns the OS-assigned process identifier associated with this process. |
