mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 06:17:49 +00:00
Fix: no_mangle is an unsafe attribute since Rust 2024
This commit is contained in:
@@ -57,7 +57,7 @@ pub fn exit_qemu(exit_code: QemuExitCode) {
|
||||
|
||||
/// Entry point for `cargo xtest`
|
||||
#[cfg(test)]
|
||||
#[no_mangle]
|
||||
#[unsafe(no_mangle)]
|
||||
pub extern "C" fn _start() -> ! {
|
||||
test_main();
|
||||
loop {}
|
||||
|
||||
Reference in New Issue
Block a user