Skip to content

Commit 79ccc1c

Browse files
authored
1 parent f49d7b9 commit 79ccc1c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

multivers-runner/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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))]
3131
pub unsafe extern "C" fn main(argc: i32, argv: *const *const i8, envp: *const *const i8) {
3232
let result = unsafe { run(argc, argv, envp) };

tests/test-nothing/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
#![cfg_attr(windows, windows_subsystem = "console")]
44

55
#[used]
6-
#[no_mangle]
6+
#[unsafe(no_mangle)]
77
pub static _fltused: i32 = 0;
88

99
#[cfg(windows)]
10-
#[no_mangle]
10+
#[unsafe(no_mangle)]
1111
pub 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)]
1717
pub unsafe extern "C" fn _start() {
1818
let _ = syscalls::syscall!(syscalls::Sysno::exit, 0);
1919
}

0 commit comments

Comments
 (0)