[INFO] cloning repository https://github.com/MarkusAkesson/rost [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MarkusAkesson/rost" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMarkusAkesson%2Frost", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMarkusAkesson%2Frost'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a63dc0d44a0e49649c54c9b91339dcfc343b41c0 [INFO] checking MarkusAkesson/rost/a63dc0d44a0e49649c54c9b91339dcfc343b41c0 against master#8424f8e8cdf07010967a57584fd647b30e930d4d for pr-120095 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMarkusAkesson%2Frost" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MarkusAkesson/rost on toolchain 8424f8e8cdf07010967a57584fd647b30e930d4d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8424f8e8cdf07010967a57584fd647b30e930d4d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-2-tc1/source/.cargo/config [INFO] started tweaking git repo https://github.com/MarkusAkesson/rost [INFO] finished tweaking git repo https://github.com/MarkusAkesson/rost [INFO] tweaked toml for git repo https://github.com/MarkusAkesson/rost written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8424f8e8cdf07010967a57584fd647b30e930d4d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Updating git repository `https://github.com/rust-embedded/riscv.git` [INFO] [stderr] Updating git repository `https://github.com/rust-embedded/riscv-rt.git` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8424f8e8cdf07010967a57584fd647b30e930d4d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded riscv-target v0.1.2 [INFO] [stderr] Downloaded embedded-hal v1.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,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" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+8424f8e8cdf07010967a57584fd647b30e930d4d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 618b0f5e95144f290d4802b08cc4e7e98ead68baf4ed30fdadb8c2bc880eca96 [INFO] running `Command { std: "docker" "start" "-a" "618b0f5e95144f290d4802b08cc4e7e98ead68baf4ed30fdadb8c2bc880eca96", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "618b0f5e95144f290d4802b08cc4e7e98ead68baf4ed30fdadb8c2bc880eca96", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "618b0f5e95144f290d4802b08cc4e7e98ead68baf4ed30fdadb8c2bc880eca96", kill_on_drop: false }` [INFO] [stdout] 618b0f5e95144f290d4802b08cc4e7e98ead68baf4ed30fdadb8c2bc880eca96 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,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" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-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" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+8424f8e8cdf07010967a57584fd647b30e930d4d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] de53f2416abb4cf335dd94ea71816775a679a55eee144ed8a2605472b75d77fd [INFO] running `Command { std: "docker" "start" "-a" "de53f2416abb4cf335dd94ea71816775a679a55eee144ed8a2605472b75d77fd", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling proc-macro2 v1.0.76 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Checking nb v1.1.0 [INFO] [stderr] Compiling riscv v0.10.1 [INFO] [stderr] Checking critical-section v1.1.2 [INFO] [stderr] Compiling winnow v0.5.34 [INFO] [stderr] Compiling toml_datetime v0.6.5 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling riscv v0.11.0 (https://github.com/rust-embedded/riscv.git#3cfade53) [INFO] [stderr] Checking embedded-hal v1.0.0 [INFO] [stderr] Compiling rost v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking nb v0.1.3 [INFO] [stderr] Checking volatile v0.2.7 [INFO] [stderr] Checking embedded-hal v0.2.7 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling indexmap v2.1.0 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling regex-automata v0.4.3 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling regex v1.10.2 [INFO] [stderr] Compiling riscv-target v0.1.2 [INFO] [stderr] Compiling riscv-rt-macros v0.2.0 (https://github.com/rust-embedded/riscv-rt.git#f7b4f6ec) [INFO] [stderr] Compiling num_enum_derive v0.5.11 [INFO] [stderr] Compiling riscv-rt v0.11.0 (https://github.com/rust-embedded/riscv-rt.git#f7b4f6ec) [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/page.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | use log::{debug,info, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/plic.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::arch::riscv::{self, thread_pointer}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/page.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | use log::{debug,info, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/plic.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::arch::riscv::{self, thread_pointer}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0152]: found duplicate lang item `panic_impl` [INFO] [stdout] --> src/lib.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / fn panic(info: &core::panic::PanicInfo) -> ! { [INFO] [stdout] 18 | | println!("hart {} aborting: ", arch::riscv::thread_pointer()); [INFO] [stdout] 19 | | if let Some(p) = info.location() { [INFO] [stdout] 20 | | println!( [INFO] [stdout] ... | [INFO] [stdout] 36 | | } [INFO] [stdout] 37 | | } [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/8424f8e8cdf07010967a57584fd647b30e930d4d/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-19d8bdaf9f223155.rlib [INFO] [stdout] = note: second definition in the local crate (`rost`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: mutable reference of mutable static is discouraged [INFO] [stdout] --> src/plic.rs:191:14 [INFO] [stdout] | [INFO] [stdout] 191 | unsafe { &mut _PLIC } [INFO] [stdout] | ^^^^^^^^^^ mutable reference of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: reference of mutable static is a hard error from 2024 edition [INFO] [stdout] = note: mutable statics can be written to by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] = note: `#[warn(static_mut_ref)]` on by default [INFO] [stdout] help: mutable references are dangerous since if there's any other pointer or reference used for that static while the reference lives, that's UB; use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 191 | unsafe { addr_of_mut!(_PLIC) } [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: mutable reference of mutable static is discouraged [INFO] [stdout] --> src/plic.rs:191:14 [INFO] [stdout] | [INFO] [stdout] 191 | unsafe { &mut _PLIC } [INFO] [stdout] | ^^^^^^^^^^ mutable reference of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: reference of mutable static is a hard error from 2024 edition [INFO] [stdout] = note: mutable statics can be written to by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] = note: `#[warn(static_mut_ref)]` on by default [INFO] [stdout] help: mutable references are dangerous since if there's any other pointer or reference used for that static while the reference lives, that's UB; use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 191 | unsafe { addr_of_mut!(_PLIC) } [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0152`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rost` (lib test) due to 2 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/mem.rs:50:35 [INFO] [stdout] | [INFO] [stdout] 50 | let pgtable: &mut PageTable = &mut *(&KERNEL_PAGE_TABLE as *const _ as *mut _); // to bypass mut ref [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: `#[deny(invalid_reference_casting)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rost` (lib) due to 2 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "de53f2416abb4cf335dd94ea71816775a679a55eee144ed8a2605472b75d77fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de53f2416abb4cf335dd94ea71816775a679a55eee144ed8a2605472b75d77fd", kill_on_drop: false }` [INFO] [stdout] de53f2416abb4cf335dd94ea71816775a679a55eee144ed8a2605472b75d77fd