@@ -170,7 +170,7 @@ mod uw {
170170 pub type _Unwind_Trace_Fn =
171171 extern "C" fn ( ctx : * mut _Unwind_Context , arg : * mut c_void ) -> _Unwind_Reason_Code ;
172172
173- extern "C" {
173+ unsafe extern "C" {
174174 pub fn _Unwind_Backtrace (
175175 trace : _Unwind_Trace_Fn ,
176176 trace_argument : * mut c_void ,
@@ -188,7 +188,7 @@ mod uw {
188188 not( all( target_os = "vita" , target_arch = "arm" ) ) ,
189189 not( all( target_os = "nuttx" , target_arch = "arm" ) ) ,
190190 ) ) ] {
191- extern "C" {
191+ unsafe extern "C" {
192192 pub fn _Unwind_GetIP( ctx: * mut _Unwind_Context) -> libc:: uintptr_t;
193193 pub fn _Unwind_FindEnclosingFunction( pc: * mut c_void) -> * mut c_void;
194194
@@ -208,7 +208,7 @@ mod uw {
208208 // instead of relying on _Unwind_GetCFA.
209209 #[ cfg( all( target_os = "linux" , target_arch = "s390x" ) ) ]
210210 pub unsafe fn get_sp( ctx: * mut _Unwind_Context) -> libc:: uintptr_t {
211- extern "C" {
211+ unsafe extern "C" {
212212 pub fn _Unwind_GetGR( ctx: * mut _Unwind_Context, index: libc:: c_int) -> libc:: uintptr_t;
213213 }
214214 unsafe { _Unwind_GetGR( ctx, 15 ) }
@@ -248,7 +248,7 @@ mod uw {
248248 }
249249
250250 type _Unwind_Word = libc:: c_uint;
251- extern "C" {
251+ unsafe extern "C" {
252252 fn _Unwind_VRS_Get(
253253 ctx: * mut _Unwind_Context,
254254 klass: _Unwind_VRS_RegClass,
0 commit comments