[INFO] cloning repository https://github.com/jkdzzzz/simple-rust-todo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jkdzzzz/simple-rust-todo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjkdzzzz%2Fsimple-rust-todo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjkdzzzz%2Fsimple-rust-todo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c93b49b7327147bcfc086be67d67a7122a05e974 [INFO] checking jkdzzzz/simple-rust-todo against master#068609ce766e55d2e7371cd2a86143a6d7e8e2e4 for pr-138952 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjkdzzzz%2Fsimple-rust-todo" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jkdzzzz/simple-rust-todo on toolchain 068609ce766e55d2e7371cd2a86143a6d7e8e2e4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+068609ce766e55d2e7371cd2a86143a6d7e8e2e4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jkdzzzz/simple-rust-todo [INFO] finished tweaking git repo https://github.com/jkdzzzz/simple-rust-todo [INFO] tweaked toml for git repo https://github.com/jkdzzzz/simple-rust-todo written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/jkdzzzz/simple-rust-todo 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" "+068609ce766e55d2e7371cd2a86143a6d7e8e2e4" "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-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+068609ce766e55d2e7371cd2a86143a6d7e8e2e4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1df35c573e0ada1350b018ca00edcf300692dc89aacd06c739ec8a56cc296e91 [INFO] running `Command { std: "docker" "start" "-a" "1df35c573e0ada1350b018ca00edcf300692dc89aacd06c739ec8a56cc296e91", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1df35c573e0ada1350b018ca00edcf300692dc89aacd06c739ec8a56cc296e91", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1df35c573e0ada1350b018ca00edcf300692dc89aacd06c739ec8a56cc296e91", kill_on_drop: false }` [INFO] [stdout] 1df35c573e0ada1350b018ca00edcf300692dc89aacd06c739ec8a56cc296e91 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+068609ce766e55d2e7371cd2a86143a6d7e8e2e4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2c50a55a6682ba6f1e7877cfd377b17822d3c8504ccb5ecc2bacae87b15f57f3 [INFO] running `Command { std: "docker" "start" "-a" "2c50a55a6682ba6f1e7877cfd377b17822d3c8504ccb5ecc2bacae87b15f57f3", kill_on_drop: false }` [INFO] [stderr] Checking simple-rust-todo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/utils.rs:65:30 [INFO] [stdout] | [INFO] [stdout] 65 | let lines: Vec = reader.lines().filter_map(|line| { [INFO] [stdout] | ________________-----------___^ [INFO] [stdout] | | | [INFO] [stdout] | | expected due to this [INFO] [stdout] 66 | | let line = line.ok()?; [INFO] [stdout] 67 | | if &line != task_line { [INFO] [stdout] 68 | | Some(line) [INFO] [stdout] ... | [INFO] [stdout] 72 | | }); [INFO] [stdout] | |______^ expected `Vec`, found `FilterMap>, ...>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `FilterMap>, {closure@src/utils.rs:65:56: 65:62}>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/utils.rs:65:30 [INFO] [stdout] | [INFO] [stdout] 65 | let lines: Vec = reader.lines().filter_map(|line| { [INFO] [stdout] | ________________-----------___^ [INFO] [stdout] | | | [INFO] [stdout] | | expected due to this [INFO] [stdout] 66 | | let line = line.ok()?; [INFO] [stdout] 67 | | if &line != task_line { [INFO] [stdout] 68 | | Some(line) [INFO] [stdout] ... | [INFO] [stdout] 72 | | }); [INFO] [stdout] | |______^ expected `Vec`, found `FilterMap>, ...>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `FilterMap>, {closure@src/utils.rs:65:56: 65:62}>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `tasks` [INFO] [stdout] --> src/main.rs:40:46 [INFO] [stdout] | [INFO] [stdout] 23 | let mut tasks: Vec = Vec::new(); [INFO] [stdout] | --------- move occurs because `tasks` has type `Vec`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 39 | let command = utils::task_menu(tasks); [INFO] [stdout] | ----- value moved here [INFO] [stdout] 40 | utils::handle_command(command, file, tasks); [INFO] [stdout] | ^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `task_menu` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/utils.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn task_menu(tasks: Vec) -> String { [INFO] [stdout] | --------- ^^^^^^^^^^^ this parameter takes ownership of the value [INFO] [stdout] | | [INFO] [stdout] | in this function [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 39 | let command = utils::task_menu(tasks.clone()); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0382. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `simple-rust-todo` (bin "simple-rust-todo") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0382]: use of moved value: `tasks` [INFO] [stdout] --> src/main.rs:40:46 [INFO] [stdout] | [INFO] [stdout] 23 | let mut tasks: Vec = Vec::new(); [INFO] [stdout] | --------- move occurs because `tasks` has type `Vec`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 39 | let command = utils::task_menu(tasks); [INFO] [stdout] | ----- value moved here [INFO] [stdout] 40 | utils::handle_command(command, file, tasks); [INFO] [stdout] | ^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `task_menu` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/utils.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn task_menu(tasks: Vec) -> String { [INFO] [stdout] | --------- ^^^^^^^^^^^ this parameter takes ownership of the value [INFO] [stdout] | | [INFO] [stdout] | in this function [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 39 | let command = utils::task_menu(tasks.clone()); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0382. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `simple-rust-todo` (bin "simple-rust-todo" test) due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "2c50a55a6682ba6f1e7877cfd377b17822d3c8504ccb5ecc2bacae87b15f57f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c50a55a6682ba6f1e7877cfd377b17822d3c8504ccb5ecc2bacae87b15f57f3", kill_on_drop: false }` [INFO] [stdout] 2c50a55a6682ba6f1e7877cfd377b17822d3c8504ccb5ecc2bacae87b15f57f3