about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2022-05-14 02:49:12 +0100
committerGary Guo <gary@garyguo.net>2022-05-14 02:53:59 +0100
commitfbb3c19e0347b21d84b428981e930401b7f81b76 (patch)
tree0394d823c91bef64eb0d5b1aabfd3bbcc7361f33
parent68f063bf3fb9ca7dc585e18250ba7a75f40a245f (diff)
downloadrust-fbb3c19e0347b21d84b428981e930401b7f81b76.tar.gz
rust-fbb3c19e0347b21d84b428981e930401b7f81b76.zip
Use re-export instead of inline wrapper in libunwind
This ensures that there are no calls to `C-unwind` function in libunwind.
-rw-r--r--library/unwind/src/libunwind.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/library/unwind/src/libunwind.rs b/library/unwind/src/libunwind.rs
index 432628613f5..7b78bda424b 100644
--- a/library/unwind/src/libunwind.rs
+++ b/library/unwind/src/libunwind.rs
@@ -264,10 +264,7 @@ if #[cfg(not(all(target_os = "ios", target_arch = "arm")))] {
         pub fn _Unwind_SjLj_RaiseException(e: *mut _Unwind_Exception) -> _Unwind_Reason_Code;
     }
 
-    #[inline]
-    pub unsafe fn _Unwind_RaiseException(exc: *mut _Unwind_Exception) -> _Unwind_Reason_Code {
-        _Unwind_SjLj_RaiseException(exc)
-    }
+    pub use _Unwind_SjLj_RaiseException as _Unwind_RaiseException;
 }
 } // cfg_if!