[INFO] cloning repository https://github.com/slanesuke/crud-api-in-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/slanesuke/crud-api-in-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fslanesuke%2Fcrud-api-in-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fslanesuke%2Fcrud-api-in-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9f8d0be541b10081e2856cf4daf9fab5dc222dcb [INFO] testing slanesuke/crud-api-in-rust against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fslanesuke%2Fcrud-api-in-rust" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/slanesuke/crud-api-in-rust [INFO] finished tweaking git repo https://github.com/slanesuke/crud-api-in-rust [INFO] tweaked toml for git repo https://github.com/slanesuke/crud-api-in-rust written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/slanesuke/crud-api-in-rust on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/slanesuke/crud-api-in-rust 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded proc-macro2 v1.0.88 [INFO] [stderr] Downloaded postgres v0.19.9 [INFO] [stderr] Downloaded syn v2.0.82 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dbcef43615dc72c9586bf055fd8cc03ba219f6fb55c474a11ecdefbd64bf9d94 [INFO] running `Command { std: "docker" "start" "-a" "dbcef43615dc72c9586bf055fd8cc03ba219f6fb55c474a11ecdefbd64bf9d94", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dbcef43615dc72c9586bf055fd8cc03ba219f6fb55c474a11ecdefbd64bf9d94", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dbcef43615dc72c9586bf055fd8cc03ba219f6fb55c474a11ecdefbd64bf9d94", kill_on_drop: false }` [INFO] [stdout] dbcef43615dc72c9586bf055fd8cc03ba219f6fb55c474a11ecdefbd64bf9d94 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 594c2d5ca874bc26010101985d08e22730ff44f3b5124b8afbbaf6b1414dc2d7 [INFO] running `Command { std: "docker" "start" "-a" "594c2d5ca874bc26010101985d08e22730ff44f3b5124b8afbbaf6b1414dc2d7", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.88 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling bytes v1.8.0 [INFO] [stderr] Compiling cpufeatures v0.2.14 [INFO] [stderr] Compiling unicode-bidi v0.3.17 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling serde_json v1.0.132 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling whoami v1.5.2 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.82 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling tokio-util v0.7.12 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling postgres-protocol v0.6.7 [INFO] [stderr] Compiling postgres-types v0.2.8 [INFO] [stderr] Compiling tokio-postgres v0.7.12 [INFO] [stderr] Compiling postgres v0.19.9 [INFO] [stderr] Compiling crud-api-in-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: environment variable `DATABASE_URL` not defined at compile time [INFO] [stdout] --> src/main.rs:18:22 [INFO] [stdout] | [INFO] [stdout] 18 | 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] [INFO] [stdout] [INFO] [stdout] error: expected `,`, found `:` [INFO] [stdout] --> src/main.rs:32:53 [INFO] [stdout] | [INFO] [stdout] 32 | let listener = TcpListener::bind(format!(0.0.0.0:8080)).unwrap(); [INFO] [stdout] | ^ expected `,` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `request_with` in this scope [INFO] [stdout] --> src/main.rs:53:22 [INFO] [stdout] | [INFO] [stdout] 53 | r if request_with("POST /users") => handle_post_request(r), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `request_with` in this scope [INFO] [stdout] --> src/main.rs:54:22 [INFO] [stdout] | [INFO] [stdout] 54 | r if request_with("GET /users/") => handle_post_request(r), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `request_with` in this scope [INFO] [stdout] --> src/main.rs:55:22 [INFO] [stdout] | [INFO] [stdout] 55 | r if request_with("GET /users") => handle_post_request(r), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `request_with` in this scope [INFO] [stdout] --> src/main.rs:56:22 [INFO] [stdout] | [INFO] [stdout] 56 | r if request_with("PUT /users/") => handle_post_request(r), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `request_with` in this scope [INFO] [stdout] --> src/main.rs:57:22 [INFO] [stdout] | [INFO] [stdout] 57 | r if request_with("DELETE /users") => handle_post_request(r), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: `?` operator has incompatible types [INFO] [stdout] --> src/main.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn set_database() -> Result<(), PostgresError> { [INFO] [stdout] | ------------------------- expected `Result<(), postgres::Error>` because of return type [INFO] [stdout] ... [INFO] [stdout] 107 | / client.execute("CREATE TABLE IF NOT EXISTS user (\ [INFO] [stdout] 108 | | id SERIAL PRIMARY KEY,\ [INFO] [stdout] 109 | | name VARCAR NOT NULL,\ [INFO] [stdout] 110 | | email VARCHAR NOT NULL)", [INFO] [stdout] 111 | | &[])? [INFO] [stdout] | |________________________^ expected `Result<(), Error>`, found `u64` [INFO] [stdout] | [INFO] [stdout] = note: `?` operator cannot convert from `u64` to `Result<(), postgres::Error>` [INFO] [stdout] = note: expected enum `Result<(), postgres::Error>` [INFO] [stdout] found type `u64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `crud-api-in-rust` (bin "crud-api-in-rust") due to 8 previous errors [INFO] running `Command { std: "docker" "inspect" "594c2d5ca874bc26010101985d08e22730ff44f3b5124b8afbbaf6b1414dc2d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "594c2d5ca874bc26010101985d08e22730ff44f3b5124b8afbbaf6b1414dc2d7", kill_on_drop: false }` [INFO] [stdout] 594c2d5ca874bc26010101985d08e22730ff44f3b5124b8afbbaf6b1414dc2d7