about summary refs log tree commit diff
path: root/src/libstd/sys/wasm/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/sys/wasm/mod.rs')
-rw-r--r--src/libstd/sys/wasm/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sys/wasm/mod.rs b/src/libstd/sys/wasm/mod.rs
index c115f756450..050e8099af4 100644
--- a/src/libstd/sys/wasm/mod.rs
+++ b/src/libstd/sys/wasm/mod.rs
@@ -81,8 +81,8 @@ pub unsafe fn strlen(mut s: *const c_char) -> usize {
     return n;
 }
 
-pub unsafe fn abort_internal() -> ! {
-    crate::arch::wasm32::unreachable()
+pub fn abort_internal() -> ! {
+    unsafe { crate::arch::wasm32::unreachable() }
 }
 
 // We don't have randomness yet, but I totally used a random number generator to