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/sys/vxworks | |
| parent | 34cce58d81f006a5406fcae918db4492e6cf2784 (diff) | |
| download | rust-2764673dca6badb2ef89450bbdd84b19c317a9c7.tar.gz rust-2764673dca6badb2ef89450bbdd84b19c317a9c7.zip | |
abort_internal is safe
Diffstat (limited to 'src/libstd/sys/vxworks')
| -rw-r--r-- | src/libstd/sys/vxworks/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sys/vxworks/mod.rs b/src/libstd/sys/vxworks/mod.rs index e23191c9431..0787e709898 100644 --- a/src/libstd/sys/vxworks/mod.rs +++ b/src/libstd/sys/vxworks/mod.rs @@ -108,6 +108,6 @@ where // understandable error message like "Abort trap" rather than "Illegal // instruction" that intrinsics::abort would cause, as intrinsics::abort is // implemented as an illegal instruction. -pub unsafe fn abort_internal() -> ! { - libc::abort() +pub fn abort_internal() -> ! { + unsafe { libc::abort() } } |
