[INFO] cloning repository https://github.com/NickWentworth/os [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/NickWentworth/os" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNickWentworth%2Fos", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNickWentworth%2Fos'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dc67291fa37f15d42fcdae8f9fc98857765aacf4 [INFO] testing NickWentworth/os against master#198328ad7960b1bece0dc48496bff6c62dd5d339 for pr-149852 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNickWentworth%2Fos" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-4-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/NickWentworth/os [INFO] finished tweaking git repo https://github.com/NickWentworth/os [INFO] tweaked toml for git repo https://github.com/NickWentworth/os written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/NickWentworth/os on toolchain 198328ad7960b1bece0dc48496bff6c62dd5d339 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+198328ad7960b1bece0dc48496bff6c62dd5d339" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/NickWentworth/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" "+198328ad7960b1bece0dc48496bff6c62dd5d339" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+198328ad7960b1bece0dc48496bff6c62dd5d339" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 47b8d5f240888b875aaa6c47a653ed067f3aaefae97757caa26b0b639d2a43b9 [INFO] running `Command { std: "docker" "start" "-a" "47b8d5f240888b875aaa6c47a653ed067f3aaefae97757caa26b0b639d2a43b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "47b8d5f240888b875aaa6c47a653ed067f3aaefae97757caa26b0b639d2a43b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "47b8d5f240888b875aaa6c47a653ed067f3aaefae97757caa26b0b639d2a43b9", kill_on_drop: false }` [INFO] [stdout] 47b8d5f240888b875aaa6c47a653ed067f3aaefae97757caa26b0b639d2a43b9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+198328ad7960b1bece0dc48496bff6c62dd5d339" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f265475e0f2e54e92a214bbcfd5be8356a7d8ebdbfd2fd871b769abd436a1d60 [INFO] running `Command { std: "docker" "start" "-a" "f265475e0f2e54e92a214bbcfd5be8356a7d8ebdbfd2fd871b769abd436a1d60", kill_on_drop: false }` [INFO] [stderr] Compiling os v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/main.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `println` [INFO] [stdout] --> src/allocator.rs:1:40 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{mem::addr::KernelVirtAddr, println}; [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: `crate::println` [INFO] [stdout] --> src/devices/raspi/videocore.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::println; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `framebuffer` [INFO] [stdout] --> src/graphics/framebuffer.rs:2:30 [INFO] [stdout] | [INFO] [stdout] 2 | graphics::{color::Color, framebuffer}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resp_addr` [INFO] [stdout] --> src/devices/raspi/videocore.rs:127:13 [INFO] [stdout] | [INFO] [stdout] 127 | let resp_addr = unsafe { Self::read_mailbox() }; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_resp_addr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resp_code` [INFO] [stdout] --> src/devices/raspi/videocore.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | let resp_code = buf[1]; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_resp_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:106:25 [INFO] [stdout] | [INFO] [stdout] 106 | struct TranslationTable([u64; 512]); [INFO] [stdout] | ---------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `heap` is never read [INFO] [stdout] --> src/allocator.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct LinkedListAllocator { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 5 | heap: &'static [u8], [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `receieve_char` is never used [INFO] [stdout] --> src/devices/generic/uart.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl UartController { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn receieve_char(&mut self) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `UART_DR_DATA` and `receieve_byte` are never used [INFO] [stdout] --> src/devices/generic/uart.rs:72:11 [INFO] [stdout] | [INFO] [stdout] 69 | impl UartPl011 { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | const UART_DR_DATA: u8 = 0; // Receive or transmit char [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | fn receieve_byte(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `set_display_dimensions` is never used [INFO] [stdout] --> src/devices/raspi/videocore.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl VideoCore { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn set_display_dimensions(width: u32, height: u32) -> (u32, u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `height` is never read [INFO] [stdout] --> src/graphics/framebuffer.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct FrameBuffer { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | height: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cpu_id` is never read [INFO] [stdout] --> src/kernel/cpu.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Cpu { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 8 | cpu_id: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stack` is never read [INFO] [stdout] --> src/kernel/process.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Process { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 6 | stack: Box<[u8; Self::STACK_SIZE]>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `width` and `height` are never used [INFO] [stdout] --> src/util/rect.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Rect { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn width(self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn height(self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/kernel/kernel.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | self.serial.lock().set(uart_controller); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 35 | let _ = self.serial.lock().set(uart_controller); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unknown token in expression [INFO] [stdout] --> src/kernel/cpu.rs:44:28 [INFO] [stdout] | [INFO] [stdout] 44 | unsafe { asm!("msr DAIFCLR, #0b1111") } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: instantiated into assembly here [INFO] [stdout] --> :2:15 [INFO] [stdout] | [INFO] [stdout] 2 | msr DAIFCLR, #0b1111 [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unknown token in expression [INFO] [stdout] --> src/kernel/cpu.rs:34:28 [INFO] [stdout] | [INFO] [stdout] 34 | unsafe { asm!("msr DAIFSET, #0b1111") } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: instantiated into assembly here [INFO] [stdout] --> :2:15 [INFO] [stdout] | [INFO] [stdout] 2 | msr DAIFSET, #0b1111 [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid instruction mnemonic 'msr' [INFO] [stdout] --> src/devices/generic/timer.rs:21:24 [INFO] [stdout] | [INFO] [stdout] 21 | unsafe { asm!("msr CNTP_CVAL_EL0, {}", in(reg) target_counter as u64) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: instantiated into assembly here [INFO] [stdout] --> :2:2 [INFO] [stdout] | [INFO] [stdout] 2 | msr CNTP_CVAL_EL0, rax [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid instruction mnemonic 'mrs' [INFO] [stdout] --> src/devices/generic/timer.rs:26:24 [INFO] [stdout] | [INFO] [stdout] 26 | unsafe { asm!("mrs {}, CNTFRQ_EL0", out(reg) freq) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: instantiated into assembly here [INFO] [stdout] --> :2:2 [INFO] [stdout] | [INFO] [stdout] 2 | mrs rax, CNTFRQ_EL0 [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid instruction mnemonic 'mrs' [INFO] [stdout] --> src/devices/generic/timer.rs:11:25 [INFO] [stdout] | [INFO] [stdout] 11 | unsafe { asm!( "mrs {}, CNTPCT_EL0", out(reg) counter) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: instantiated into assembly here [INFO] [stdout] --> :2:2 [INFO] [stdout] | [INFO] [stdout] 2 | mrs rax, CNTPCT_EL0 [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid instruction mnemonic 'mrs' [INFO] [stdout] --> src/main.rs:29:27 [INFO] [stdout] | [INFO] [stdout] 29 | core::arch::asm!("mrs {}, CurrentEL", out(reg) el); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: instantiated into assembly here [INFO] [stdout] --> :2:2 [INFO] [stdout] | [INFO] [stdout] 2 | mrs rax, CurrentEL [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `os` (bin "os") due to 6 previous errors; 16 warnings emitted [INFO] running `Command { std: "docker" "inspect" "f265475e0f2e54e92a214bbcfd5be8356a7d8ebdbfd2fd871b769abd436a1d60", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f265475e0f2e54e92a214bbcfd5be8356a7d8ebdbfd2fd871b769abd436a1d60", kill_on_drop: false }` [INFO] [stdout] f265475e0f2e54e92a214bbcfd5be8356a7d8ebdbfd2fd871b769abd436a1d60