File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ use build::{Build, Executable};
2626/// - `argc` must never be negative.
2727/// - `argv` and `envp` must be null-terminated arrays of valid pointers to null-terminated strings.
2828/// - Each element of `argv` and `envp` must be valid for reads of bytes up to and including the null terminator.
29- #[ no_mangle]
29+ #[ unsafe ( no_mangle) ]
3030#[ cfg( not( test) ) ]
3131pub unsafe extern "C" fn main ( argc : i32 , argv : * const * const i8 , envp : * const * const i8 ) {
3232 let result = unsafe { run ( argc, argv, envp) } ;
Original file line number Diff line number Diff line change 33#![ cfg_attr( windows, windows_subsystem = "console" ) ]
44
55#[ used]
6- #[ no_mangle]
6+ #[ unsafe ( no_mangle) ]
77pub static _fltused: i32 = 0 ;
88
99#[ cfg( windows) ]
10- #[ no_mangle]
10+ #[ unsafe ( no_mangle) ]
1111pub unsafe extern "C" fn mainCRTStartup ( ) -> ! {
1212 windows_sys:: Win32 :: System :: Threading :: ExitProcess ( 0 ) ;
1313}
1414
1515#[ cfg( target_os = "linux" ) ]
16- #[ no_mangle]
16+ #[ unsafe ( no_mangle) ]
1717pub unsafe extern "C" fn _start ( ) {
1818 let _ = syscalls:: syscall!( syscalls:: Sysno :: exit, 0 ) ;
1919}
You can’t perform that action at this time.
0 commit comments