[INFO] cloning repository https://github.com/panpansuannai/os [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/panpansuannai/os" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpanpansuannai%2Fos", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpanpansuannai%2Fos'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 31391aaf137e05949293f459f076176b135ea82a [INFO] checking panpansuannai/os against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpanpansuannai%2Fos" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/panpansuannai/os on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-3-tc1/source/.cargo/config [INFO] started tweaking git repo https://github.com/panpansuannai/os [INFO] finished tweaking git repo https://github.com/panpansuannai/os [INFO] tweaked toml for git repo https://github.com/panpansuannai/os written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/panpansuannai/os 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Updating git repository `https://github.com/rcore-os/riscv` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded spin v0.7.1 [INFO] [stderr] Downloaded zero v0.1.2 [INFO] [stderr] Downloaded xmas-elf v0.8.0 [INFO] [stderr] Downloaded buddy_system_allocator v0.6.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f7adfdd3c9fb7b79d600b5179be3fa1fbc37211b855ad80d3e2125cc237001b0 [INFO] running `Command { std: "docker" "start" "-a" "f7adfdd3c9fb7b79d600b5179be3fa1fbc37211b855ad80d3e2125cc237001b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f7adfdd3c9fb7b79d600b5179be3fa1fbc37211b855ad80d3e2125cc237001b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f7adfdd3c9fb7b79d600b5179be3fa1fbc37211b855ad80d3e2125cc237001b0", kill_on_drop: false }` [INFO] [stdout] f7adfdd3c9fb7b79d600b5179be3fa1fbc37211b855ad80d3e2125cc237001b0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 58075965bf2d536fb29e7d76e1db7bf9654e6edd8137a6f3e1e6ce0b628f1b44 [INFO] running `Command { std: "docker" "start" "-a" "58075965bf2d536fb29e7d76e1db7bf9654e6edd8137a6f3e1e6ce0b628f1b44", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Checking spin v0.7.1 [INFO] [stderr] Checking zero v0.1.2 [INFO] [stderr] Checking bit_field v0.10.1 [INFO] [stderr] Checking xmas-elf v0.8.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Checking buddy_system_allocator v0.6.0 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling bare-metal v0.2.5 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling riscv-target v0.1.2 [INFO] [stderr] Compiling riscv v0.6.0 (https://github.com/rcore-os/riscv#11d43cf7) [INFO] [stderr] Checking os v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0557]: feature has been removed [INFO] [stdout] --> src/main.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | #![feature(const_raw_ptr_to_usize_cast)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ feature has been removed [INFO] [stdout] | [INFO] [stdout] = note: at compile-time, pointers do not have an integer value, so these casts cannot be properly supported [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0557]: feature has been removed [INFO] [stdout] --> src/main.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | #![feature(const_raw_ptr_to_usize_cast)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ feature has been removed [INFO] [stdout] | [INFO] [stdout] = note: at compile-time, pointers do not have an integer value, so these casts cannot be properly supported [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/batch.rs:63:18 [INFO] [stdout] | [INFO] [stdout] 63 | unsafe { asm!("fence.i") } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use core::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/main.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | asm!("mv sp, {0}", [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 18 + use core::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/process/cpu.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | asm!("mv {}, tp", out(reg) ret); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use core::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/mm/pgtbl.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | asm!("sfence.vma"); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use core::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `global_asm` in this scope [INFO] [stdout] --> src/user/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | global_asm!(include_str!("apps.s")); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use core::arch::global_asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `global_asm` in this scope [INFO] [stdout] --> src/entry.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | global_asm!( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use core::arch::global_asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/batch.rs:63:18 [INFO] [stdout] | [INFO] [stdout] 63 | unsafe { asm!("fence.i") } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use core::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/entry.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | asm!("la sp, boot_stack", [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use core::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/main.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | asm!("mv sp, {0}", [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 18 + use core::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `global_asm` in this scope [INFO] [stdout] --> src/trap/mod.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | global_asm!(include_str!("traps.s")); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 4 + use core::arch::global_asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/process/cpu.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | asm!("mv {}, tp", out(reg) ret); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use core::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/sbi.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | asm!("ecall", inout("x10") args[0] => ret, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use core::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/mm/pgtbl.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | asm!("sfence.vma"); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use core::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `global_asm` in this scope [INFO] [stdout] --> src/user/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | global_asm!(include_str!("apps.s")); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use core::arch::global_asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `global_asm` in this scope [INFO] [stdout] --> src/entry.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | global_asm!( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use core::arch::global_asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/entry.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | asm!("la sp, boot_stack", [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use core::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `global_asm` in this scope [INFO] [stdout] --> src/trap/mod.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | global_asm!(include_str!("traps.s")); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 4 + use core::arch::global_asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/sbi.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | asm!("ecall", inout("x10") args[0] => ret, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use core::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Mode` in `satp` [INFO] [stdout] --> src/mm/pgtbl.rs:87:29 [INFO] [stdout] | [INFO] [stdout] 87 | satp::set(satp::Mode::Sv39, 0, self.root.0); [INFO] [stdout] | ^^^^ could not find `Mode` in `satp` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/riscv-ab2abd16c438337b/11d43cf/src/register/satp.rs:83:10 [INFO] [stdout] | [INFO] [stdout] 83 | pub enum Mode { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/riscv-ab2abd16c438337b/11d43cf/src/register/satp.rs:90:10 [INFO] [stdout] | [INFO] [stdout] 90 | pub enum Mode { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `set` in module `satp` [INFO] [stdout] --> src/mm/pgtbl.rs:87:19 [INFO] [stdout] | [INFO] [stdout] 87 | satp::set(satp::Mode::Sv39, 0, self.root.0); [INFO] [stdout] | ^^^ not found in `satp` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/riscv-ab2abd16c438337b/11d43cf/src/register/satp.rs:103:15 [INFO] [stdout] | [INFO] [stdout] 103 | pub unsafe fn set(mode: Mode, asid: usize, ppn: usize) { [INFO] [stdout] | ^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/riscv-ab2abd16c438337b/11d43cf/src/register/satp.rs:113:15 [INFO] [stdout] | [INFO] [stdout] 113 | pub unsafe fn set(mode: Mode, asid: usize, ppn: usize) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `spin::MutexGuard` [INFO] [stdout] --> src/trap/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use spin::MutexGuard; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `console::print`, `process::cpu::current_hart` [INFO] [stdout] --> src/syscall.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{mm::address::*, console::print, process::cpu::current_hart, task::{schedule_pcb, TASKMANAGER}}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Sync` is imported redundantly [INFO] [stdout] --> src/batch.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use core::marker::Sync; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/prelude/mod.rs:47:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Sync` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AsMut` is imported redundantly [INFO] [stdout] --> src/mm/address.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | use core::convert::AsMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/prelude/mod.rs:47:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `AsMut` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AsRef` is imported redundantly [INFO] [stdout] --> src/mm/address.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 115 | use core::convert::AsRef; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/prelude/mod.rs:47:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `AsRef` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AsMut` is imported redundantly [INFO] [stdout] --> src/mm/kalloc.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | use core::convert::AsMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/prelude/mod.rs:47:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `AsMut` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicBool`, `self` [INFO] [stdout] --> src/process/mod.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use core::sync::atomic::{self, AtomicBool}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Mode` in `satp` [INFO] [stdout] --> src/mm/pgtbl.rs:87:29 [INFO] [stdout] | [INFO] [stdout] 87 | satp::set(satp::Mode::Sv39, 0, self.root.0); [INFO] [stdout] | ^^^^ could not find `Mode` in `satp` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/riscv-ab2abd16c438337b/11d43cf/src/register/satp.rs:83:10 [INFO] [stdout] | [INFO] [stdout] 83 | pub enum Mode { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/riscv-ab2abd16c438337b/11d43cf/src/register/satp.rs:90:10 [INFO] [stdout] | [INFO] [stdout] 90 | pub enum Mode { [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[E0425]: cannot find function `set` in module `satp` [INFO] [stdout] --> src/mm/pgtbl.rs:87:19 [INFO] [stdout] | [INFO] [stdout] 87 | satp::set(satp::Mode::Sv39, 0, self.root.0); [INFO] [stdout] | ^^^ not found in `satp` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/riscv-ab2abd16c438337b/11d43cf/src/register/satp.rs:103:15 [INFO] [stdout] | [INFO] [stdout] 103 | pub unsafe fn set(mode: Mode, asid: usize, ppn: usize) { [INFO] [stdout] | ^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/riscv-ab2abd16c438337b/11d43cf/src/register/satp.rs:113:15 [INFO] [stdout] | [INFO] [stdout] 113 | pub unsafe fn set(mode: Mode, asid: usize, ppn: usize) { [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: `spin::MutexGuard` [INFO] [stdout] --> src/trap/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use spin::MutexGuard; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `console::print`, `process::cpu::current_hart` [INFO] [stdout] --> src/syscall.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{mm::address::*, console::print, process::cpu::current_hart, task::{schedule_pcb, TASKMANAGER}}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Sync` is imported redundantly [INFO] [stdout] --> src/batch.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use core::marker::Sync; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/prelude/mod.rs:47:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Sync` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AsMut` is imported redundantly [INFO] [stdout] --> src/mm/address.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | use core::convert::AsMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/prelude/mod.rs:47:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `AsMut` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AsRef` is imported redundantly [INFO] [stdout] --> src/mm/address.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 115 | use core::convert::AsRef; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/prelude/mod.rs:47:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `AsRef` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AsMut` is imported redundantly [INFO] [stdout] --> src/mm/kalloc.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | use core::convert::AsMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/prelude/mod.rs:47:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `AsMut` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicBool`, `self` [INFO] [stdout] --> src/process/mod.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use core::sync::atomic::{self, AtomicBool}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0152]: found duplicate lang item `panic_impl` [INFO] [stdout] --> src/lang_items.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | / fn panic(info : &PanicInfo) -> ! { [INFO] [stdout] 9 | | if let Some(location) = info.location() { [INFO] [stdout] 10 | | println!("Panicked at {}:{} {}", location.file(), [INFO] [stdout] 11 | | location.line(), info.message().unwrap()); [INFO] [stdout] ... | [INFO] [stdout] 16 | | loop {} [INFO] [stdout] 17 | | } [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/af4a5a13a15fa0c60e06321077ef452f769b42fd/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-eb900a948ffb2e3b.rlib [INFO] [stdout] = note: second definition in the local crate (`os`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0152, E0425, E0433, E0557. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0152`. [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/main.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | #![feature(asm)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [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/main.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | #![feature(global_asm)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `llvm_asm` [INFO] [stdout] --> src/main.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | #![feature(llvm_asm)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `os` (bin "os" test) due to 15 previous errors; 7 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0015]: cannot call non-const fn `::default` in statics [INFO] [stdout] --> src/mm/mod.rs:14:44 [INFO] [stdout] | [INFO] [stdout] 14 | pub static mut KERNEL_PAGE_TABLE : Pgtbl = Pgtbl::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in statics are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = note: consider wrapping this expression in `Lazy::new(|| ...)` from the `once_cell` crate: https://crates.io/crates/once_cell [INFO] [stdout] help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] --> src/main.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 + #![feature(effects)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `::default` in statics [INFO] [stdout] --> src/mm/mod.rs:15:51 [INFO] [stdout] | [INFO] [stdout] 15 | pub static mut KERNEL_MEMORY_SPACE: MemorySpace = MemorySpace::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in statics are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = note: consider wrapping this expression in `Lazy::new(|| ...)` from the `once_cell` crate: https://crates.io/crates/once_cell [INFO] [stdout] help: add `#![feature(effects)]` to the crate attributes to enable [INFO] [stdout] --> src/main.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 + #![feature(effects)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_id` [INFO] [stdout] --> src/batch.rs:56:27 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn run_app(&self, app_id: usize){ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 previous errors; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0015, E0425, E0433, E0557, E0635. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0015`. [INFO] [stdout] [INFO] [stderr] error: could not compile `os` (bin "os") due to 17 previous errors; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "58075965bf2d536fb29e7d76e1db7bf9654e6edd8137a6f3e1e6ce0b628f1b44", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "58075965bf2d536fb29e7d76e1db7bf9654e6edd8137a6f3e1e6ce0b628f1b44", kill_on_drop: false }` [INFO] [stdout] 58075965bf2d536fb29e7d76e1db7bf9654e6edd8137a6f3e1e6ce0b628f1b44