[INFO] cloning repository https://github.com/va3y/rust-cli [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/va3y/rust-cli" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fva3y%2Frust-cli", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fva3y%2Frust-cli'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] aa14296687d95f9bdebc2e77399df5c46ca6fafe [INFO] checking va3y/rust-cli against try#fafe42c59556a4233f03dd0d900b575a9afeece8 for pr-143764 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fva3y%2Frust-cli" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/va3y/rust-cli [INFO] finished tweaking git repo https://github.com/va3y/rust-cli [INFO] tweaked toml for git repo https://github.com/va3y/rust-cli written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/va3y/rust-cli on toolchain fafe42c59556a4233f03dd0d900b575a9afeece8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fafe42c59556a4233f03dd0d900b575a9afeece8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/va3y/rust-cli 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" "+fafe42c59556a4233f03dd0d900b575a9afeece8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded dialoguer v0.10.1 [INFO] [stderr] Downloaded zeroize v1.5.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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" "+fafe42c59556a4233f03dd0d900b575a9afeece8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f7f35f1ca7d865ac0bab4389219daf417ada9294e016c8f7b8b5f5e50b729aa2 [INFO] running `Command { std: "docker" "start" "-a" "f7f35f1ca7d865ac0bab4389219daf417ada9294e016c8f7b8b5f5e50b729aa2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f7f35f1ca7d865ac0bab4389219daf417ada9294e016c8f7b8b5f5e50b729aa2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f7f35f1ca7d865ac0bab4389219daf417ada9294e016c8f7b8b5f5e50b729aa2", kill_on_drop: false }` [INFO] [stdout] f7f35f1ca7d865ac0bab4389219daf417ada9294e016c8f7b8b5f5e50b729aa2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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" "+fafe42c59556a4233f03dd0d900b575a9afeece8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 396b41baf998d447309219aadff7bca800c2ee1d7ab71ac363dc52b16e59e960 [INFO] running `Command { std: "docker" "start" "-a" "396b41baf998d447309219aadff7bca800c2ee1d7ab71ac363dc52b16e59e960", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking regex-syntax v0.6.26 [INFO] [stderr] Checking once_cell v1.12.0 [INFO] [stderr] Checking unicode-width v0.1.9 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Checking fastrand v1.7.0 [INFO] [stderr] Checking os_str_bytes v6.1.0 [INFO] [stderr] Checking terminal_size v0.1.17 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking zeroize v1.5.5 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking textwrap v0.15.0 [INFO] [stderr] Checking tempfile v3.3.0 [INFO] [stderr] Checking clap_lex v0.2.3 [INFO] [stderr] Checking regex v1.5.6 [INFO] [stderr] Checking console v0.15.0 [INFO] [stderr] Checking dialoguer v0.10.1 [INFO] [stderr] Compiling clap_derive v3.2.6 [INFO] [stderr] Checking clap v3.2.6 [INFO] [stderr] Checking grrs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/prompt/mod.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 29 | let res = comma_separate_str(child_containers.clone()).as_ref(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] ... [INFO] [stdout] 36 | child_containers, [INFO] [stdout] | ---------------- this usage requires that borrow lasts for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/prompt/mod.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 29 | let res = comma_separate_str(child_containers.clone()).as_ref(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] ... [INFO] [stdout] 36 | child_containers, [INFO] [stdout] | ---------------- this usage requires that borrow lasts for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `child_components` does not live long enough [INFO] [stdout] --> src/prompt/mod.rs:35:27 [INFO] [stdout] | [INFO] [stdout] 22 | let child_components = comma_separate_str(child_components.clone()); [INFO] [stdout] | ---------------- binding `child_components` declared here [INFO] [stdout] ... [INFO] [stdout] 35 | child_components: &child_components, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | this usage requires that `child_components` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 39 | } [INFO] [stdout] | - `child_components` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `child_components` does not live long enough [INFO] [stdout] --> src/prompt/mod.rs:35:27 [INFO] [stdout] | [INFO] [stdout] 22 | let child_components = comma_separate_str(child_components.clone()); [INFO] [stdout] | ---------------- binding `child_components` declared here [INFO] [stdout] ... [INFO] [stdout] 35 | child_components: &child_components, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | this usage requires that `child_components` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 39 | } [INFO] [stdout] | - `child_components` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `input` [INFO] [stdout] --> src/utils/comma_separate_str.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | let res = input.split(",").collect::>().to_owned(); [INFO] [stdout] | ----- `input` is borrowed here [INFO] [stdout] 3 | res [INFO] [stdout] | ^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `input` [INFO] [stdout] --> src/utils/comma_separate_str.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | let res = input.split(",").collect::>().to_owned(); [INFO] [stdout] | ----- `input` is borrowed here [INFO] [stdout] 3 | res [INFO] [stdout] | ^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0515, E0597, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0515`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0515, E0597, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0515`. [INFO] [stdout] [INFO] [stderr] error: could not compile `grrs` (bin "grrs") due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `grrs` (bin "grrs" test) due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "396b41baf998d447309219aadff7bca800c2ee1d7ab71ac363dc52b16e59e960", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "396b41baf998d447309219aadff7bca800c2ee1d7ab71ac363dc52b16e59e960", kill_on_drop: false }` [INFO] [stdout] 396b41baf998d447309219aadff7bca800c2ee1d7ab71ac363dc52b16e59e960