[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] checking lizhirui/dreamos_rustversion against master#613bdd49978298648ed05ace086bd1ecad54b44a for pr-136458 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flizhirui%2Fdreamos_rustversion" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lizhirui/dreamos_rustversion on toolchain 613bdd49978298648ed05ace086bd1ecad54b44a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+613bdd49978298648ed05ace086bd1ecad54b44a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-6-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-6-tc1/source/Cargo.toml [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" "+613bdd49978298648ed05ace086bd1ecad54b44a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+613bdd49978298648ed05ace086bd1ecad54b44a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d0e59011fa86ce4752836a7a9745489434ff0b081d04c09c17a2add20a2e2e49 [INFO] running `Command { std: "docker" "start" "-a" "d0e59011fa86ce4752836a7a9745489434ff0b081d04c09c17a2add20a2e2e49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d0e59011fa86ce4752836a7a9745489434ff0b081d04c09c17a2add20a2e2e49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0e59011fa86ce4752836a7a9745489434ff0b081d04c09c17a2add20a2e2e49", kill_on_drop: false }` [INFO] [stdout] d0e59011fa86ce4752836a7a9745489434ff0b081d04c09c17a2add20a2e2e49 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+613bdd49978298648ed05ace086bd1ecad54b44a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7c41abe5352ad5cd4e2b91174272cc28f827b7921285ad9eeb6770cc651e43c7 [INFO] running `Command { std: "docker" "start" "-a" "7c41abe5352ad5cd4e2b91174272cc28f827b7921285ad9eeb6770cc651e43c7", kill_on_drop: false }` [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking spin v0.7.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking 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)]` 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: 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)]` 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/613bdd49978298648ed05ace086bd1ecad54b44a/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-54c13a3455b13793.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] [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] [stderr] error: could not compile `dreamos` (lib test) due to 2 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/kernel/mod.rs:56:5 [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)]` on by default [INFO] [stdout] = note: this warning originates in the macro `assert` (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: `#[warn(unused_unsafe)]` 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)]` 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 is discouraged [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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] running `Command { std: "docker" "inspect" "7c41abe5352ad5cd4e2b91174272cc28f827b7921285ad9eeb6770cc651e43c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c41abe5352ad5cd4e2b91174272cc28f827b7921285ad9eeb6770cc651e43c7", kill_on_drop: false }` [INFO] [stdout] 7c41abe5352ad5cd4e2b91174272cc28f827b7921285ad9eeb6770cc651e43c7