[INFO] cloning repository https://github.com/takatori/rust-coin [INFO] running `"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"` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftakatori%2Frust-coin'... [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 93076f35aca5a0a5c849c8bfcbce0fa0c8c2386e [INFO] testing takatori/rust-coin against 1.44.0 for beta-1.45-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftakatori%2Frust-coin" "/workspace/builds/worker-3/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/takatori/rust-coin on toolchain 1.44.0 [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "read-manifest" "--manifest-path" "Cargo.toml"` [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-3/source/Cargo.toml [INFO] crate git repo https://github.com/takatori/rust-coin already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.44.0" "build" "--frozen"` [INFO] [stdout] 3ebd96391437e4dc1fbe3292773bd33fa7c14dee0165ef2699e95e7ff30f1dd7 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `"docker" "start" "-a" "3ebd96391437e4dc1fbe3292773bd33fa7c14dee0165ef2699e95e7ff30f1dd7"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling libc v0.2.30 [INFO] [stderr] Compiling odds v0.2.25 [INFO] [stderr] Compiling lazycell v0.5.1 [INFO] [stderr] Compiling slab v0.3.0 [INFO] [stderr] Compiling scoped-tls v0.1.0 [INFO] [stderr] Compiling smallvec v0.2.1 [INFO] [stderr] Compiling take v0.1.0 [INFO] [stderr] Compiling byte-tools v0.2.0 [INFO] [stderr] Compiling httparse v1.2.3 [INFO] [stderr] Compiling serde v1.0.15 [INFO] [stderr] Compiling fake-simd v0.1.2 [INFO] [stderr] Compiling tokio-service v0.1.0 [INFO] [stderr] Compiling base64 v0.6.0 [INFO] [stderr] Compiling unicase v2.0.0 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Compiling nodrop v0.1.9 [INFO] [stderr] Compiling generic-array v0.8.3 [INFO] [stderr] Compiling digest v0.6.2 [INFO] [stderr] Compiling block-buffer v0.2.0 [INFO] [stderr] Compiling mime v0.3.3 [INFO] [stderr] Compiling sha2 v0.6.0 [INFO] [stderr] Compiling iovec v0.1.0 [INFO] [stderr] Compiling net2 v0.2.31 [INFO] [stderr] Compiling num_cpus v1.6.2 [INFO] [stderr] Compiling rand v0.3.16 [INFO] [stderr] Compiling time v0.1.38 [INFO] [stderr] Compiling bytes v0.4.5 [INFO] [stderr] Compiling futures-cpupool v0.1.6 [INFO] [stderr] Compiling mio v0.6.10 [INFO] [stderr] Compiling tokio-io v0.1.3 [INFO] [stderr] Compiling serde_derive_internals v0.16.0 [INFO] [stderr] Compiling tokio-core v0.1.9 [INFO] [stderr] Compiling serde_derive v1.0.15 [INFO] [stderr] Compiling tokio-proto v0.1.1 [INFO] [stderr] Compiling hyper v0.11.2 [INFO] [stderr] Compiling serde_json v1.0.3 [INFO] [stderr] Compiling rust-coin v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unused import: `sha2::Sha256` [INFO] [stderr] --> src/main.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | use sha2::Sha256; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `digest::Input` [INFO] [stderr] --> src/main.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | use digest::Input; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `hyper::header::ContentLength` [INFO] [stderr] --> src/main.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | use hyper::header::ContentLength; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Http` [INFO] [stderr] --> src/main.rs:19:21 [INFO] [stderr] | [INFO] [stderr] 19 | use hyper::server::{Http, Request, Response, Service}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] error[E0658]: `match` is not allowed in a `const` [INFO] [stderr] --> src/main.rs:22:24 [INFO] [stderr] | [INFO] [stderr] 22 | const HTTP_PORT: i32 = match env::var("HTTP_PORT") { [INFO] [stderr] | ________________________^ [INFO] [stderr] 23 | | Ok(val) => val.parse::().unwrap(), [INFO] [stderr] 24 | | Err(e) => 3001, [INFO] [stderr] 25 | | }; [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #49146 for more information [INFO] [stderr] [INFO] [stderr] error[E0658]: `match` is not allowed in a `const` [INFO] [stderr] --> src/main.rs:27:23 [INFO] [stderr] | [INFO] [stderr] 27 | const P2P_PORT: i32 = match env::var("P2P_PORT") { [INFO] [stderr] | _______________________^ [INFO] [stderr] 28 | | Ok(val) => val.parse::().unwrap(), [INFO] [stderr] 29 | | Err(e) => 6001, [INFO] [stderr] 30 | | }; [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #49146 for more information [INFO] [stderr] [INFO] [stderr] error[E0282]: type annotations needed [INFO] [stderr] --> src/main.rs:95:5 [INFO] [stderr] | [INFO] [stderr] 94 | let mut sha256 = Digest::new(); [INFO] [stderr] | ---------- consider giving `sha256` a type [INFO] [stderr] 95 | sha256.input_str(seed); [INFO] [stderr] | ^^^^^^ cannot infer type [INFO] [stderr] | [INFO] [stderr] = note: type must be known at this point [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:153:23 [INFO] [stderr] | [INFO] [stderr] 153 | block_chain = new_blocks; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | expected struct `std::vec::Vec`, found `&[Block]` [INFO] [stderr] | help: try using a conversion method: `new_blocks.to_vec()` [INFO] [stderr] | [INFO] [stderr] = note: expected struct `std::vec::Vec` [INFO] [stderr] found reference `&[Block]` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:161:57 [INFO] [stderr] | [INFO] [stderr] 161 | fn is_valid_chain(block_chain_to_validate: &[Block]) -> bool { [INFO] [stderr] | -------------- ^^^^ expected `bool`, found `()` [INFO] [stderr] | | [INFO] [stderr] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stderr] [INFO] [stderr] error: aborting due to 5 previous errors; 4 warnings emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0282, E0308, E0658. [INFO] [stderr] For more information about an error, try `rustc --explain E0282`. [INFO] [stderr] error: could not compile `rust-coin`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "3ebd96391437e4dc1fbe3292773bd33fa7c14dee0165ef2699e95e7ff30f1dd7"` [INFO] running `"docker" "rm" "-f" "3ebd96391437e4dc1fbe3292773bd33fa7c14dee0165ef2699e95e7ff30f1dd7"` [INFO] [stdout] 3ebd96391437e4dc1fbe3292773bd33fa7c14dee0165ef2699e95e7ff30f1dd7