[INFO] cloning repository https://github.com/ted-tanner/tedos [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ted-tanner/tedos" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fted-tanner%2Ftedos", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fted-tanner%2Ftedos'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9aaec113c8d17c6c272c95fb473a34b3165c5602 [INFO] checking ted-tanner/tedos against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fted-tanner%2Ftedos" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ted-tanner/tedos [INFO] finished tweaking git repo https://github.com/ted-tanner/tedos [INFO] tweaked toml for git repo https://github.com/ted-tanner/tedos written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ted-tanner/tedos on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ted-tanner/tedos 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 484b19db07f173a8c5ea9d4a03cfac88760afb35cf21ebb5b0bd2897a25137bc [INFO] running `Command { std: "docker" "start" "-a" "484b19db07f173a8c5ea9d4a03cfac88760afb35cf21ebb5b0bd2897a25137bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "484b19db07f173a8c5ea9d4a03cfac88760afb35cf21ebb5b0bd2897a25137bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "484b19db07f173a8c5ea9d4a03cfac88760afb35cf21ebb5b0bd2897a25137bc", kill_on_drop: false }` [INFO] [stdout] 484b19db07f173a8c5ea9d4a03cfac88760afb35cf21ebb5b0bd2897a25137bc [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 38097e024a526bafb21d67267c1026d8b59ffa841d444f6c5bd8519ad0f1ee8a [INFO] running `Command { std: "docker" "start" "-a" "38097e024a526bafb21d67267c1026d8b59ffa841d444f6c5bd8519ad0f1ee8a", kill_on_drop: false }` [INFO] [stderr] Compiling tedos-kernel v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking allocator-api2 v0.2.21 [INFO] [stdout] error[E0432]: unresolved imports `crate::platform::Platform`, `crate::platform::PAGE_SIZE` [INFO] [stdout] --> src/alloc/phys_page_allocator.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::platform::{Platform, PlatformPrimitives, PAGE_SIZE}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^ no `PAGE_SIZE` in `platform` [INFO] [stdout] | | [INFO] [stdout] | no `Platform` in `platform` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/platform/mod.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[cfg(target_arch = "riscv64")] [INFO] [stdout] | ----------------------- the item is gated behind the `riscv64` feature [INFO] [stdout] 4 | pub type Platform = riscv::RiscVPlatform; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/platform/mod.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 11 | #[cfg(target_arch = "riscv64")] [INFO] [stdout] | ----------------------- the item is gated behind the `riscv64` feature [INFO] [stdout] 12 | pub const PAGE_SIZE: usize = 4096; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::platform::uart::Uart` [INFO] [stdout] --> src/kernel_main.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::platform::uart::{Uart, UartController}; [INFO] [stdout] | ^^^^ no `Uart` in `platform::uart` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/platform/mod.rs:40:14 [INFO] [stdout] | [INFO] [stdout] 39 | #[cfg(target_machine = "rv64qemu")] [INFO] [stdout] | --------------------------- the item is gated behind the `rv64qemu` feature [INFO] [stdout] 40 | pub type Uart = super::riscv::qemu::uart::Uart; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::platform::Platform` [INFO] [stdout] --> src/kernel_main.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::platform::{Platform, PlatformPrimitives}; [INFO] [stdout] | ^^^^^^^^ no `Platform` in `platform` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/platform/mod.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[cfg(target_arch = "riscv64")] [INFO] [stdout] | ----------------------- the item is gated behind the `riscv64` feature [INFO] [stdout] 4 | pub type Platform = riscv::RiscVPlatform; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::platform::uart::Uart` [INFO] [stdout] --> src/panic.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::platform::uart::{Uart, UartController}; [INFO] [stdout] | ^^^^ no `Uart` in `platform::uart` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/platform/mod.rs:40:14 [INFO] [stdout] | [INFO] [stdout] 39 | #[cfg(target_machine = "rv64qemu")] [INFO] [stdout] | --------------------------- the item is gated behind the `rv64qemu` feature [INFO] [stdout] 40 | pub type Uart = super::riscv::qemu::uart::Uart; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::platform::Platform` [INFO] [stdout] --> src/panic.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::platform::{Platform, PlatformPrimitives}; [INFO] [stdout] | ^^^^^^^^ no `Platform` in `platform` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/platform/mod.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[cfg(target_arch = "riscv64")] [INFO] [stdout] | ----------------------- the item is gated behind the `riscv64` feature [INFO] [stdout] 4 | pub type Platform = riscv::RiscVPlatform; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::platform::uart::Uart` [INFO] [stdout] --> src/printbuf.rs:4:29 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::platform::uart::{Uart, UartController}; [INFO] [stdout] | ^^^^ no `Uart` in `platform::uart` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/platform/mod.rs:40:14 [INFO] [stdout] | [INFO] [stdout] 39 | #[cfg(target_machine = "rv64qemu")] [INFO] [stdout] | --------------------------- the item is gated behind the `rv64qemu` feature [INFO] [stdout] 40 | pub type Uart = super::riscv::qemu::uart::Uart; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::platform::PAGE_SIZE` [INFO] [stdout] --> src/printbuf.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::platform::PAGE_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `PAGE_SIZE` in `platform` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/platform/mod.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 11 | #[cfg(target_arch = "riscv64")] [INFO] [stdout] | ----------------------- the item is gated behind the `riscv64` feature [INFO] [stdout] 12 | pub const PAGE_SIZE: usize = 4096; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `platform::Platform` [INFO] [stdout] --> src/lib.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use platform::{Platform, PlatformPrimitives}; [INFO] [stdout] | ^^^^^^^^ no `Platform` in `platform` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/platform/mod.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[cfg(target_arch = "riscv64")] [INFO] [stdout] | ----------------------- the item is gated behind the `riscv64` feature [INFO] [stdout] 4 | pub type Platform = riscv::RiscVPlatform; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlatformPrimitives` [INFO] [stdout] --> src/alloc/phys_page_allocator.rs:4:33 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::platform::{Platform, PlatformPrimitives, PAGE_SIZE}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `allocator_api2::alloc::Allocator` [INFO] [stdout] --> src/kernel_main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use allocator_api2::alloc::Allocator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlatformPrimitives` [INFO] [stdout] --> src/kernel_main.rs:9:33 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::platform::{Platform, PlatformPrimitives}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UartController` [INFO] [stdout] --> src/panic.rs:5:35 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::platform::uart::{Uart, UartController}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlatformPrimitives` [INFO] [stdout] --> src/panic.rs:6:33 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::platform::{Platform, PlatformPrimitives}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UartController` [INFO] [stdout] --> src/printbuf.rs:4:35 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::platform::uart::{Uart, UartController}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlatformPrimitives` [INFO] [stdout] --> src/lib.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | use platform::{Platform, PlatformPrimitives}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0152]: found duplicate lang item `panic_impl` [INFO] [stdout] --> src/panic.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | / fn panic(info: &PanicInfo) -> ! { [INFO] [stdout] 11 | | let printbuf_prev_state = unsafe { [INFO] [stdout] ... | [INFO] [stdout] 43 | | Platform::abort(); [INFO] [stdout] 44 | | } [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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-9fbdd90241d2d923.rlib [INFO] [stdout] = note: second definition in the local crate (`tedoskernel`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0152, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0152`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tedos-kernel` (lib test) due to 9 previous errors; 7 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0432]: unresolved imports `crate::platform::Platform`, `crate::platform::PAGE_SIZE` [INFO] [stdout] --> src/alloc/phys_page_allocator.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::platform::{Platform, PlatformPrimitives, PAGE_SIZE}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^ no `PAGE_SIZE` in `platform` [INFO] [stdout] | | [INFO] [stdout] | no `Platform` in `platform` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/platform/mod.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[cfg(target_arch = "riscv64")] [INFO] [stdout] | ----------------------- the item is gated behind the `riscv64` feature [INFO] [stdout] 4 | pub type Platform = riscv::RiscVPlatform; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/platform/mod.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 11 | #[cfg(target_arch = "riscv64")] [INFO] [stdout] | ----------------------- the item is gated behind the `riscv64` feature [INFO] [stdout] 12 | pub const PAGE_SIZE: usize = 4096; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::platform::uart::Uart` [INFO] [stdout] --> src/kernel_main.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::platform::uart::{Uart, UartController}; [INFO] [stdout] | ^^^^ no `Uart` in `platform::uart` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/platform/mod.rs:40:14 [INFO] [stdout] | [INFO] [stdout] 39 | #[cfg(target_machine = "rv64qemu")] [INFO] [stdout] | --------------------------- the item is gated behind the `rv64qemu` feature [INFO] [stdout] 40 | pub type Uart = super::riscv::qemu::uart::Uart; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::platform::Platform` [INFO] [stdout] --> src/kernel_main.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::platform::{Platform, PlatformPrimitives}; [INFO] [stdout] | ^^^^^^^^ no `Platform` in `platform` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/platform/mod.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[cfg(target_arch = "riscv64")] [INFO] [stdout] | ----------------------- the item is gated behind the `riscv64` feature [INFO] [stdout] 4 | pub type Platform = riscv::RiscVPlatform; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::platform::uart::Uart` [INFO] [stdout] --> src/panic.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::platform::uart::{Uart, UartController}; [INFO] [stdout] | ^^^^ no `Uart` in `platform::uart` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/platform/mod.rs:40:14 [INFO] [stdout] | [INFO] [stdout] 39 | #[cfg(target_machine = "rv64qemu")] [INFO] [stdout] | --------------------------- the item is gated behind the `rv64qemu` feature [INFO] [stdout] 40 | pub type Uart = super::riscv::qemu::uart::Uart; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::platform::Platform` [INFO] [stdout] --> src/panic.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::platform::{Platform, PlatformPrimitives}; [INFO] [stdout] | ^^^^^^^^ no `Platform` in `platform` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/platform/mod.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[cfg(target_arch = "riscv64")] [INFO] [stdout] | ----------------------- the item is gated behind the `riscv64` feature [INFO] [stdout] 4 | pub type Platform = riscv::RiscVPlatform; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::platform::uart::Uart` [INFO] [stdout] --> src/printbuf.rs:4:29 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::platform::uart::{Uart, UartController}; [INFO] [stdout] | ^^^^ no `Uart` in `platform::uart` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/platform/mod.rs:40:14 [INFO] [stdout] | [INFO] [stdout] 39 | #[cfg(target_machine = "rv64qemu")] [INFO] [stdout] | --------------------------- the item is gated behind the `rv64qemu` feature [INFO] [stdout] 40 | pub type Uart = super::riscv::qemu::uart::Uart; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::platform::PAGE_SIZE` [INFO] [stdout] --> src/printbuf.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::platform::PAGE_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `PAGE_SIZE` in `platform` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/platform/mod.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 11 | #[cfg(target_arch = "riscv64")] [INFO] [stdout] | ----------------------- the item is gated behind the `riscv64` feature [INFO] [stdout] 12 | pub const PAGE_SIZE: usize = 4096; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `platform::Platform` [INFO] [stdout] --> src/lib.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use platform::{Platform, PlatformPrimitives}; [INFO] [stdout] | ^^^^^^^^ no `Platform` in `platform` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/platform/mod.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[cfg(target_arch = "riscv64")] [INFO] [stdout] | ----------------------- the item is gated behind the `riscv64` feature [INFO] [stdout] 4 | pub type Platform = riscv::RiscVPlatform; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlatformPrimitives` [INFO] [stdout] --> src/alloc/phys_page_allocator.rs:4:33 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::platform::{Platform, PlatformPrimitives, PAGE_SIZE}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `allocator_api2::alloc::Allocator` [INFO] [stdout] --> src/kernel_main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use allocator_api2::alloc::Allocator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlatformPrimitives` [INFO] [stdout] --> src/kernel_main.rs:9:33 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::platform::{Platform, PlatformPrimitives}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UartController` [INFO] [stdout] --> src/panic.rs:5:35 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::platform::uart::{Uart, UartController}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlatformPrimitives` [INFO] [stdout] --> src/panic.rs:6:33 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::platform::{Platform, PlatformPrimitives}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UartController` [INFO] [stdout] --> src/printbuf.rs:4:35 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::platform::uart::{Uart, UartController}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlatformPrimitives` [INFO] [stdout] --> src/lib.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | use platform::{Platform, PlatformPrimitives}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/panic.rs:10:31 [INFO] [stdout] | [INFO] [stdout] 10 | fn panic(info: &PanicInfo) -> ! { [INFO] [stdout] | ----- ^ expected `!`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected type `!` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UartController` [INFO] [stdout] --> src/kernel_main.rs:8:35 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::platform::uart::{Uart, UartController}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tedos-kernel` (lib) due to 9 previous errors; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "38097e024a526bafb21d67267c1026d8b59ffa841d444f6c5bd8519ad0f1ee8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "38097e024a526bafb21d67267c1026d8b59ffa841d444f6c5bd8519ad0f1ee8a", kill_on_drop: false }` [INFO] [stdout] 38097e024a526bafb21d67267c1026d8b59ffa841d444f6c5bd8519ad0f1ee8a