[INFO] cloning repository https://github.com/kappa8719/kernel
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kappa8719/kernel" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkappa8719%2Fkernel", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkappa8719%2Fkernel'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 760532b7ce994ba1ea411494a66df9d21aa4ed55
[INFO] checking kappa8719/kernel/760532b7ce994ba1ea411494a66df9d21aa4ed55 against c999cef531ea9059e189e82fe0e82c5daf249bc9 for pr-160904
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkappa8719%2Fkernel" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'...
[INFO] [stderr] done.
[INFO] removed /workspace/builds/worker-3-tc1/source/.cargo/config.toml
[INFO] removed /workspace/builds/worker-3-tc1/source/rust-toolchain.toml
[INFO] started tweaking git repo https://github.com/kappa8719/kernel
[INFO] finished tweaking git repo https://github.com/kappa8719/kernel
[INFO] tweaked toml for git repo https://github.com/kappa8719/kernel written to /workspace/builds/worker-3-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/kappa8719/kernel on toolchain c999cef531ea9059e189e82fe0e82c5daf249bc9
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c999cef531ea9059e189e82fe0e82c5daf249bc9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/kappa8719/kernel already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c999cef531ea9059e189e82fe0e82c5daf249bc9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded riscv v0.12.1
[INFO] [stderr]   Downloaded riscv-macros v0.1.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3111399a4047eeb3a02b7a90e478d715f38a8c6669b5c4b49d30a17385265909" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 6f844894415600bbe5c510dc0b52fefc3b98c9e3e62436c9794a3d88746becf1
[INFO] running `Command { std: "docker" "start" "6f844894415600bbe5c510dc0b52fefc3b98c9e3e62436c9794a3d88746becf1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "6f844894415600bbe5c510dc0b52fefc3b98c9e3e62436c9794a3d88746becf1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "6f844894415600bbe5c510dc0b52fefc3b98c9e3e62436c9794a3d88746becf1" "/opt/rustwide/cargo-home/bin/cargo" "+c999cef531ea9059e189e82fe0e82c5daf249bc9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "6f844894415600bbe5c510dc0b52fefc3b98c9e3e62436c9794a3d88746becf1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "6f844894415600bbe5c510dc0b52fefc3b98c9e3e62436c9794a3d88746becf1" "/opt/rustwide/cargo-home/bin/cargo" "+c999cef531ea9059e189e82fe0e82c5daf249bc9" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling riscv v0.12.1
[INFO] [stderr]     Checking embedded-hal v1.0.0
[INFO] [stderr]     Checking riscv-pac v0.2.0
[INFO] [stderr]     Checking volatile v0.2.7
[INFO] [stderr]    Compiling syn v2.0.96
[INFO] [stderr]    Compiling riscv-macros v0.1.0
[INFO] [stderr]     Checking kappa v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `panic` and `println`
[INFO] [stdout]  --> src/memory.rs:2:54
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::{__free_ram, __free_ram_end, ld_variable, panic, println};
[INFO] [stdout]   |                                                      ^^^^^  ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `panic` and `println`
[INFO] [stdout]  --> src/process.rs:3:65
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::{__free_ram_end, __kernel_base, ld_variable, memory, panic, println};
[INFO] [stdout]   |                                                                 ^^^^^  ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `core::mem`
[INFO] [stdout]  --> src/process.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use core::mem;
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around method argument
[INFO] [stdout]    --> src/process.rs:168:18
[INFO] [stdout]     |
[INFO] [stdout] 168 |             .nth(((CURRENT_PROCESS.pid + i as isize) as usize % MAX_PROCESSES))
[INFO] [stdout]     |                  ^                                                           ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 168 -             .nth(((CURRENT_PROCESS.pid + i as isize) as usize % MAX_PROCESSES))
[INFO] [stdout] 168 +             .nth((CURRENT_PROCESS.pid + i as isize) as usize % MAX_PROCESSES)
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::constants::PAGE_SIZE`
[INFO] [stdout]   --> src/main.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | use crate::constants::PAGE_SIZE;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `SBIWriter`
[INFO] [stdout]   --> src/main.rs:19:46
[INFO] [stdout]    |
[INFO] [stdout] 19 | use crate::sbi::{put_char, DeviceTreeHeader, SBIWriter};
[INFO] [stdout]    |                                              ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `core::cell::OnceCell`
[INFO] [stdout]   --> src/main.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 22 | use core::cell::OnceCell;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `core::fmt::Write`
[INFO] [stdout]   --> src/main.rs:23:5
[INFO] [stdout]    |
[INFO] [stdout] 23 | use core::fmt::Write;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `riscv::register::stvec::Stvec`
[INFO] [stdout]   --> src/main.rs:25:5
[INFO] [stdout]    |
[INFO] [stdout] 25 | use riscv::register::stvec::Stvec;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: unwinding panics are not supported without std
[INFO] [stdout]   |
[INFO] [stdout]   = help: using nightly cargo, use -Zbuild-std with panic="abort" to avoid unwinding
[INFO] [stdout]   = note: since the core library is usually precompiled with panic="unwind", rebuilding your crate with panic="abort" may not be enough to fix the problem
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: unsafe attribute used without unsafe
[INFO] [stdout]   --> src/process.rs:73:3
[INFO] [stdout]    |
[INFO] [stdout] 73 | #[naked]
[INFO] [stdout]    |   ^^^^^ usage of unsafe attribute
[INFO] [stdout]    |
[INFO] [stdout] help: wrap the attribute in `unsafe(...)`
[INFO] [stdout]    |
[INFO] [stdout] 73 | #[unsafe(naked)]
[INFO] [stdout]    |   +++++++     +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: invalid register `a0`: unknown register
[INFO] [stdout]   --> src/sbi.rs:55:23
[INFO] [stdout]    |
[INFO] [stdout] 55 | ...   asm!("ecall", inout("a0") arg0 => arg0, inout("a1") arg1 => arg1, in("a2") arg2, in("a3") arg3, in("a4") arg4, in("a5") arg5, ...
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: invalid register `a1`: unknown register
[INFO] [stdout]   --> src/sbi.rs:55:49
[INFO] [stdout]    |
[INFO] [stdout] 55 | ...   asm!("ecall", inout("a0") arg0 => arg0, inout("a1") arg1 => arg1, in("a2") arg2, in("a3") arg3, in("a4") arg4, in("a5") arg5, ...
[INFO] [stdout]    |                                               ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: invalid register `a2`: unknown register
[INFO] [stdout]   --> src/sbi.rs:55:75
[INFO] [stdout]    |
[INFO] [stdout] 55 | ...   asm!("ecall", inout("a0") arg0 => arg0, inout("a1") arg1 => arg1, in("a2") arg2, in("a3") arg3, in("a4") arg4, in("a5") arg5, ...
[INFO] [stdout]    |                                                                         ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: invalid register `a3`: unknown register
[INFO] [stdout]   --> src/sbi.rs:55:90
[INFO] [stdout]    |
[INFO] [stdout] 55 | ...   asm!("ecall", inout("a0") arg0 => arg0, inout("a1") arg1 => arg1, in("a2") arg2, in("a3") arg3, in("a4") arg4, in("a5") arg5, ...
[INFO] [stdout]    |                                                                                        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: invalid register `a4`: unknown register
[INFO] [stdout]   --> src/sbi.rs:55:105
[INFO] [stdout]    |
[INFO] [stdout] 55 | ...   asm!("ecall", inout("a0") arg0 => arg0, inout("a1") arg1 => arg1, in("a2") arg2, in("a3") arg3, in("a4") arg4, in("a5") arg5, ...
[INFO] [stdout]    |                                                                                                       ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: invalid register `a5`: unknown register
[INFO] [stdout]   --> src/sbi.rs:55:120
[INFO] [stdout]    |
[INFO] [stdout] 55 | ...rg1 => arg1, in("a2") arg2, in("a3") arg3, in("a4") arg4, in("a5") arg5, in("a6") fid, in("a7") eid);
[INFO] [stdout]    |                                                              ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: invalid register `a6`: unknown register
[INFO] [stdout]   --> src/sbi.rs:55:135
[INFO] [stdout]    |
[INFO] [stdout] 55 | ...("a2") arg2, in("a3") arg3, in("a4") arg4, in("a5") arg5, in("a6") fid, in("a7") eid);
[INFO] [stdout]    |                                                              ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: invalid register `a7`: unknown register
[INFO] [stdout]   --> src/sbi.rs:55:149
[INFO] [stdout]    |
[INFO] [stdout] 55 | ...n("a3") arg3, in("a4") arg4, in("a5") arg5, in("a6") fid, in("a7") eid);
[INFO] [stdout]    |                                                              ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: unsafe attribute used without unsafe
[INFO] [stdout]    --> src/main.rs:127:3
[INFO] [stdout]     |
[INFO] [stdout] 127 | #[naked]
[INFO] [stdout]     |   ^^^^^ usage of unsafe attribute
[INFO] [stdout]     |
[INFO] [stdout] help: wrap the attribute in `unsafe(...)`
[INFO] [stdout]     |
[INFO] [stdout] 127 | #[unsafe(naked)]
[INFO] [stdout]     |   +++++++     +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: unsafe attribute used without unsafe
[INFO] [stdout]    --> src/main.rs:223:3
[INFO] [stdout]     |
[INFO] [stdout] 223 | #[naked]
[INFO] [stdout]     |   ^^^^^ usage of unsafe attribute
[INFO] [stdout]     |
[INFO] [stdout] help: wrap the attribute in `unsafe(...)`
[INFO] [stdout]     |
[INFO] [stdout] 223 | #[unsafe(naked)]
[INFO] [stdout]     |   +++++++     +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: invalid register `t3`: unknown register
[INFO] [stdout]    --> src/main.rs:317:37
[INFO] [stdout]     |
[INFO] [stdout] 317 |     unsafe { asm!("addi t3, a1, 0", out("t3") DTB_ADDR) };
[INFO] [stdout]     |                                     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0658]: `#[naked]` is currently unstable on `extern "Rust"` functions
[INFO] [stdout]    --> src/main.rs:128:1
[INFO] [stdout]     |
[INFO] [stdout] 128 | unsafe fn kernel_entry() {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: see issue #138997 <https://github.com/rust-lang/rust/issues/138997> for more information
[INFO] [stdout]     = help: add `#![feature(naked_functions_rustic_abi)]` to the crate attributes to enable
[INFO] [stdout]     = note: this compiler was built on 2026-09-17; consider upgrading it if it is out of date
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0658]: `#[naked]` is currently unstable on `extern "Rust"` functions
[INFO] [stdout]    --> src/main.rs:224:1
[INFO] [stdout]     |
[INFO] [stdout] 224 | unsafe fn interrupt_entry() {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: see issue #138997 <https://github.com/rust-lang/rust/issues/138997> for more information
[INFO] [stdout]     = help: add `#![feature(naked_functions_rustic_abi)]` to the crate attributes to enable
[INFO] [stdout]     = note: this compiler was built on 2026-09-17; consider upgrading it if it is out of date
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `c_variadic` has been stable since 1.99.0 and no longer requires an attribute to enable
[INFO] [stdout]  --> src/main.rs:3:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | #![feature(c_variadic)]
[INFO] [stdout]   |            ^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(stable_features)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `naked_functions` has been stable since 1.88.0 and no longer requires an attribute to enable
[INFO] [stdout]  --> src/main.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | #![feature(naked_functions)]
[INFO] [stdout]   |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: type `u8` cannot be used with this register class
[INFO] [stdout]    --> src/process.rs:197:24
[INFO] [stdout]     |
[INFO] [stdout] 197 |     sscratch = in(reg) CURRENT_PROCESS.stack[size_of_val(&(*CURRENT_PROCESS).stack)-1]
[INFO] [stdout]     |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: register class `reg` supports these types: i16, i32, i64, f16, f32, f64
[INFO] [stdout]     = help: consider using the `reg_byte` register class instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]   --> src/main.rs:76:5
[INFO] [stdout]    |
[INFO] [stdout] 72 | /     loop {
[INFO] [stdout] 73 | |         arch::wfi();
[INFO] [stdout] 74 | |     }
[INFO] [stdout]    | |_____- any code following this expression is unreachable
[INFO] [stdout] 75 |
[INFO] [stdout] 76 | /     unsafe {
[INFO] [stdout] 77 | |         let proc = process::create(0);
[INFO] [stdout] 78 | |         IdleProcess.set(proc);
[INFO] [stdout] 79 | |         IdleProcess.get().pid = -1;
[INFO] [stdout] 80 | |
[INFO] [stdout] 81 | |         CurrentProcess.set(IdleProcess.get());
[INFO] [stdout] 82 | |     }
[INFO] [stdout]    | |_____^ unreachable statement
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: formatting may not be suitable for sub-register argument
[INFO] [stdout]    --> src/arch.rs:8:32
[INFO] [stdout]     |
[INFO] [stdout]   8 |             ::core::arch::asm!(concat!("csrr {}, ", $csr), out(reg) val);
[INFO] [stdout]     |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^           --- for this argument
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/main.rs:212:18
[INFO] [stdout]     |
[INFO] [stdout] 212 |     let scause = read_csr!("scause");
[INFO] [stdout]     |                  ------------------- in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = help: use `{0:e}` to have the register formatted as `eax` (for 4-byte values)
[INFO] [stdout]     = help: or use `{0:r}` to keep the default formatting of `rax` (for 8-byte values)
[INFO] [stdout]     = note: `#[warn(asm_sub_register)]` on by default
[INFO] [stdout]     = note: this warning originates in the macro `read_csr` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: formatting may not be suitable for sub-register argument
[INFO] [stdout]    --> src/arch.rs:8:32
[INFO] [stdout]     |
[INFO] [stdout]   8 |             ::core::arch::asm!(concat!("csrr {}, ", $csr), out(reg) val);
[INFO] [stdout]     |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^           --- for this argument
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/main.rs:213:17
[INFO] [stdout]     |
[INFO] [stdout] 213 |     let stval = read_csr!("stval");
[INFO] [stdout]     |                 ------------------ in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = help: use `{0:e}` to have the register formatted as `eax` (for 4-byte values)
[INFO] [stdout]     = help: or use `{0:r}` to keep the default formatting of `rax` (for 8-byte values)
[INFO] [stdout]     = note: this warning originates in the macro `read_csr` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: formatting may not be suitable for sub-register argument
[INFO] [stdout]    --> src/arch.rs:8:32
[INFO] [stdout]     |
[INFO] [stdout]   8 |             ::core::arch::asm!(concat!("csrr {}, ", $csr), out(reg) val);
[INFO] [stdout]     |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^           --- for this argument
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/main.rs:214:16
[INFO] [stdout]     |
[INFO] [stdout] 214 |     let sepc = read_csr!("sepc");
[INFO] [stdout]     |                ----------------- in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = help: use `{0:e}` to have the register formatted as `eax` (for 4-byte values)
[INFO] [stdout]     = help: or use `{0:r}` to keep the default formatting of `rax` (for 8-byte values)
[INFO] [stdout]     = note: this warning originates in the macro `read_csr` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]   --> src/process.rs:76:5
[INFO] [stdout]    |
[INFO] [stdout] 76 |     unsafe {
[INFO] [stdout]    |     ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v`
[INFO] [stdout]   --> src/arch.rs:17:13
[INFO] [stdout]    |
[INFO] [stdout] 17 |         let v = $value;
[INFO] [stdout]    |             ^
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/main.rs:58:5
[INFO] [stdout]    |
[INFO] [stdout] 58 |     write_csr!("stvec", kernel_entry as usize);
[INFO] [stdout]    |     ------------------------------------------ in this macro invocation
[INFO] [stdout]    |
[INFO] [stdout] help: `v` is captured in macro and introduced a unused variable
[INFO] [stdout]   --> src/arch.rs:17:13
[INFO] [stdout]    |
[INFO] [stdout] 17 |         let v = $value;
[INFO] [stdout]    |             ^
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/main.rs:58:5
[INFO] [stdout]    |
[INFO] [stdout] 58 |     write_csr!("stvec", kernel_entry as usize);
[INFO] [stdout]    |     ------------------------------------------ in this macro invocation
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout]    = note: this warning originates in the macro `write_csr` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `panic` and `println`
[INFO] [stdout]  --> src/memory.rs:2:54
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::{__free_ram, __free_ram_end, ld_variable, panic, println};
[INFO] [stdout]   |                                                      ^^^^^  ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `panic` and `println`
[INFO] [stdout]  --> src/process.rs:3:65
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::{__free_ram_end, __kernel_base, ld_variable, memory, panic, println};
[INFO] [stdout]   |                                                                 ^^^^^  ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `core::mem`
[INFO] [stdout]  --> src/process.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use core::mem;
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around method argument
[INFO] [stdout]    --> src/process.rs:168:18
[INFO] [stdout]     |
[INFO] [stdout] 168 |             .nth(((CURRENT_PROCESS.pid + i as isize) as usize % MAX_PROCESSES))
[INFO] [stdout]     |                  ^                                                           ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 168 -             .nth(((CURRENT_PROCESS.pid + i as isize) as usize % MAX_PROCESSES))
[INFO] [stdout] 168 +             .nth((CURRENT_PROCESS.pid + i as isize) as usize % MAX_PROCESSES)
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::constants::PAGE_SIZE`
[INFO] [stdout]   --> src/main.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | use crate::constants::PAGE_SIZE;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `SBIWriter`
[INFO] [stdout]   --> src/main.rs:19:46
[INFO] [stdout]    |
[INFO] [stdout] 19 | use crate::sbi::{put_char, DeviceTreeHeader, SBIWriter};
[INFO] [stdout]    |                                              ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `core::cell::OnceCell`
[INFO] [stdout]   --> src/main.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 22 | use core::cell::OnceCell;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `core::fmt::Write`
[INFO] [stdout]   --> src/main.rs:23:5
[INFO] [stdout]    |
[INFO] [stdout] 23 | use core::fmt::Write;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `riscv::register::stvec::Stvec`
[INFO] [stdout]   --> src/main.rs:25:5
[INFO] [stdout]    |
[INFO] [stdout] 25 | use riscv::register::stvec::Stvec;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0658`.
[INFO] [stdout] 
[INFO] [stdout] error[E0152]: found duplicate lang item `panic_impl`
[INFO] [stdout]   --> src/main.rs:28:1
[INFO] [stdout]    |
[INFO] [stdout] 28 | / fn panic(info: &PanicInfo) -> ! {
[INFO] [stdout] 29 | |     println!("{}", info);
[INFO] [stdout] 30 | |
[INFO] [stdout] 31 | |     loop {
[INFO] [stdout] ...  |
[INFO] [stdout] 36 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = note: the lang item is first defined in crate `std` (which `test` depends on)
[INFO] [stdout]    = note: first definition in `std` loaded from /opt/rustwide/rustup-home/toolchains/c999cef531ea9059e189e82fe0e82c5daf249bc9/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-453218b5e9634890.rmeta
[INFO] [stdout]    = note: second definition in the local crate (`kappa`)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `kappa` (bin "kappa") due to 16 previous errors; 17 warnings emitted
[INFO] [stdout] For more information about this error, try `rustc --explain E0152`.
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `kappa` (bin "kappa" test) due to 1 previous error; 9 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "6f844894415600bbe5c510dc0b52fefc3b98c9e3e62436c9794a3d88746becf1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6f844894415600bbe5c510dc0b52fefc3b98c9e3e62436c9794a3d88746becf1", kill_on_drop: false }`
[INFO] [stdout] 6f844894415600bbe5c510dc0b52fefc3b98c9e3e62436c9794a3d88746becf1
