diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 42a2fdc126..a1c56cb7f4 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,5 +1,5 @@ [toolchain] -channel = "nightly-2024-07-01" +channel = "nightly-2024-08-01" components = [ "llvm-tools", "rust-src", diff --git a/src/lib.rs b/src/lib.rs index 2ac8ad8b50..68d84da879 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -202,9 +202,8 @@ fn boot_processor_main() -> ! { extern "C" { static mut __bss_start: u8; } - info!("BSS starts at {:p}", unsafe { - core::ptr::addr_of_mut!(__bss_start) - }); + let bss_ptr = core::ptr::addr_of_mut!(__bss_start); + info!("BSS starts at {bss_ptr:p}"); info!("tls_info = {:#x?}", kernel::boot_info().load_info.tls_info); arch::boot_processor_init();