[INFO] cloning repository https://github.com/lizhirui/dreamos_rustversion [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lizhirui/dreamos_rustversion" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flizhirui%2Fdreamos_rustversion", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flizhirui%2Fdreamos_rustversion'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 25e55f653061ac1b7aa8dc920db29144b67a2291 [INFO] testing lizhirui/dreamos_rustversion against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flizhirui%2Fdreamos_rustversion" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-5-tc1/source/rust-toolchain [INFO] started tweaking git repo https://github.com/lizhirui/dreamos_rustversion [INFO] finished tweaking git repo https://github.com/lizhirui/dreamos_rustversion [INFO] tweaked toml for git repo https://github.com/lizhirui/dreamos_rustversion written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lizhirui/dreamos_rustversion on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/lizhirui/dreamos_rustversion 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 15d88b4219381430c5575ff74a930bd4ebdfa3d4b480616b97b449e226320af5 [INFO] running `Command { std: "docker" "start" "-a" "15d88b4219381430c5575ff74a930bd4ebdfa3d4b480616b97b449e226320af5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "15d88b4219381430c5575ff74a930bd4ebdfa3d4b480616b97b449e226320af5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "15d88b4219381430c5575ff74a930bd4ebdfa3d4b480616b97b449e226320af5", kill_on_drop: false }` [INFO] [stdout] 15d88b4219381430c5575ff74a930bd4ebdfa3d4b480616b97b449e226320af5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6b59c210730a9dc656db096b845eca87454569350bed877dc78cd0e0a4382769 [INFO] running `Command { std: "docker" "start" "-a" "6b59c210730a9dc656db096b845eca87454569350bed877dc78cd0e0a4382769", kill_on_drop: false }` [INFO] [stderr] Compiling spin v0.7.1 [INFO] [stderr] Compiling dreamos v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `null` [INFO] [stdout] --> src/common/list.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use core::ptr::{null, null_mut}; [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 import: `core::alloc::Layout` [INFO] [stdout] --> src/task/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::alloc::Layout; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_fn_fn_ptr_basics` has been stable since 1.61.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | #![feature(const_fn_fn_ptr_basics)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `asm` has been stable since 1.59.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(asm)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `global_asm` has been stable since 1.59.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(global_asm)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/kernel/mod.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 51 | / loop [INFO] [stdout] 52 | | { [INFO] [stdout] 53 | | println!("abc"); [INFO] [stdout] 54 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 55 | [INFO] [stdout] 56 | assert!(false); [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: unnecessary `unsafe` block [INFO] [stdout] --> src/common/mod.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | unsafe{&$variable as *const _ as *mut _} [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/common/list.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | unsafe [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/task/mod.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | list_init!(priority_list[i]); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `get_pointer` which comes from the expansion of the macro `list_init` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/common/mod.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | unsafe{&$variable as *const _ as *mut _} [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/common/list.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | unsafe [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/task/mod.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | list_init!(priority_list[i]); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `get_pointer` which comes from the expansion of the macro `list_init` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `task_list` is never used [INFO] [stdout] --> src/task/mod.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | static mut task_list: list_node = list_node::new(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_next_task` is never used [INFO] [stdout] --> src/task/mod.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn get_next_task() -> Option<&'static mut task_t> [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `task_dispatch` is never used [INFO] [stdout] --> src/task/mod.rs:99:4 [INFO] [stdout] | [INFO] [stdout] 99 | fn task_dispatch() [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/io/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | bsp_helper_func.puts(s); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/kernel/mod.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | unsafe{bsp_helper_func.early_init();} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/kernel/mod.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | unsafe{bsp_helper_func.after_heap_init();} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/kernel/mod.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | unsafe{bsp_helper_func.after_task_scheduler_init();} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/kernel/mod.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | unsafe{bsp_helper_func.interrupt_enable(true);} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/memory/phypage.rs:65:139 [INFO] [stdout] | [INFO] [stdout] 65 | ...= {:#018x}\npage_memory_end = {:#018x}",page_metainfo_start,page_metainfo_end,page_memory_start,page_memory_end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/memory/phypage.rs:65:159 [INFO] [stdout] | [INFO] [stdout] 65 | ...mory_end = {:#018x}",page_metainfo_start,page_metainfo_end,page_memory_start,page_memory_end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/memory/phypage.rs:65:177 [INFO] [stdout] | [INFO] [stdout] 65 | ...}",page_metainfo_start,page_metainfo_end,page_memory_start,page_memory_end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/memory/phypage.rs:65:195 [INFO] [stdout] | [INFO] [stdout] 65 | ...start,page_metainfo_end,page_memory_start,page_memory_end); [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.52s [INFO] running `Command { std: "docker" "inspect" "6b59c210730a9dc656db096b845eca87454569350bed877dc78cd0e0a4382769", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b59c210730a9dc656db096b845eca87454569350bed877dc78cd0e0a4382769", kill_on_drop: false }` [INFO] [stdout] 6b59c210730a9dc656db096b845eca87454569350bed877dc78cd0e0a4382769 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ff3169a0651b5d26b2791e00c86cc33ab28539be0f2d81028fb10f452470b294 [INFO] running `Command { std: "docker" "start" "-a" "ff3169a0651b5d26b2791e00c86cc33ab28539be0f2d81028fb10f452470b294", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `null` [INFO] [stdout] --> src/common/list.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use core::ptr::{null, null_mut}; [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 import: `core::alloc::Layout` [INFO] [stdout] --> src/task/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::alloc::Layout; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_fn_fn_ptr_basics` has been stable since 1.61.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | #![feature(const_fn_fn_ptr_basics)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `asm` has been stable since 1.59.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(asm)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `global_asm` has been stable since 1.59.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(global_asm)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/kernel/mod.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 51 | / loop [INFO] [stdout] 52 | | { [INFO] [stdout] 53 | | println!("abc"); [INFO] [stdout] 54 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 55 | [INFO] [stdout] 56 | assert!(false); [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: unnecessary `unsafe` block [INFO] [stdout] --> src/common/mod.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | unsafe{&$variable as *const _ as *mut _} [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/common/list.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | unsafe [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/task/mod.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | list_init!(priority_list[i]); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `get_pointer` which comes from the expansion of the macro `list_init` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/common/mod.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | unsafe{&$variable as *const _ as *mut _} [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/common/list.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | unsafe [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/task/mod.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | list_init!(priority_list[i]); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `get_pointer` which comes from the expansion of the macro `list_init` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `task_list` is never used [INFO] [stdout] --> src/task/mod.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | static mut task_list: list_node = list_node::new(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_next_task` is never used [INFO] [stdout] --> src/task/mod.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn get_next_task() -> Option<&'static mut task_t> [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `task_dispatch` is never used [INFO] [stdout] --> src/task/mod.rs:99:4 [INFO] [stdout] | [INFO] [stdout] 99 | fn task_dispatch() [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/io/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | bsp_helper_func.puts(s); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling dreamos v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/kernel/mod.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | unsafe{bsp_helper_func.early_init();} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/kernel/mod.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | unsafe{bsp_helper_func.after_heap_init();} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/kernel/mod.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | unsafe{bsp_helper_func.after_task_scheduler_init();} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/kernel/mod.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | unsafe{bsp_helper_func.interrupt_enable(true);} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/memory/phypage.rs:65:139 [INFO] [stdout] | [INFO] [stdout] 65 | ...= {:#018x}\npage_memory_end = {:#018x}",page_metainfo_start,page_metainfo_end,page_memory_start,page_memory_end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/memory/phypage.rs:65:159 [INFO] [stdout] | [INFO] [stdout] 65 | ...mory_end = {:#018x}",page_metainfo_start,page_metainfo_end,page_memory_start,page_memory_end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/memory/phypage.rs:65:177 [INFO] [stdout] | [INFO] [stdout] 65 | ...}",page_metainfo_start,page_metainfo_end,page_memory_start,page_memory_end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/memory/phypage.rs:65:195 [INFO] [stdout] | [INFO] [stdout] 65 | ...start,page_metainfo_end,page_memory_start,page_memory_end); [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the `#[alloc_error_handler]` in this crate conflicts with allocation error handler in: std [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `null` [INFO] [stdout] --> src/common/list.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use core::ptr::{null, null_mut}; [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 import: `core::alloc::Layout` [INFO] [stdout] --> src/task/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::alloc::Layout; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0152]: found duplicate lang item `panic_impl` [INFO] [stdout] --> src/lang_items.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / fn panic(info: &PanicInfo) -> ! [INFO] [stdout] 7 | | { [INFO] [stdout] 8 | | terminal_color::set(terminal_color::fg_red,terminal_color::bg_current); [INFO] [stdout] 9 | | println!("[System Panic]"); [INFO] [stdout] ... | [INFO] [stdout] 12 | | loop {} [INFO] [stdout] 13 | | } [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/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-689ca45c0c8af91f.so, /opt/rustwide/rustup-home/toolchains/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-689ca45c0c8af91f.rlib [INFO] [stdout] = note: second definition in the local crate (`dreamos`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0152`. [INFO] [stdout] [INFO] [stderr] error: could not compile `dreamos` (lib test) due to 2 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "ff3169a0651b5d26b2791e00c86cc33ab28539be0f2d81028fb10f452470b294", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff3169a0651b5d26b2791e00c86cc33ab28539be0f2d81028fb10f452470b294", kill_on_drop: false }` [INFO] [stdout] ff3169a0651b5d26b2791e00c86cc33ab28539be0f2d81028fb10f452470b294