[INFO] cloning repository https://github.com/luc-silva/department_manager
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/luc-silva/department_manager" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluc-silva%2Fdepartment_manager", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluc-silva%2Fdepartment_manager'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] be1e6404539948c654d8b36338890335e7a1ad8b
[INFO] checking luc-silva/department_manager against try#3857be5045fe74bd0f296f6f4c23db10f8857f73 for pr-156807
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluc-silva%2Fdepartment_manager" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/luc-silva/department_manager
[INFO] finished tweaking git repo https://github.com/luc-silva/department_manager
[INFO] tweaked toml for git repo https://github.com/luc-silva/department_manager written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/luc-silva/department_manager on toolchain 3857be5045fe74bd0f296f6f4c23db10f8857f73
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3857be5045fe74bd0f296f6f4c23db10f8857f73" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/luc-silva/department_manager 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" "+3857be5045fe74bd0f296f6f4c23db10f8857f73" "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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+3857be5045fe74bd0f296f6f4c23db10f8857f73" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 8afbee98108bf19a49572a65816757d46610830ae2f6e894465eeafdeac5e865
[INFO] running `Command { std: "docker" "start" "-a" "8afbee98108bf19a49572a65816757d46610830ae2f6e894465eeafdeac5e865", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "8afbee98108bf19a49572a65816757d46610830ae2f6e894465eeafdeac5e865", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "8afbee98108bf19a49572a65816757d46610830ae2f6e894465eeafdeac5e865", kill_on_drop: false }`
[INFO] [stdout] 8afbee98108bf19a49572a65816757d46610830ae2f6e894465eeafdeac5e865
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+3857be5045fe74bd0f296f6f4c23db10f8857f73" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] acd7819726a214b04163082d822a3adae779971b156bf16e3d251d9e69c3fef5
[INFO] running `Command { std: "docker" "start" "-a" "acd7819726a214b04163082d822a3adae779971b156bf16e3d251d9e69c3fef5", kill_on_drop: false }`
[INFO] [stderr]     Checking sales_project v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/entities.rs:69:13
[INFO] [stdout]    |
[INFO] [stdout] 69 |         let mut counter: i32 = 0;
[INFO] [stdout]    |             ----^^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/entities.rs:69:13
[INFO] [stdout]    |
[INFO] [stdout] 69 |         let mut counter: i32 = 0;
[INFO] [stdout]    |             ----^^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/utils.rs:29:9
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let mut members: Vec<String> = vec![];
[INFO] [stdout]    |         ----^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/utils.rs:29:9
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let mut members: Vec<String> = vec![];
[INFO] [stdout]    |         ----^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/utils.rs:68:9
[INFO] [stdout]    |
[INFO] [stdout] 68 |     let mut choose_employee = comp.employees.get(employee_option);
[INFO] [stdout]    |         ----^^^^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/utils.rs:71:9
[INFO] [stdout]    |
[INFO] [stdout] 71 |     let mut choose_department = comp.departments.get(department_option);
[INFO] [stdout]    |         ----^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `department.members` as mutable, as it is behind a `&` reference
[INFO] [stdout]   --> src/utils.rs:76:21
[INFO] [stdout]    |
[INFO] [stdout] 73 |         Some(department) => {
[INFO] [stdout]    |              ---------- consider changing this binding's type to be: `&mut entities::Department`
[INFO] [stdout] ...
[INFO] [stdout] 76 |                     department.members.push(employee.name.clone())
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^ `department` is a `&` reference, so it cannot be borrowed as mutable
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `department_option` is never read
[INFO] [stdout]   --> src/utils.rs:49:33
[INFO] [stdout]    |
[INFO] [stdout] 49 |     let mut department_option = 0;
[INFO] [stdout]    |                                 ^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 66 |     department_option = department_option_input.parse().expect("Not a integer");
[INFO] [stdout]    |     --------------------------------------------------------------------------- `department_option` is overwritten here before the previous value is read
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `employee_option` is never read
[INFO] [stdout]   --> src/utils.rs:50:31
[INFO] [stdout]    |
[INFO] [stdout] 50 |     let mut employee_option = 0;
[INFO] [stdout]    |                               ^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 59 |     employee_option = employee_option_input.parse().expect("Not a integer");
[INFO] [stdout]    |     ----------------------------------------------------------------------- `employee_option` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/utils.rs:91:9
[INFO] [stdout]    |
[INFO] [stdout] 91 |     let mut level: Level = Level::Junior;
[INFO] [stdout]    |         ----^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `age` is never read
[INFO] [stdout]    --> src/utils.rs:86:24
[INFO] [stdout]     |
[INFO] [stdout]  86 |     let mut age: i32 = 0;
[INFO] [stdout]     |                        ^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 103 |     age = age_input.parse().expect("Not a interger");
[INFO] [stdout]     |     ------------------------------------------------ `age` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `salary` is never read
[INFO] [stdout]   --> src/utils.rs:89:22
[INFO] [stdout]    |
[INFO] [stdout] 89 |     let mut salary = 0;
[INFO] [stdout]    |                      ^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 99 |     salary = salary_input.parse().expect("Not a interger");
[INFO] [stdout]    |     ------------------------------------------------------ `salary` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/utils.rs:68:9
[INFO] [stdout]    |
[INFO] [stdout] 68 |     let mut choose_employee = comp.employees.get(employee_option);
[INFO] [stdout]    |         ----^^^^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/utils.rs:71:9
[INFO] [stdout]    |
[INFO] [stdout] 71 |     let mut choose_department = comp.departments.get(department_option);
[INFO] [stdout]    |         ----^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `department.members` as mutable, as it is behind a `&` reference
[INFO] [stdout]   --> src/utils.rs:76:21
[INFO] [stdout]    |
[INFO] [stdout] 73 |         Some(department) => {
[INFO] [stdout]    |              ---------- consider changing this binding's type to be: `&mut entities::Department`
[INFO] [stdout] ...
[INFO] [stdout] 76 |                     department.members.push(employee.name.clone())
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^ `department` is a `&` reference, so it cannot be borrowed as mutable
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `department_option` is never read
[INFO] [stdout]   --> src/utils.rs:49:33
[INFO] [stdout]    |
[INFO] [stdout] 49 |     let mut department_option = 0;
[INFO] [stdout]    |                                 ^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 66 |     department_option = department_option_input.parse().expect("Not a integer");
[INFO] [stdout]    |     --------------------------------------------------------------------------- `department_option` is overwritten here before the previous value is read
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `employee_option` is never read
[INFO] [stdout]   --> src/utils.rs:50:31
[INFO] [stdout]    |
[INFO] [stdout] 50 |     let mut employee_option = 0;
[INFO] [stdout]    |                               ^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 59 |     employee_option = employee_option_input.parse().expect("Not a integer");
[INFO] [stdout]    |     ----------------------------------------------------------------------- `employee_option` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/utils.rs:91:9
[INFO] [stdout]    |
[INFO] [stdout] 91 |     let mut level: Level = Level::Junior;
[INFO] [stdout]    |         ----^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `age` is never read
[INFO] [stdout]    --> src/utils.rs:86:24
[INFO] [stdout]     |
[INFO] [stdout]  86 |     let mut age: i32 = 0;
[INFO] [stdout]     |                        ^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 103 |     age = age_input.parse().expect("Not a interger");
[INFO] [stdout]     |     ------------------------------------------------ `age` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `salary` is never read
[INFO] [stdout]   --> src/utils.rs:89:22
[INFO] [stdout]    |
[INFO] [stdout] 89 |     let mut salary = 0;
[INFO] [stdout]    |                      ^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 99 |     salary = salary_input.parse().expect("Not a interger");
[INFO] [stdout]    |     ------------------------------------------------------ `salary` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0596`.
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0596`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `sales_project` (bin "sales_project" test) due to 1 previous error; 9 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `sales_project` (bin "sales_project") due to 1 previous error; 9 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "acd7819726a214b04163082d822a3adae779971b156bf16e3d251d9e69c3fef5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "acd7819726a214b04163082d822a3adae779971b156bf16e3d251d9e69c3fef5", kill_on_drop: false }`
[INFO] [stdout] acd7819726a214b04163082d822a3adae779971b156bf16e3d251d9e69c3fef5
