mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-26 13:01:27 +03:00
Fix warnings in rs{begin,end}.rs files
As can be seen locally and in CI logs (dist-i686-mingw) that code used to trigger `static_mut_refs` warning.
This commit is contained in:
@@ -90,12 +90,12 @@ impl ::Copy for $t {}
|
||||
|
||||
unsafe extern "C" fn init() {
|
||||
// register unwind info on module startup
|
||||
__register_frame_info(&__EH_FRAME_BEGIN__ as *const u8, &mut OBJ as *mut _ as *mut u8);
|
||||
__register_frame_info(&__EH_FRAME_BEGIN__ as *const u8, &raw mut OBJ as *mut u8);
|
||||
}
|
||||
|
||||
unsafe extern "C" fn uninit() {
|
||||
// unregister on shutdown
|
||||
__deregister_frame_info(&__EH_FRAME_BEGIN__ as *const u8, &mut OBJ as *mut _ as *mut u8);
|
||||
__deregister_frame_info(&__EH_FRAME_BEGIN__ as *const u8, &raw mut OBJ as *mut u8);
|
||||
}
|
||||
|
||||
// MinGW-specific init/uninit routine registration
|
||||
|
||||
Reference in New Issue
Block a user