From 5b088bffeb2a84344bd5dd10c0ff157d74af65bc Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Thu, 27 Mar 2025 15:51:13 +0100 Subject: [PATCH] Update `stack_overflow` test to use unsafe `no_mangle` attribute Required since Rust 2024 edition --- tests/stack_overflow.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/stack_overflow.rs b/tests/stack_overflow.rs index de826f38..1e97ae01 100644 --- a/tests/stack_overflow.rs +++ b/tests/stack_overflow.rs @@ -2,12 +2,12 @@ #![no_main] #![feature(abi_x86_interrupt)] -use blog_os::{exit_qemu, serial_print, serial_println, QemuExitCode}; +use blog_os::{QemuExitCode, exit_qemu, serial_print, serial_println}; use core::panic::PanicInfo; use lazy_static::lazy_static; use x86_64::structures::idt::{InterruptDescriptorTable, InterruptStackFrame}; -#[no_mangle] +#[unsafe(no_mangle)] pub extern "C" fn _start() -> ! { serial_print!("stack_overflow::stack_overflow...\t");