@@ -119,7 +119,6 @@ where
119119 nresults : c_int ,
120120 }
121121
122- #[ cfg_attr( unwind, unwind) ]
123122 unsafe extern "C" fn do_call < F , R > ( state : * mut ffi:: lua_State ) -> c_int
124123 where
125124 F : FnOnce ( * mut ffi:: lua_State ) -> R ,
@@ -270,7 +269,6 @@ pub unsafe fn take_userdata<T>(state: *mut ffi::lua_State) -> T {
270269 ptr:: read ( ud)
271270}
272271
273- #[ cfg_attr( unwind, unwind) ]
274272pub unsafe extern "C" fn userdata_destructor < T > ( state : * mut ffi:: lua_State ) -> c_int {
275273 callback_error ( state, || {
276274 take_userdata :: < T > ( state) ;
@@ -308,7 +306,6 @@ where
308306// Takes an error at the top of the stack, and if it is a WrappedError, converts it to an
309307// Error::CallbackError with a traceback, if it is some lua type, prints the error along with a
310308// traceback, and if it is a WrappedPanic, does not modify it.
311- #[ cfg_attr( unwind, unwind) ]
312309pub unsafe extern "C" fn error_traceback ( state : * mut ffi:: lua_State ) -> c_int {
313310 // I believe luaL_traceback requires this much free stack to not error.
314311 const LUA_TRACEBACK_STACK : c_int = 11 ;
@@ -355,7 +352,6 @@ pub unsafe extern "C" fn error_traceback(state: *mut ffi::lua_State) -> c_int {
355352}
356353
357354// A variant of pcall that does not allow lua to catch panic errors from callback_error
358- #[ cfg_attr( unwind, unwind) ]
359355pub unsafe extern "C" fn safe_pcall ( state : * mut ffi:: lua_State ) -> c_int {
360356 ffi:: luaL_checkstack ( state, 2 , ptr:: null ( ) ) ;
361357
@@ -378,9 +374,7 @@ pub unsafe extern "C" fn safe_pcall(state: *mut ffi::lua_State) -> c_int {
378374}
379375
380376// A variant of xpcall that does not allow lua to catch panic errors from callback_error
381- #[ cfg_attr( unwind, unwind) ]
382377pub unsafe extern "C" fn safe_xpcall ( state : * mut ffi:: lua_State ) -> c_int {
383- #[ cfg_attr( unwind, unwind) ]
384378 unsafe extern "C" fn xpcall_msgh ( state : * mut ffi:: lua_State ) -> c_int {
385379 ffi:: luaL_checkstack ( state, 2 , ptr:: null ( ) ) ;
386380
@@ -480,7 +474,6 @@ pub unsafe fn init_error_metatables(state: *mut ffi::lua_State) {
480474
481475 // Create error metatable
482476
483- #[ cfg_attr( unwind, unwind) ]
484477 unsafe extern "C" fn error_tostring ( state : * mut ffi:: lua_State ) -> c_int {
485478 ffi:: luaL_checkstack ( state, 2 , ptr:: null ( ) ) ;
486479
@@ -544,7 +537,6 @@ pub unsafe fn init_error_metatables(state: *mut ffi::lua_State) {
544537
545538 // Create destructed userdata metatable
546539
547- #[ cfg_attr( unwind, unwind) ]
548540 unsafe extern "C" fn destructed_error ( state : * mut ffi:: lua_State ) -> c_int {
549541 ffi:: luaL_checkstack ( state, 2 , ptr:: null ( ) ) ;
550542 push_wrapped_error ( state, Error :: CallbackDestructed ) ;
0 commit comments