[INFO] cloning repository https://github.com/benjaminmishra/file_mgmt_cli [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/benjaminmishra/file_mgmt_cli" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenjaminmishra%2Ffile_mgmt_cli", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenjaminmishra%2Ffile_mgmt_cli'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c661481544154c080be4128252e5761c864b52fd [INFO] checking benjaminmishra/file_mgmt_cli against master#cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c for pr-143170 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenjaminmishra%2Ffile_mgmt_cli" "/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/benjaminmishra/file_mgmt_cli [INFO] finished tweaking git repo https://github.com/benjaminmishra/file_mgmt_cli [INFO] tweaked toml for git repo https://github.com/benjaminmishra/file_mgmt_cli written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/benjaminmishra/file_mgmt_cli on toolchain cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/benjaminmishra/file_mgmt_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" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "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] 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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fb45c40c28d4b9c54fdfd939488cd5638fcfa3b3eeec10176e394b61adb98ee6 [INFO] running `Command { std: "docker" "start" "-a" "fb45c40c28d4b9c54fdfd939488cd5638fcfa3b3eeec10176e394b61adb98ee6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fb45c40c28d4b9c54fdfd939488cd5638fcfa3b3eeec10176e394b61adb98ee6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb45c40c28d4b9c54fdfd939488cd5638fcfa3b3eeec10176e394b61adb98ee6", kill_on_drop: false }` [INFO] [stdout] fb45c40c28d4b9c54fdfd939488cd5638fcfa3b3eeec10176e394b61adb98ee6 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 63d7e93248def4eb646cd27f76cd55ceae97da1d87e6724b57d73b2138e56770 [INFO] running `Command { std: "docker" "start" "-a" "63d7e93248def4eb646cd27f76cd55ceae97da1d87e6724b57d73b2138e56770", kill_on_drop: false }` [INFO] [stderr] Checking file_mgmt_cli v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0412]: cannot find type `T` in this scope [INFO] [stdout] --> src/main.rs:16:23 [INFO] [stdout] | [INFO] [stdout] 16 | let commad_args : T; [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `first_arg` in this scope [INFO] [stdout] --> src/main.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | match first_arg { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `command_args` in this scope [INFO] [stdout] --> src/main.rs:73:36 [INFO] [stdout] | [INFO] [stdout] 73 | let _ = mv::move_items(command_args); [INFO] [stdout] | ^^^^^^^^^^^^ help: a local variable with a similar name exists: `commad_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ParsableCommand` and `self` [INFO] [stdout] --> src/main.rs:8:65 [INFO] [stdout] | [INFO] [stdout] 8 | use commands::{ls, mv::{self, MoveItemArgs}, parsable_command::{self, ParsableCommand}, rm}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `str_vec` [INFO] [stdout] --> src/commands/mv.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 17 | return MoveItemArgs { [INFO] [stdout] | ________________^ [INFO] [stdout] 18 | | source_path : str_vec[0].as_ref(), [INFO] [stdout] | | ------- `str_vec` is borrowed here [INFO] [stdout] 19 | | destination_path : str_vec[1].as_ref() [INFO] [stdout] 20 | | } [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 `str_vec` [INFO] [stdout] --> src/commands/mv.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 17 | return MoveItemArgs { [INFO] [stdout] | ________________^ [INFO] [stdout] 18 | | source_path : str_vec[0].as_ref(), [INFO] [stdout] 19 | | destination_path : str_vec[1].as_ref() [INFO] [stdout] | | ------- `str_vec` is borrowed here [INFO] [stdout] 20 | | } [INFO] [stdout] | |_________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/args_parser.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut command_name: String; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/args_parser.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut command: T; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0515. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `T` in this scope [INFO] [stdout] --> src/main.rs:16:23 [INFO] [stdout] | [INFO] [stdout] 16 | let commad_args : T; [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `first_arg` in this scope [INFO] [stdout] --> src/main.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | match first_arg { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `command_args` in this scope [INFO] [stdout] --> src/main.rs:73:36 [INFO] [stdout] | [INFO] [stdout] 73 | let _ = mv::move_items(command_args); [INFO] [stdout] | ^^^^^^^^^^^^ help: a local variable with a similar name exists: `commad_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ParsableCommand` and `self` [INFO] [stdout] --> src/main.rs:8:65 [INFO] [stdout] | [INFO] [stdout] 8 | use commands::{ls, mv::{self, MoveItemArgs}, parsable_command::{self, ParsableCommand}, rm}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `file_mgmt_cli` (bin "file_mgmt_cli" test) due to 5 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `str_vec` [INFO] [stdout] --> src/commands/mv.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 17 | return MoveItemArgs { [INFO] [stdout] | ________________^ [INFO] [stdout] 18 | | source_path : str_vec[0].as_ref(), [INFO] [stdout] | | ------- `str_vec` is borrowed here [INFO] [stdout] 19 | | destination_path : str_vec[1].as_ref() [INFO] [stdout] 20 | | } [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 `str_vec` [INFO] [stdout] --> src/commands/mv.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 17 | return MoveItemArgs { [INFO] [stdout] | ________________^ [INFO] [stdout] 18 | | source_path : str_vec[0].as_ref(), [INFO] [stdout] 19 | | destination_path : str_vec[1].as_ref() [INFO] [stdout] | | ------- `str_vec` is borrowed here [INFO] [stdout] 20 | | } [INFO] [stdout] | |_________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/args_parser.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut command_name: String; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/args_parser.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut command: T; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0515. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `file_mgmt_cli` (bin "file_mgmt_cli") due to 5 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "63d7e93248def4eb646cd27f76cd55ceae97da1d87e6724b57d73b2138e56770", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "63d7e93248def4eb646cd27f76cd55ceae97da1d87e6724b57d73b2138e56770", kill_on_drop: false }` [INFO] [stdout] 63d7e93248def4eb646cd27f76cd55ceae97da1d87e6724b57d73b2138e56770