[INFO] cloning repository https://github.com/benchshot/open-hockey-api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/benchshot/open-hockey-api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenchshot%2Fopen-hockey-api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenchshot%2Fopen-hockey-api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 25324c8054498c81da9004ae30a0ed8c56d47079 [INFO] testing benchshot/open-hockey-api/25324c8054498c81da9004ae30a0ed8c56d47079 against master#2fd6efc32704647e64d3d646d21c4c68eae100e4 for pr-149852-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenchshot%2Fopen-hockey-api" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/benchshot/open-hockey-api [INFO] finished tweaking git repo https://github.com/benchshot/open-hockey-api [INFO] tweaked toml for git repo https://github.com/benchshot/open-hockey-api written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/benchshot/open-hockey-api on toolchain 2fd6efc32704647e64d3d646d21c4c68eae100e4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/benchshot/open-hockey-api 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" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libredox v0.1.12 [INFO] [stderr] Downloaded phf_shared v0.13.1 [INFO] [stderr] Downloaded redox_syscall v0.7.0 [INFO] [stderr] Downloaded itoa v1.0.17 [INFO] [stderr] Downloaded stringprep v0.1.5 [INFO] [stderr] Downloaded phf v0.13.1 [INFO] [stderr] Downloaded postgres-types v0.2.11 [INFO] [stderr] Downloaded unicode-bidi v0.3.18 [INFO] [stderr] Downloaded tokio-postgres v0.7.15 [INFO] [stderr] Downloaded tinyvec v1.10.0 [INFO] [stderr] Downloaded unicode-properties v0.1.4 [INFO] [stderr] Downloaded zmij v1.0.5 [INFO] [stderr] Downloaded serde_json v1.0.148 [INFO] [stderr] Downloaded unicode-normalization v0.1.25 [INFO] [stderr] Downloaded syn v2.0.112 [INFO] [stderr] Downloaded postgres v0.19.12 [INFO] [stderr] Downloaded postgres-protocol v0.6.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 907c3db559acbaee72adc219ebb4513809548ab8269994555a38d05e3e9bb912 [INFO] running `Command { std: "docker" "start" "-a" "907c3db559acbaee72adc219ebb4513809548ab8269994555a38d05e3e9bb912", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "907c3db559acbaee72adc219ebb4513809548ab8269994555a38d05e3e9bb912", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "907c3db559acbaee72adc219ebb4513809548ab8269994555a38d05e3e9bb912", kill_on_drop: false }` [INFO] [stdout] 907c3db559acbaee72adc219ebb4513809548ab8269994555a38d05e3e9bb912 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d40ce4655968477d6f39d78c8a45e40c4d8440984a9df898fb198e7c948bfc5c [INFO] running `Command { std: "docker" "start" "-a" "d40ce4655968477d6f39d78c8a45e40c4d8440984a9df898fb198e7c948bfc5c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.178 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling zerocopy v0.8.31 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling proc-macro2 v1.0.104 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling unicode-ident v1.0.22 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Compiling bytes v1.11.0 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling unicode-properties v0.1.4 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling zmij v1.0.5 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling serde_json v1.0.148 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling log v0.4.29 [INFO] [stderr] Compiling phf_shared v0.13.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling unicode-normalization v0.1.25 [INFO] [stderr] Compiling itoa v1.0.17 [INFO] [stderr] Compiling phf v0.13.1 [INFO] [stderr] Compiling syn v2.0.112 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling mio v1.1.1 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling postgres-protocol v0.6.9 [INFO] [stderr] Compiling postgres-types v0.2.11 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tokio-util v0.7.17 [INFO] [stderr] Compiling tokio-postgres v0.7.15 [INFO] [stderr] Compiling postgres v0.19.12 [INFO] [stderr] Compiling open-hockey-api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find value `params` in this scope [INFO] [stdout] --> src/main.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | )", params) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TcpListener` and `TcpStream` [INFO] [stdout] --> src/main.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use std::net::{TcpListener, TcpStream}; [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 imports: `Read` and `Write` [INFO] [stdout] --> src/main.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found module `env` [INFO] [stdout] --> src/main.rs:19:23 [INFO] [stdout] | [INFO] [stdout] 19 | const DB_URL: &str = !env("DATABASE_URL"); [INFO] [stdout] | ^^^ not a function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 34 | fn set_database() -> Result<(), PostgresError> { [INFO] [stdout] | ------------------------- expected `Result<(), postgres::Error>` because of return type [INFO] [stdout] ... [INFO] [stdout] 37 | / client.execute( [INFO] [stdout] 38 | | "CREATE TABLE IF NOT EXISTS users ( [INFO] [stdout] 39 | | )", params) [INFO] [stdout] | |_______________^ expected `Result<(), Error>`, found `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<(), _>` [INFO] [stdout] found enum `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0423, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `open-hockey-api` (bin "open-hockey-api") due to 3 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "d40ce4655968477d6f39d78c8a45e40c4d8440984a9df898fb198e7c948bfc5c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d40ce4655968477d6f39d78c8a45e40c4d8440984a9df898fb198e7c948bfc5c", kill_on_drop: false }` [INFO] [stdout] d40ce4655968477d6f39d78c8a45e40c4d8440984a9df898fb198e7c948bfc5c