[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] checking takatori/rust-coin against master#65cd843ae06ad00123c131a431ed5304e4cd577a for pr-122077 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftakatori%2Frust-coin" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/takatori/rust-coin on toolchain 65cd843ae06ad00123c131a431ed5304e4cd577a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65cd843ae06ad00123c131a431ed5304e4cd577a" "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-tc1/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65cd843ae06ad00123c131a431ed5304e4cd577a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking takatori/rust-coin against try#e34498b580c936a8f8a419616d9571f03b6c038e for pr-122077 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftakatori%2Frust-coin" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/takatori/rust-coin on toolchain e34498b580c936a8f8a419616d9571f03b6c038e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e34498b580c936a8f8a419616d9571f03b6c038e" "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-tc2/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e34498b580c936a8f8a419616d9571f03b6c038e" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded generic-array v0.8.3 [INFO] [stderr] Downloaded sha2 v0.6.0 [INFO] [stderr] Downloaded serde_json v1.0.3 [INFO] [stderr] Downloaded block-buffer v0.2.0 [INFO] [stderr] Downloaded futures-cpupool v0.1.6 [INFO] [stderr] Downloaded digest v0.6.2 [INFO] [stderr] Downloaded serde_derive_internals v0.16.0 [INFO] [stderr] Downloaded serde_derive v1.0.15 [INFO] [stderr] Downloaded typenum v1.9.0 [INFO] [stderr] Downloaded nodrop v0.1.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+e34498b580c936a8f8a419616d9571f03b6c038e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a090f90a4e62460fc79ad5e7c14099595badf1fac6060de6a9108a74a69c7dd5 [INFO] running `Command { std: "docker" "start" "-a" "a090f90a4e62460fc79ad5e7c14099595badf1fac6060de6a9108a74a69c7dd5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a090f90a4e62460fc79ad5e7c14099595badf1fac6060de6a9108a74a69c7dd5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a090f90a4e62460fc79ad5e7c14099595badf1fac6060de6a9108a74a69c7dd5", kill_on_drop: false }` [INFO] [stdout] a090f90a4e62460fc79ad5e7c14099595badf1fac6060de6a9108a74a69c7dd5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+e34498b580c936a8f8a419616d9571f03b6c038e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 58d6fe8d2de01573aad646558d31d5d89f9e2a8389247008bca756122f48b51b [INFO] running `Command { std: "docker" "start" "-a" "58d6fe8d2de01573aad646558d31d5d89f9e2a8389247008bca756122f48b51b", kill_on_drop: false }` [INFO] [stderr] Checking libc v0.2.30 [INFO] [stderr] Checking futures v0.1.16 [INFO] [stderr] Checking byteorder v1.1.0 [INFO] [stderr] Compiling semver v0.1.20 [INFO] [stderr] Compiling typenum v1.9.0 [INFO] [stderr] Checking odds v0.2.25 [INFO] [stderr] Checking log v0.3.8 [INFO] [stderr] Checking cfg-if v0.1.2 [INFO] [stderr] Checking lazycell v0.5.1 [INFO] [stderr] Checking slab v0.3.0 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Compiling rustc_version v0.1.7 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Checking scoped-tls v0.1.0 [INFO] [stderr] Checking nodrop v0.1.9 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Checking safemem v0.2.0 [INFO] [stderr] Checking iovec v0.1.0 [INFO] [stderr] Checking net2 v0.2.31 [INFO] [stderr] Checking num_cpus v1.6.2 [INFO] [stderr] Compiling unicase v2.0.0 [INFO] [stderr] Checking bytes v0.4.5 [INFO] [stderr] Checking rand v0.3.16 [INFO] [stderr] Checking take v0.1.0 [INFO] [stderr] Checking mio v0.6.10 [INFO] [stderr] Checking smallvec v0.2.1 [INFO] [stderr] Checking byte-tools v0.2.0 [INFO] [stderr] Checking base64 v0.6.0 [INFO] [stderr] Checking time v0.1.38 [INFO] [stderr] Checking percent-encoding v1.0.0 [INFO] [stderr] Checking mime v0.3.3 [INFO] [stderr] Checking fake-simd v0.1.2 [INFO] [stderr] Checking itoa v0.3.4 [INFO] [stderr] Checking num-traits v0.1.40 [INFO] [stderr] Checking dtoa v0.4.2 [INFO] [stderr] Checking tokio-io v0.1.3 [INFO] [stderr] Checking tokio-service v0.1.0 [INFO] [stderr] Compiling serde_derive_internals v0.16.0 [INFO] [stderr] Checking generic-array v0.8.3 [INFO] [stderr] Checking futures-cpupool v0.1.6 [INFO] [stderr] Checking httparse v1.2.3 [INFO] [stderr] Checking serde v1.0.15 [INFO] [stderr] Checking digest v0.6.2 [INFO] [stderr] Checking block-buffer v0.2.0 [INFO] [stderr] Checking sha2 v0.6.0 [INFO] [stderr] Checking tokio-core v0.1.9 [INFO] [stderr] Compiling serde_derive v1.0.15 [INFO] [stderr] Checking tokio-proto v0.1.1 [INFO] [stderr] Checking hyper v0.11.2 [INFO] [stderr] Checking serde_json v1.0.3 [INFO] [stderr] Checking 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: `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: `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] 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] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | Err(e) => 3001, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | Err(e) => 3001, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `var::<&str>` in constants [INFO] [stdout] --> src/main.rs:22:30 [INFO] [stdout] | [INFO] [stdout] 22 | const HTTP_PORT: i32 = match env::var("HTTP_PORT") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0493]: destructor of `VarError` cannot be evaluated at compile-time [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | Err(e) => 3001, [INFO] [stdout] | ^ - value is dropped here [INFO] [stdout] | | [INFO] [stdout] | the destructor for this type cannot be evaluated in constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `std::env::var::<&str>` in constants [INFO] [stdout] --> src/main.rs:22:30 [INFO] [stdout] | [INFO] [stdout] 22 | const HTTP_PORT: i32 = match env::var("HTTP_PORT") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0493]: destructor of `VarError` cannot be evaluated at compile-time [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | Err(e) => 3001, [INFO] [stdout] | ^ - value is dropped here [INFO] [stdout] | | [INFO] [stdout] | the destructor for this type cannot be evaluated in constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot perform deref coercion on `std::string::String` in constants [INFO] [stdout] --> src/main.rs:23:16 [INFO] [stdout] | [INFO] [stdout] 23 | Ok(val) => val.parse::().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: attempting to deref into `str` [INFO] [stdout] note: impl defined here, but it is not `const` [INFO] [stdout] --> /rustc/e34498b580c936a8f8a419616d9571f03b6c038e/library/alloc/src/string.rs:2473:1 [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(const_trait_impl)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot perform deref coercion on `std::string::String` in constants [INFO] [stdout] --> src/main.rs:23:16 [INFO] [stdout] | [INFO] [stdout] 23 | Ok(val) => val.parse::().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: attempting to deref into `str` [INFO] [stdout] note: impl defined here, but it is not `const` [INFO] [stdout] --> /rustc/e34498b580c936a8f8a419616d9571f03b6c038e/library/alloc/src/string.rs:2473:1 [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(const_trait_impl)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `core::str::::parse::` in constants [INFO] [stdout] --> src/main.rs:23:20 [INFO] [stdout] | [INFO] [stdout] 23 | Ok(val) => val.parse::().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `core::str::::parse::` in constants [INFO] [stdout] --> src/main.rs:23:20 [INFO] [stdout] | [INFO] [stdout] 23 | Ok(val) => val.parse::().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `Result::::unwrap` in constants [INFO] [stdout] --> src/main.rs:23:35 [INFO] [stdout] | [INFO] [stdout] 23 | Ok(val) => val.parse::().unwrap(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `Result::::unwrap` in constants [INFO] [stdout] --> src/main.rs:23:35 [INFO] [stdout] | [INFO] [stdout] 23 | Ok(val) => val.parse::().unwrap(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0493]: destructor of `std::string::String` cannot be evaluated at compile-time [INFO] [stdout] --> src/main.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | Ok(val) => val.parse::().unwrap(), [INFO] [stdout] | ^^^ - value is dropped here [INFO] [stdout] | | [INFO] [stdout] | the destructor for this type cannot be evaluated in constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0493]: destructor of `std::string::String` cannot be evaluated at compile-time [INFO] [stdout] --> src/main.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | Ok(val) => val.parse::().unwrap(), [INFO] [stdout] | ^^^ - value is dropped here [INFO] [stdout] | | [INFO] [stdout] | the destructor for this type cannot be evaluated in constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0493]: destructor of `Result` cannot be evaluated at compile-time [INFO] [stdout] --> src/main.rs:22:30 [INFO] [stdout] | [INFO] [stdout] 22 | const HTTP_PORT: i32 = match env::var("HTTP_PORT") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the destructor for this type cannot be evaluated in constants [INFO] [stdout] ... [INFO] [stdout] 25 | }; [INFO] [stdout] | - value is dropped here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0493]: destructor of `Result` cannot be evaluated at compile-time [INFO] [stdout] --> src/main.rs:22:30 [INFO] [stdout] | [INFO] [stdout] 22 | const HTTP_PORT: i32 = match env::var("HTTP_PORT") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the destructor for this type cannot be evaluated in constants [INFO] [stdout] ... [INFO] [stdout] 25 | }; [INFO] [stdout] | - value is dropped here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | Err(e) => 6001, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | Err(e) => 6001, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `var::<&str>` in constants [INFO] [stdout] --> src/main.rs:27:29 [INFO] [stdout] | [INFO] [stdout] 27 | const P2P_PORT: i32 = match env::var("P2P_PORT") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `std::env::var::<&str>` in constants [INFO] [stdout] --> src/main.rs:27:29 [INFO] [stdout] | [INFO] [stdout] 27 | const P2P_PORT: i32 = match env::var("P2P_PORT") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0493]: destructor of `VarError` cannot be evaluated at compile-time [INFO] [stdout] --> src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | Err(e) => 6001, [INFO] [stdout] | ^ - value is dropped here [INFO] [stdout] | | [INFO] [stdout] | the destructor for this type cannot be evaluated in constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0493]: destructor of `VarError` cannot be evaluated at compile-time [INFO] [stdout] --> src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | Err(e) => 6001, [INFO] [stdout] | ^ - value is dropped here [INFO] [stdout] | | [INFO] [stdout] | the destructor for this type cannot be evaluated in constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot perform deref coercion on `std::string::String` in constants [INFO] [stdout] --> src/main.rs:28:16 [INFO] [stdout] | [INFO] [stdout] 28 | Ok(val) => val.parse::().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: attempting to deref into `str` [INFO] [stdout] note: impl defined here, but it is not `const` [INFO] [stdout] --> /rustc/e34498b580c936a8f8a419616d9571f03b6c038e/library/alloc/src/string.rs:2473:1 [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(const_trait_impl)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `core::str::::parse::` in constants [INFO] [stdout] --> src/main.rs:28:20 [INFO] [stdout] | [INFO] [stdout] 28 | Ok(val) => val.parse::().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot perform deref coercion on `std::string::String` in constants [INFO] [stdout] --> src/main.rs:28:16 [INFO] [stdout] | [INFO] [stdout] 28 | Ok(val) => val.parse::().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: attempting to deref into `str` [INFO] [stdout] note: impl defined here, but it is not `const` [INFO] [stdout] --> /rustc/e34498b580c936a8f8a419616d9571f03b6c038e/library/alloc/src/string.rs:2473:1 [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(const_trait_impl)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `Result::::unwrap` in constants [INFO] [stdout] --> src/main.rs:28:35 [INFO] [stdout] | [INFO] [stdout] 28 | Ok(val) => val.parse::().unwrap(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `core::str::::parse::` in constants [INFO] [stdout] --> src/main.rs:28:20 [INFO] [stdout] | [INFO] [stdout] 28 | Ok(val) => val.parse::().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0493]: destructor of `std::string::String` cannot be evaluated at compile-time [INFO] [stdout] --> src/main.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | Ok(val) => val.parse::().unwrap(), [INFO] [stdout] | ^^^ - value is dropped here [INFO] [stdout] | | [INFO] [stdout] | the destructor for this type cannot be evaluated in constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `Result::::unwrap` in constants [INFO] [stdout] --> src/main.rs:28:35 [INFO] [stdout] | [INFO] [stdout] 28 | Ok(val) => val.parse::().unwrap(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0493]: destructor of `Result` cannot be evaluated at compile-time [INFO] [stdout] --> src/main.rs:27:29 [INFO] [stdout] | [INFO] [stdout] 27 | const P2P_PORT: i32 = match env::var("P2P_PORT") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ the destructor for this type cannot be evaluated in constants [INFO] [stdout] ... [INFO] [stdout] 30 | }; [INFO] [stdout] | - value is dropped here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0493]: destructor of `std::string::String` cannot be evaluated at compile-time [INFO] [stdout] --> src/main.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | Ok(val) => val.parse::().unwrap(), [INFO] [stdout] | ^^^ - value is dropped here [INFO] [stdout] | | [INFO] [stdout] | the destructor for this type cannot be evaluated in constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0010]: allocations are not allowed in statics [INFO] [stdout] --> src/main.rs:40:38 [INFO] [stdout] | [INFO] [stdout] 40 | static mut block_chain: Vec = vec![get_genesis_block()]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ allocation not allowed in statics [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0493]: destructor of `Result` cannot be evaluated at compile-time [INFO] [stdout] --> src/main.rs:27:29 [INFO] [stdout] | [INFO] [stdout] 27 | const P2P_PORT: i32 = match env::var("P2P_PORT") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ the destructor for this type cannot be evaluated in constants [INFO] [stdout] ... [INFO] [stdout] 30 | }; [INFO] [stdout] | - value is dropped here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `get_genesis_block` in statics [INFO] [stdout] --> src/main.rs:40:43 [INFO] [stdout] | [INFO] [stdout] 40 | static mut block_chain: Vec = vec![get_genesis_block()]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in statics are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = note: consider wrapping this expression in `Lazy::new(|| ...)` from the `once_cell` crate: https://crates.io/crates/once_cell [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0010]: allocations are not allowed in statics [INFO] [stdout] --> src/main.rs:40:38 [INFO] [stdout] | [INFO] [stdout] 40 | static mut block_chain: Vec = vec![get_genesis_block()]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ allocation not allowed in statics [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `slice::::into_vec::` in statics [INFO] [stdout] --> src/main.rs:40:38 [INFO] [stdout] | [INFO] [stdout] 40 | static mut block_chain: Vec = vec![get_genesis_block()]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in statics are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = note: consider wrapping this expression in `Lazy::new(|| ...)` from the `once_cell` crate: https://crates.io/crates/once_cell [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `get_genesis_block` in statics [INFO] [stdout] --> src/main.rs:40:43 [INFO] [stdout] | [INFO] [stdout] 40 | static mut block_chain: Vec = vec![get_genesis_block()]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in statics are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = note: consider wrapping this expression in `Lazy::new(|| ...)` from the `once_cell` crate: https://crates.io/crates/once_cell [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `slice::::into_vec::` in statics [INFO] [stdout] --> src/main.rs:40:38 [INFO] [stdout] | [INFO] [stdout] 40 | static mut block_chain: Vec = vec![get_genesis_block()]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in statics are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = note: consider wrapping this expression in `Lazy::new(|| ...)` from the `once_cell` crate: https://crates.io/crates/once_cell [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:59:82 [INFO] [stdout] | [INFO] [stdout] 59 | (&Method::Get, "/blocks") => response.set_body(serde_json::to_string(&block_chain).unwrap()), [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 59 | (&Method::Get, "/blocks") => response.set_body(serde_json::to_string(addr_of!(block_chain)).unwrap()), [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:59:82 [INFO] [stdout] | [INFO] [stdout] 59 | (&Method::Get, "/blocks") => response.set_body(serde_json::to_string(&block_chain).unwrap()), [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 59 | (&Method::Get, "/blocks") => response.set_body(serde_json::to_string(addr_of!(block_chain)).unwrap()), [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: use of mutable static is unsafe and requires unsafe function or block [INFO] [stdout] --> src/main.rs:59:83 [INFO] [stdout] | [INFO] [stdout] 59 | (&Method::Get, "/blocks") => response.set_body(serde_json::to_string(&block_chain).unwrap()), [INFO] [stdout] | ^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: use of mutable static is unsafe and requires unsafe function or block [INFO] [stdout] --> src/main.rs:59:83 [INFO] [stdout] | [INFO] [stdout] 59 | (&Method::Get, "/blocks") => response.set_body(serde_json::to_string(&block_chain).unwrap()), [INFO] [stdout] | ^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: use of mutable static is unsafe and requires unsafe function or block [INFO] [stdout] --> src/main.rs:74:43 [INFO] [stdout] | [INFO] [stdout] 74 | fn get_latest_block() -> &'static Block { block_chain.last().unwrap() } [INFO] [stdout] | ^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: use of mutable static is unsafe and requires unsafe function or block [INFO] [stdout] --> src/main.rs:74:43 [INFO] [stdout] | [INFO] [stdout] 74 | fn get_latest_block() -> &'static Block { block_chain.last().unwrap() } [INFO] [stdout] | ^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | let mut sha256 = Digest::new(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 95 | sha256.input_str(seed); [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `sha256` an explicit type [INFO] [stdout] | [INFO] [stdout] 94 | let mut sha256: /* Type */ = Digest::new(); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | let mut sha256 = Digest::new(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 95 | sha256.input_str(seed); [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `sha256` an explicit type [INFO] [stdout] | [INFO] [stdout] 94 | let mut sha256: /* Type */ = Digest::new(); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: use of mutable static is unsafe and requires unsafe function or block [INFO] [stdout] --> src/main.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | block_chain.push(new_block) [INFO] [stdout] | ^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: use of mutable static is unsafe and requires unsafe function or block [INFO] [stdout] --> src/main.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | block_chain.push(new_block) [INFO] [stdout] | ^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [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 `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: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 `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[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 23 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0010, E0015, E0133, E0282, E0308, E0493. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0010`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 23 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0010, E0015, E0133, E0282, E0308, E0493. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0010`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-coin` (bin "rust-coin" test) due to 24 previous errors; 7 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust-coin` (bin "rust-coin") due to 24 previous errors; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "58d6fe8d2de01573aad646558d31d5d89f9e2a8389247008bca756122f48b51b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "58d6fe8d2de01573aad646558d31d5d89f9e2a8389247008bca756122f48b51b", kill_on_drop: false }` [INFO] [stdout] 58d6fe8d2de01573aad646558d31d5d89f9e2a8389247008bca756122f48b51b