[INFO] cloning repository https://github.com/kirkgo/rust-contacts-api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kirkgo/rust-contacts-api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkirkgo%2Frust-contacts-api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkirkgo%2Frust-contacts-api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9629097ddec052fd9265eb5dd692a94089d8c318 [INFO] checking kirkgo/rust-contacts-api against master#cd805f09ffbfa3896c8f50a619de9b67e1d9f3c3 for pr-135841 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkirkgo%2Frust-contacts-api" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kirkgo/rust-contacts-api on toolchain cd805f09ffbfa3896c8f50a619de9b67e1d9f3c3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cd805f09ffbfa3896c8f50a619de9b67e1d9f3c3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kirkgo/rust-contacts-api [INFO] finished tweaking git repo https://github.com/kirkgo/rust-contacts-api [INFO] tweaked toml for git repo https://github.com/kirkgo/rust-contacts-api written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/kirkgo/rust-contacts-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" "+cd805f09ffbfa3896c8f50a619de9b67e1d9f3c3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+cd805f09ffbfa3896c8f50a619de9b67e1d9f3c3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8499af6197a4cb96612f496b61f9433fb7a6018ef75c10d816defa9ec1111e3a [INFO] running `Command { std: "docker" "start" "-a" "8499af6197a4cb96612f496b61f9433fb7a6018ef75c10d816defa9ec1111e3a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8499af6197a4cb96612f496b61f9433fb7a6018ef75c10d816defa9ec1111e3a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8499af6197a4cb96612f496b61f9433fb7a6018ef75c10d816defa9ec1111e3a", kill_on_drop: false }` [INFO] [stdout] 8499af6197a4cb96612f496b61f9433fb7a6018ef75c10d816defa9ec1111e3a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+cd805f09ffbfa3896c8f50a619de9b67e1d9f3c3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 06bdf74a63e5b1ba08cb991e1110fe1ea665da314ad34c5aa510783f4eae1624 [INFO] running `Command { std: "docker" "start" "-a" "06bdf74a63e5b1ba08cb991e1110fe1ea665da314ad34c5aa510783f4eae1624", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Checking subtle v2.5.0 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Checking bytes v1.4.0 [INFO] [stderr] Checking cpufeatures v0.2.9 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Checking unicode-bidi v0.3.13 [INFO] [stderr] Compiling async-trait v0.1.73 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Checking siphasher v0.3.11 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking smallvec v1.11.0 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Checking base64 v0.21.3 [INFO] [stderr] Checking memchr v2.6.3 [INFO] [stderr] Checking fallible-iterator v0.2.0 [INFO] [stderr] Checking phf_shared v0.11.2 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling serde v1.0.188 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling serde_json v1.0.105 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking whoami v1.4.1 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking phf v0.11.2 [INFO] [stderr] Checking percent-encoding v2.3.0 [INFO] [stderr] Checking itoa v1.0.9 [INFO] [stderr] Checking ryu v1.0.15 [INFO] [stderr] Compiling syn v2.0.31 [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking socket2 v0.5.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking stringprep v0.1.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking tokio v1.32.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking md-5 v0.10.5 [INFO] [stderr] Checking sha2 v0.10.7 [INFO] [stderr] Checking postgres-protocol v0.6.6 [INFO] [stderr] Checking postgres-types v0.2.6 [INFO] [stderr] Checking tokio-util v0.7.8 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Checking tokio-postgres v0.7.10 [INFO] [stderr] Checking postgres v0.19.7 [INFO] [stderr] Checking rust-contacts-api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: environment variable `DATABASE_URL` not defined at compile time [INFO] [stdout] --> src/main.rs:21:22 [INFO] [stdout] | [INFO] [stdout] 21 | const DB_URL: &str = env!("DATABASE_URL"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `std::env::var("DATABASE_URL")` to read the variable at run time [INFO] [stdout] = note: this error originates in the macro `env` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `postgres::types::IsNull::No` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use postgres::types::IsNull::No; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: environment variable `DATABASE_URL` not defined at compile time [INFO] [stdout] --> src/main.rs:21:22 [INFO] [stdout] | [INFO] [stdout] 21 | const DB_URL: &str = env!("DATABASE_URL"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `std::env::var("DATABASE_URL")` to read the variable at run time [INFO] [stdout] = note: this error originates in the macro `env` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `postgres::types::IsNull::No` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use postgres::types::IsNull::No; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:59:30 [INFO] [stdout] | [INFO] [stdout] 59 | request.push_str(String::from_utf8_lossy(&buffer[..size].as_ref())); [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&str`, found `Cow<'_, str>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&str` [INFO] [stdout] found enum `Cow<'_, str>` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/cd805f09ffbfa3896c8f50a619de9b67e1d9f3c3/library/alloc/src/string.rs:1126:12 [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 59 | request.push_str(&String::from_utf8_lossy(&buffer[..size].as_ref())); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:59:30 [INFO] [stdout] | [INFO] [stdout] 59 | request.push_str(String::from_utf8_lossy(&buffer[..size].as_ref())); [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&str`, found `Cow<'_, str>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&str` [INFO] [stdout] found enum `Cow<'_, str>` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/cd805f09ffbfa3896c8f50a619de9b67e1d9f3c3/library/alloc/src/string.rs:1126:12 [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 59 | request.push_str(&String::from_utf8_lossy(&buffer[..size].as_ref())); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-contacts-api` (bin "rust-contacts-api" test) due to 2 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust-contacts-api` (bin "rust-contacts-api") due to 2 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "06bdf74a63e5b1ba08cb991e1110fe1ea665da314ad34c5aa510783f4eae1624", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06bdf74a63e5b1ba08cb991e1110fe1ea665da314ad34c5aa510783f4eae1624", kill_on_drop: false }` [INFO] [stdout] 06bdf74a63e5b1ba08cb991e1110fe1ea665da314ad34c5aa510783f4eae1624