[INFO] cloning repository https://github.com/yashkhare05/Rust-Rest [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yashkhare05/Rust-Rest" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyashkhare05%2FRust-Rest", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyashkhare05%2FRust-Rest'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 30bf5cf324e23f23345d654a47bbfcffb6a5c90f [INFO] checking yashkhare05/Rust-Rest against master#fe55364329579d361b1ab565728bc033a7dba07e for pr-146013 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyashkhare05%2FRust-Rest" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/yashkhare05/Rust-Rest [INFO] finished tweaking git repo https://github.com/yashkhare05/Rust-Rest [INFO] tweaked toml for git repo https://github.com/yashkhare05/Rust-Rest written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/yashkhare05/Rust-Rest on toolchain fe55364329579d361b1ab565728bc033a7dba07e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fe55364329579d361b1ab565728bc033a7dba07e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/yashkhare05/Rust-Rest 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" "+fe55364329579d361b1ab565728bc033a7dba07e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+fe55364329579d361b1ab565728bc033a7dba07e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bf6d1b26b1f1248111391b19ac1cf17a0738bc669358fd865c8cb277daa25dea [INFO] running `Command { std: "docker" "start" "-a" "bf6d1b26b1f1248111391b19ac1cf17a0738bc669358fd865c8cb277daa25dea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bf6d1b26b1f1248111391b19ac1cf17a0738bc669358fd865c8cb277daa25dea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf6d1b26b1f1248111391b19ac1cf17a0738bc669358fd865c8cb277daa25dea", kill_on_drop: false }` [INFO] [stdout] bf6d1b26b1f1248111391b19ac1cf17a0738bc669358fd865c8cb277daa25dea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+fe55364329579d361b1ab565728bc033a7dba07e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3d9425ec25f119d325a555211934a134bf7d5769fbeefd4dcac43fbff239d0e3 [INFO] running `Command { std: "docker" "start" "-a" "3d9425ec25f119d325a555211934a134bf7d5769fbeefd4dcac43fbff239d0e3", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Compiling proc-macro2 v1.0.88 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking tinyvec v1.8.0 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking hashbrown v0.15.0 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling bytes v1.7.2 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Checking miniz_oxide v0.8.0 [INFO] [stderr] Checking brotli-decompressor v4.0.1 [INFO] [stderr] Checking actix-service v2.0.2 [INFO] [stderr] Checking bytestring v1.3.1 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Checking unicode-bidi v0.3.17 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Checking cpufeatures v0.2.14 [INFO] [stderr] Compiling serde_json v1.0.132 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking flate2 v1.0.34 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking local-channel v0.1.5 [INFO] [stderr] Checking unicode-normalization v0.1.24 [INFO] [stderr] Checking impl-more v0.1.8 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking indexmap v2.6.0 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Compiling syn v2.0.81 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking brotli v6.0.0 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking tokio v1.40.0 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling cc v1.1.31 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Checking actix-router v0.5.3 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking tokio-util v0.7.12 [INFO] [stderr] Checking actix-rt v2.10.0 [INFO] [stderr] Checking actix-server v2.5.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Checking actix-codec v0.5.2 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking zstd v0.13.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking actix-http v3.9.0 [INFO] [stderr] Checking actix-web v4.9.0 [INFO] [stderr] Checking rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `put` [INFO] [stdout] --> src/main.rs:1:30 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{delete, get, put, post, App, HttpResponse, HttpServer, web}; [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 import: `put` [INFO] [stdout] --> src/main.rs:1:30 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{delete, get, put, post, App, HttpResponse, HttpServer, web}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `join` exists for struct `Ref<'_, Vec>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/main.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | list.join(", ") // Join the elements into a single string. [INFO] [stdout] | ^^^^ method cannot be called on `Ref<'_, Vec>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `[Item]: Join<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list` [INFO] [stdout] --> src/main.rs:36:43 [INFO] [stdout] | [INFO] [stdout] 36 | Ok(HttpResponse::Ok().body(LIST.with(|list| {}))) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_list` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `join` exists for struct `Ref<'_, Vec>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/main.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | list.join(", ") // Join the elements into a single string. [INFO] [stdout] | ^^^^ method cannot be called on `Ref<'_, Vec>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `[Item]: Join<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `list` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 44 | for l in list.iter_mut() { [INFO] [stdout] | --------------- [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | first borrow later used here [INFO] [stdout] 45 | if l.id == id { [INFO] [stdout] 46 | list.remove(l.id as usize); [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list` [INFO] [stdout] --> src/main.rs:51:43 [INFO] [stdout] | [INFO] [stdout] 51 | Ok(HttpResponse::Ok().body(LIST.with(|list| {}))) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list` [INFO] [stdout] --> src/main.rs:36:43 [INFO] [stdout] | [INFO] [stdout] 36 | Ok(HttpResponse::Ok().body(LIST.with(|list| {}))) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_list` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `list` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 44 | for l in list.iter_mut() { [INFO] [stdout] | --------------- [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | first borrow later used here [INFO] [stdout] 45 | if l.id == id { [INFO] [stdout] 46 | list.remove(l.id as usize); [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list` [INFO] [stdout] --> src/main.rs:51:43 [INFO] [stdout] | [INFO] [stdout] 51 | Ok(HttpResponse::Ok().body(LIST.with(|list| {}))) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust` (bin "rust") due to 2 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust` (bin "rust" test) due to 2 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "3d9425ec25f119d325a555211934a134bf7d5769fbeefd4dcac43fbff239d0e3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d9425ec25f119d325a555211934a134bf7d5769fbeefd4dcac43fbff239d0e3", kill_on_drop: false }` [INFO] [stdout] 3d9425ec25f119d325a555211934a134bf7d5769fbeefd4dcac43fbff239d0e3