[INFO] cloning repository https://github.com/guswns0528/matrix-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/guswns0528/matrix-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fguswns0528%2Fmatrix-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fguswns0528%2Fmatrix-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 76f338500a7834f5192d8f0bebfa0c003af59a06 [INFO] checking guswns0528/matrix-rs against try#7b3565da729099dbe807466fcd118fb2815986e0 for pr-81789 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fguswns0528%2Fmatrix-rs" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/guswns0528/matrix-rs on toolchain 7b3565da729099dbe807466fcd118fb2815986e0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+7b3565da729099dbe807466fcd118fb2815986e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/guswns0528/matrix-rs [INFO] finished tweaking git repo https://github.com/guswns0528/matrix-rs [INFO] tweaked toml for git repo https://github.com/guswns0528/matrix-rs written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/guswns0528/matrix-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+7b3565da729099dbe807466fcd118fb2815986e0" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] error: the lock file /workspace/builds/worker-0/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+7b3565da729099dbe807466fcd118fb2815986e0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/jeaye/ncurses-rs.git` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+7b3565da729099dbe807466fcd118fb2815986e0" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+7b3565da729099dbe807466fcd118fb2815986e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] f316b1b71a540f99aaa286cdd48366999178cfbf53e8cf5e26533d5dad949730 [INFO] running `Command { std: "docker" "start" "-a" "f316b1b71a540f99aaa286cdd48366999178cfbf53e8cf5e26533d5dad949730", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f316b1b71a540f99aaa286cdd48366999178cfbf53e8cf5e26533d5dad949730", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f316b1b71a540f99aaa286cdd48366999178cfbf53e8cf5e26533d5dad949730", kill_on_drop: false }` [INFO] [stdout] f316b1b71a540f99aaa286cdd48366999178cfbf53e8cf5e26533d5dad949730 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+7b3565da729099dbe807466fcd118fb2815986e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 602e0bc056672fc146b06ef50dbda43c16850661782e0af952bb59dd09a1f94b [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "602e0bc056672fc146b06ef50dbda43c16850661782e0af952bb59dd09a1f94b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.93 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling cc v1.0.67 [INFO] [stderr] Checking rand_core v0.6.2 [INFO] [stderr] Compiling ncurses v5.100.0 (https://github.com/jeaye/ncurses-rs.git#0d8621e8) [INFO] [stderr] Checking rand_chacha v0.3.0 [INFO] [stderr] Checking rand v0.8.3 [INFO] [stderr] Checking matrix v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `rand::sample` [INFO] [stdout] --> src/matrix.rs:6:32 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::{random, thread_rng, sample}; [INFO] [stdout] | ^^^^^^ no `sample` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `funcs` in `libc` [INFO] [stdout] --> src/matrix.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | use self::libc::funcs::posix88::unistd::usleep; [INFO] [stdout] | ^^^^^ could not find `funcs` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `rand::distributions::IndependentSample`, `rand::distributions::Range` [INFO] [stdout] --> src/matrix.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | use rand::distributions::{IndependentSample, Range}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^ no `Range` in `distributions` [INFO] [stdout] | | [INFO] [stdout] | no `IndependentSample` in `distributions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand::sample` [INFO] [stdout] --> src/matrix.rs:6:32 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::{random, thread_rng, sample}; [INFO] [stdout] | ^^^^^^ no `sample` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `funcs` in `libc` [INFO] [stdout] --> src/matrix.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | use self::libc::funcs::posix88::unistd::usleep; [INFO] [stdout] | ^^^^^ could not find `funcs` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `rand::distributions::IndependentSample`, `rand::distributions::Range` [INFO] [stdout] --> src/matrix.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | use rand::distributions::{IndependentSample, Range}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^ no `Range` in `distributions` [INFO] [stdout] | | [INFO] [stdout] | no `IndependentSample` in `distributions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `usleep` in this scope [INFO] [stdout] --> src/matrix.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | usleep((1000000.0 / REFRESH_RATE as f64) as u32); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 5 | use matrix::libc::usleep; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `random` [INFO] [stdout] --> src/matrix.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::{random, thread_rng, sample}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/matrix.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate libc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: casting pointer to `isize` [INFO] [stdout] --> src/matrix.rs:51:25 [INFO] [stdout] | [INFO] [stdout] 51 | Matrix { width: COLS as isize, height: LINES as isize, index: 0, rain_list: vec![], window: w } [INFO] [stdout] | ^^^^^^^^^^^^^ help: to cast to `isize`, cast to `usize` first: `COLS as usize as isize` [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(invalid_ptr_to_int_cast)]` on by default [INFO] [stdout] = help: pointers should only be cast to `usize` or `u64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: casting pointer to `isize` [INFO] [stdout] --> src/matrix.rs:51:48 [INFO] [stdout] | [INFO] [stdout] 51 | Matrix { width: COLS as isize, height: LINES as isize, index: 0, rain_list: vec![], window: w } [INFO] [stdout] | ^^^^^^^^^^^^^^ help: to cast to `isize`, cast to `usize` first: `LINES as usize as isize` [INFO] [stdout] | [INFO] [stdout] = help: pointers should only be cast to `usize` or `u64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `usleep` in this scope [INFO] [stdout] --> src/matrix.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | usleep((1000000.0 / REFRESH_RATE as f64) as u32); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 5 | use matrix::libc::usleep; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `random` [INFO] [stdout] --> src/matrix.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::{random, thread_rng, sample}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/matrix.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate libc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/matrix.rs:106:62 [INFO] [stdout] | [INFO] [stdout] 106 | mvaddch((y - trail_length) as i32, x as i32, BLANK_CHAR as u8 as u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ expected `u32`, found `u64` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u64` to a `u32` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 106 | mvaddch((y - trail_length) as i32, x as i32, (BLANK_CHAR as u8 as u64).try_into().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: casting pointer to `i16` [INFO] [stdout] --> src/matrix.rs:112:34 [INFO] [stdout] | [INFO] [stdout] 112 | if color >= 0 && color < (COLORS as i16) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: to cast to `i16`, cast to `usize` first: `COLORS as usize as i16` [INFO] [stdout] | [INFO] [stdout] = help: pointers should only be cast to `usize` or `u64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0432, E0433, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `matrix` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: casting pointer to `isize` [INFO] [stdout] --> src/matrix.rs:51:25 [INFO] [stdout] | [INFO] [stdout] 51 | Matrix { width: COLS as isize, height: LINES as isize, index: 0, rain_list: vec![], window: w } [INFO] [stdout] | ^^^^^^^^^^^^^ help: to cast to `isize`, cast to `usize` first: `COLS as usize as isize` [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(invalid_ptr_to_int_cast)]` on by default [INFO] [stdout] = help: pointers should only be cast to `usize` or `u64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: casting pointer to `isize` [INFO] [stdout] --> src/matrix.rs:51:48 [INFO] [stdout] | [INFO] [stdout] 51 | Matrix { width: COLS as isize, height: LINES as isize, index: 0, rain_list: vec![], window: w } [INFO] [stdout] | ^^^^^^^^^^^^^^ help: to cast to `isize`, cast to `usize` first: `LINES as usize as isize` [INFO] [stdout] | [INFO] [stdout] = help: pointers should only be cast to `usize` or `u64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/matrix.rs:106:62 [INFO] [stdout] | [INFO] [stdout] 106 | mvaddch((y - trail_length) as i32, x as i32, BLANK_CHAR as u8 as u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ expected `u32`, found `u64` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u64` to a `u32` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 106 | mvaddch((y - trail_length) as i32, x as i32, (BLANK_CHAR as u8 as u64).try_into().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: casting pointer to `i16` [INFO] [stdout] --> src/matrix.rs:112:34 [INFO] [stdout] | [INFO] [stdout] 112 | if color >= 0 && color < (COLORS as i16) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: to cast to `i16`, cast to `usize` first: `COLORS as usize as i16` [INFO] [stdout] | [INFO] [stdout] = help: pointers should only be cast to `usize` or `u64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0432, E0433, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "602e0bc056672fc146b06ef50dbda43c16850661782e0af952bb59dd09a1f94b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "602e0bc056672fc146b06ef50dbda43c16850661782e0af952bb59dd09a1f94b", kill_on_drop: false }` [INFO] [stdout] 602e0bc056672fc146b06ef50dbda43c16850661782e0af952bb59dd09a1f94b