[INFO] cloning repository https://github.com/MikAoJk/rust-crud-rest-api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MikAoJk/rust-crud-rest-api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMikAoJk%2Frust-crud-rest-api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMikAoJk%2Frust-crud-rest-api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 895aa477dbf0343e1b3221d82ebe9e8212c89383 [INFO] checking MikAoJk/rust-crud-rest-api/895aa477dbf0343e1b3221d82ebe9e8212c89383 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMikAoJk%2Frust-crud-rest-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] validating manifest of git repo https://github.com/MikAoJk/rust-crud-rest-api on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MikAoJk/rust-crud-rest-api [INFO] finished tweaking git repo https://github.com/MikAoJk/rust-crud-rest-api [INFO] tweaked toml for git repo https://github.com/MikAoJk/rust-crud-rest-api written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/MikAoJk/rust-crud-rest-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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libc v0.2.145 [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 577df4233a611a44fd13587b16b5ecb24ad4eb317137f0163bff0c45b8e3c9b0 [INFO] running `Command { std: "docker" "start" "-a" "577df4233a611a44fd13587b16b5ecb24ad4eb317137f0163bff0c45b8e3c9b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "577df4233a611a44fd13587b16b5ecb24ad4eb317137f0163bff0c45b8e3c9b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "577df4233a611a44fd13587b16b5ecb24ad4eb317137f0163bff0c45b8e3c9b0", kill_on_drop: false }` [INFO] [stdout] 577df4233a611a44fd13587b16b5ecb24ad4eb317137f0163bff0c45b8e3c9b0 [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f8cf5cecdd429a383c9cd254b171df18718dad6f4b5c38b85b35fb1438d3a883 [INFO] running `Command { std: "docker" "start" "-a" "f8cf5cecdd429a383c9cd254b171df18718dad6f4b5c38b85b35fb1438d3a883", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.145 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling proc-macro2 v1.0.76 [INFO] [stderr] Compiling unicode-ident v1.0.9 [INFO] [stderr] Checking subtle v2.5.0 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Checking bytes v1.4.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling slab v0.4.8 [INFO] [stderr] Compiling tokio v1.28.2 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling parking_lot_core v0.9.7 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Checking cpufeatures v0.2.7 [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Checking unicode-bidi v0.3.13 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking getrandom v0.2.9 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking stringprep v0.1.2 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling async-trait v0.1.68 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Checking fallible-iterator v0.2.0 [INFO] [stderr] Compiling log v0.4.18 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking siphasher v0.3.10 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Checking phf_shared v0.11.1 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Compiling serde v1.0.209 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking phf v0.11.1 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking socket2 v0.5.3 [INFO] [stderr] Checking percent-encoding v2.3.0 [INFO] [stderr] Checking md-5 v0.10.5 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking sha2 v0.10.6 [INFO] [stderr] Checking whoami v1.4.1 [INFO] [stderr] Compiling serde_json v1.0.127 [INFO] [stderr] Checking ryu v1.0.13 [INFO] [stderr] Checking itoa v1.0.6 [INFO] [stderr] Checking postgres-protocol v0.6.7 [INFO] [stderr] Checking postgres-types v0.2.7 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling serde_derive v1.0.209 [INFO] [stderr] Checking tokio-util v0.7.8 [INFO] [stderr] Checking tokio-postgres v0.7.11 [INFO] [stderr] Checking postgres v0.19.8 [INFO] [stderr] Checking rust-crud-api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:14:74 [INFO] [stdout] | [INFO] [stdout] 14 | let client = create_database_client(environment_variables.databse_url.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:22:82 [INFO] [stdout] | [INFO] [stdout] 22 | let listener = TcpListener::bind(environment_variables.server_adress_and_port.clone()).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/handle_client.rs:28:87 [INFO] [stdout] | [INFO] [stdout] 28 | r if r.starts_with("POST /users") => handle_post_request(r,databse_url.clone()), [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/handle_client.rs:29:87 [INFO] [stdout] | [INFO] [stdout] 29 | r if r.starts_with("GET /users/") => handle_get_request(r, databse_url.clone()), [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/handle_client.rs:30:90 [INFO] [stdout] | [INFO] [stdout] 30 | r if r.starts_with("GET /users") => handle_get_all_request(r, databse_url.clone()), [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/handle_client.rs:31:87 [INFO] [stdout] | [INFO] [stdout] 31 | r if r.starts_with("PUT /users/") => handle_put_request(r, databse_url.clone()), [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/handle_client.rs:32:93 [INFO] [stdout] | [INFO] [stdout] 32 | r if r.starts_with("DELETE /users/") => handle_delete_request(r, databse_url.clone()), [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:14:74 [INFO] [stdout] | [INFO] [stdout] 14 | let client = create_database_client(environment_variables.databse_url.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:22:82 [INFO] [stdout] | [INFO] [stdout] 22 | let listener = TcpListener::bind(environment_variables.server_adress_and_port.clone()).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/handle_client.rs:28:87 [INFO] [stdout] | [INFO] [stdout] 28 | r if r.starts_with("POST /users") => handle_post_request(r,databse_url.clone()), [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/handle_client.rs:29:87 [INFO] [stdout] | [INFO] [stdout] 29 | r if r.starts_with("GET /users/") => handle_get_request(r, databse_url.clone()), [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/handle_client.rs:30:90 [INFO] [stdout] | [INFO] [stdout] 30 | r if r.starts_with("GET /users") => handle_get_all_request(r, databse_url.clone()), [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/handle_client.rs:31:87 [INFO] [stdout] | [INFO] [stdout] 31 | r if r.starts_with("PUT /users/") => handle_put_request(r, databse_url.clone()), [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/handle_client.rs:32:93 [INFO] [stdout] | [INFO] [stdout] 32 | r if r.starts_with("DELETE /users/") => handle_delete_request(r, databse_url.clone()), [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.52s [INFO] running `Command { std: "docker" "inspect" "f8cf5cecdd429a383c9cd254b171df18718dad6f4b5c38b85b35fb1438d3a883", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f8cf5cecdd429a383c9cd254b171df18718dad6f4b5c38b85b35fb1438d3a883", kill_on_drop: false }` [INFO] [stdout] f8cf5cecdd429a383c9cd254b171df18718dad6f4b5c38b85b35fb1438d3a883