diff --git a/Cargo.toml b/Cargo.toml index e5167419..35d9d46a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "blog_os" version = "0.1.0" authors = ["Philipp Oppermann "] -edition = "2018" +edition = "2024" [[test]] name = "should_panic" diff --git a/src/lib.rs b/src/lib.rs index 32165e72..bb9fb379 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -62,7 +62,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() -> ! { init(); test_main(); diff --git a/src/main.rs b/src/main.rs index 1c974898..376830cd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,7 +7,7 @@ use blog_os::println; use core::panic::PanicInfo; -#[no_mangle] +#[unsafe(no_mangle)] pub extern "C" fn _start() -> ! { println!("Hello World{}", "!");