[INFO] cloning repository https://github.com/takatori/rust-coin [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/takatori/rust-coin" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftakatori%2Frust-coin", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftakatori%2Frust-coin'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 93076f35aca5a0a5c849c8bfcbce0fa0c8c2386e [INFO] testing takatori/rust-coin against beta-2022-02-22 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftakatori%2Frust-coin" "/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/takatori/rust-coin on toolchain beta-2022-02-22 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/takatori/rust-coin [INFO] finished tweaking git repo https://github.com/takatori/rust-coin [INFO] tweaked toml for git repo https://github.com/takatori/rust-coin written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/takatori/rust-coin already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded iovec v0.1.0 [INFO] [stderr] Downloaded percent-encoding v1.0.0 [INFO] [stderr] Downloaded block-buffer v0.2.0 [INFO] [stderr] Downloaded mime v0.3.3 [INFO] [stderr] Downloaded mio v0.6.10 [INFO] [stderr] Downloaded lazycell v0.5.1 [INFO] [stderr] Downloaded httparse v1.2.3 [INFO] [stderr] Downloaded serde_derive_internals v0.16.0 [INFO] [stderr] Downloaded hyper v0.11.2 [INFO] [stderr] Downloaded futures-cpupool v0.1.6 [INFO] [stderr] Downloaded net2 v0.2.31 [INFO] [stderr] Downloaded futures v0.1.16 [INFO] [stderr] Downloaded tokio-io v0.1.3 [INFO] [stderr] Downloaded serde v1.0.15 [INFO] [stderr] Downloaded serde_json v1.0.3 [INFO] [stderr] Downloaded serde_derive v1.0.15 [INFO] [stderr] Downloaded digest v0.6.2 [INFO] [stderr] Downloaded sha2 v0.6.0 [INFO] [stderr] Downloaded tokio-core v0.1.9 [INFO] [stderr] Downloaded unicase v2.0.0 [INFO] [stderr] Downloaded num_cpus v1.6.2 [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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f5fb7d714ed06ece735039f44186ddeef06c1cc00e3206f78937b8337d809460 [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" "f5fb7d714ed06ece735039f44186ddeef06c1cc00e3206f78937b8337d809460", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f5fb7d714ed06ece735039f44186ddeef06c1cc00e3206f78937b8337d809460", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f5fb7d714ed06ece735039f44186ddeef06c1cc00e3206f78937b8337d809460", kill_on_drop: false }` [INFO] [stdout] f5fb7d714ed06ece735039f44186ddeef06c1cc00e3206f78937b8337d809460 [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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "build" "--frozen" "--message-format=json", 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] b6f94cad9c1021418e4ca6a6081395a4f1c1d488895ef028be2fd6b5f5c0af2b [INFO] running `Command { std: "docker" "start" "-a" "b6f94cad9c1021418e4ca6a6081395a4f1c1d488895ef028be2fd6b5f5c0af2b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.30 [INFO] [stderr] Compiling byteorder v1.1.0 [INFO] [stderr] Compiling semver v0.1.20 [INFO] [stderr] Compiling typenum v1.9.0 [INFO] [stderr] Compiling futures v0.1.16 [INFO] [stderr] Compiling log v0.3.8 [INFO] [stderr] Compiling odds v0.2.25 [INFO] [stderr] Compiling cfg-if v0.1.2 [INFO] [stderr] Compiling slab v0.3.0 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Compiling lazycell v0.5.1 [INFO] [stderr] Compiling scoped-tls v0.1.0 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Compiling byte-tools v0.2.0 [INFO] [stderr] Compiling take v0.1.0 [INFO] [stderr] Compiling safemem v0.2.0 [INFO] [stderr] Compiling smallvec v0.2.1 [INFO] [stderr] Compiling fake-simd v0.1.2 [INFO] [stderr] Compiling serde v1.0.15 [INFO] [stderr] Compiling httparse v1.2.3 [INFO] [stderr] Compiling percent-encoding v1.0.0 [INFO] [stderr] Compiling num-traits v0.1.40 [INFO] [stderr] Compiling itoa v0.3.4 [INFO] [stderr] Compiling dtoa v0.4.2 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Compiling base64 v0.6.0 [INFO] [stderr] Compiling rustc_version v0.1.7 [INFO] [stderr] Compiling nodrop v0.1.9 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Compiling iovec v0.1.0 [INFO] [stderr] Compiling net2 v0.2.31 [INFO] [stderr] Compiling rand v0.3.16 [INFO] [stderr] Compiling num_cpus v1.6.2 [INFO] [stderr] Compiling time v0.1.38 [INFO] [stderr] Compiling unicase v2.0.0 [INFO] [stderr] Compiling bytes v0.4.5 [INFO] [stderr] Compiling mio v0.6.10 [INFO] [stderr] Compiling tokio-io v0.1.3 [INFO] [stderr] Compiling tokio-service v0.1.0 [INFO] [stderr] Compiling futures-cpupool v0.1.6 [INFO] [stderr] Compiling mime v0.3.3 [INFO] [stderr] Compiling tokio-core v0.1.9 [INFO] [stderr] Compiling generic-array v0.8.3 [INFO] [stderr] Compiling serde_derive_internals v0.16.0 [INFO] [stderr] Compiling digest v0.6.2 [INFO] [stderr] Compiling block-buffer v0.2.0 [INFO] [stderr] Compiling sha2 v0.6.0 [INFO] [stderr] Compiling tokio-proto v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.15 [INFO] [stderr] Compiling serde_json v1.0.3 [INFO] [stderr] Compiling hyper v0.11.2 [INFO] [stderr] Compiling rust-coin v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `sha2::Sha256` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use sha2::Sha256; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `digest::Input` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use digest::Input; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hyper::header::ContentLength` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use hyper::header::ContentLength; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Http` [INFO] [stdout] --> src/main.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | use hyper::server::{Http, Request, Response, Service}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 94 | let mut sha256 = Digest::new(); [INFO] [stdout] | ---------- consider giving `sha256` a type [INFO] [stdout] 95 | sha256.input_str(seed); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:153:23 [INFO] [stdout] | [INFO] [stdout] 40 | static mut block_chain: Vec = vec![get_genesis_block()]; [INFO] [stdout] | ---------- expected due to this type [INFO] [stdout] ... [INFO] [stdout] 153 | block_chain = new_blocks; [INFO] [stdout] | ^^^^^^^^^^- help: try using a conversion method: `.to_vec()` [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[Block]` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found reference `&[Block]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:161:57 [INFO] [stdout] | [INFO] [stdout] 161 | fn is_valid_chain(block_chain_to_validate: &[Block]) -> bool { [INFO] [stdout] | -------------- ^^^^ expected `bool`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-coin` due to 4 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "b6f94cad9c1021418e4ca6a6081395a4f1c1d488895ef028be2fd6b5f5c0af2b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b6f94cad9c1021418e4ca6a6081395a4f1c1d488895ef028be2fd6b5f5c0af2b", kill_on_drop: false }` [INFO] [stdout] b6f94cad9c1021418e4ca6a6081395a4f1c1d488895ef028be2fd6b5f5c0af2b