[INFO] cloning repository https://github.com/devashishkatoriya/rust_basics [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/devashishkatoriya/rust_basics" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdevashishkatoriya%2Frust_basics", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdevashishkatoriya%2Frust_basics'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8d511ad5e465e07fdc6bec9d942f79acecad04f3 [INFO] checking devashishkatoriya/rust_basics/8d511ad5e465e07fdc6bec9d942f79acecad04f3 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdevashishkatoriya%2Frust_basics" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/devashishkatoriya/rust_basics on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/devashishkatoriya/rust_basics [INFO] finished tweaking git repo https://github.com/devashishkatoriya/rust_basics [INFO] tweaked toml for git repo https://github.com/devashishkatoriya/rust_basics written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/devashishkatoriya/rust_basics 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0259c394dc381977a48e56d1685a8d2b27da88b49e688c3ae6f5fb1947761bf6 [INFO] running `Command { std: "docker" "start" "-a" "0259c394dc381977a48e56d1685a8d2b27da88b49e688c3ae6f5fb1947761bf6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0259c394dc381977a48e56d1685a8d2b27da88b49e688c3ae6f5fb1947761bf6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0259c394dc381977a48e56d1685a8d2b27da88b49e688c3ae6f5fb1947761bf6", kill_on_drop: false }` [INFO] [stdout] 0259c394dc381977a48e56d1685a8d2b27da88b49e688c3ae6f5fb1947761bf6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e232ce93ced3638fee620e05042fa385a17beedecc0c15fc45dc119cb4ff8d36 [INFO] running `Command { std: "docker" "start" "-a" "e232ce93ced3638fee620e05042fa385a17beedecc0c15fc45dc119cb4ff8d36", kill_on_drop: false }` [INFO] [stderr] Checking import_files v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/files.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut data = read_file(path); [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/files.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut data = read_file(path); [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] error[E0381]: used binding `temp` isn't initialized [INFO] [stdout] --> src/files.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 32 | let mut temp: String; [INFO] [stdout] | -------- binding declared here but left uninitialized [INFO] [stdout] ... [INFO] [stdout] 36 | temp.push_str(&line?); [INFO] [stdout] | ^^^^ `temp` used here but it isn't initialized [INFO] [stdout] | [INFO] [stdout] help: consider assigning a value [INFO] [stdout] | [INFO] [stdout] 32 | let mut temp: String = Default::default(); [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0381]: used binding `temp` isn't initialized [INFO] [stdout] --> src/files.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 32 | let mut temp: String; [INFO] [stdout] | -------- binding declared here but left uninitialized [INFO] [stdout] ... [INFO] [stdout] 36 | temp.push_str(&line?); [INFO] [stdout] | ^^^^ `temp` used here but it isn't initialized [INFO] [stdout] | [INFO] [stdout] help: consider assigning a value [INFO] [stdout] | [INFO] [stdout] 32 | let mut temp: String = Default::default(); [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `line` [INFO] [stdout] --> src/files.rs:36:24 [INFO] [stdout] | [INFO] [stdout] 34 | for line in buffered.lines() { [INFO] [stdout] | ---- move occurs because `line` has type `Result`, which does not implement the `Copy` trait [INFO] [stdout] 35 | println!("{}", line?); [INFO] [stdout] | ----- `line` moved due to this method call [INFO] [stdout] 36 | temp.push_str(&line?); [INFO] [stdout] | ^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: `branch` takes ownership of the receiver `self`, which moves `line` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/ops/try_trait.rs:217:15 [INFO] [stdout] help: you could `clone` the value and consume it, if the `std::io::Error: Clone` trait bound could be satisfied [INFO] [stdout] | [INFO] [stdout] 35 | println!("{}", line.clone()?); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `line` [INFO] [stdout] --> src/files.rs:36:24 [INFO] [stdout] | [INFO] [stdout] 34 | for line in buffered.lines() { [INFO] [stdout] | ---- move occurs because `line` has type `Result`, which does not implement the `Copy` trait [INFO] [stdout] 35 | println!("{}", line?); [INFO] [stdout] | ----- `line` moved due to this method call [INFO] [stdout] 36 | temp.push_str(&line?); [INFO] [stdout] | ^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: `branch` takes ownership of the receiver `self`, which moves `line` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/ops/try_trait.rs:217:15 [INFO] [stdout] help: you could `clone` the value and consume it, if the `std::io::Error: Clone` trait bound could be satisfied [INFO] [stdout] | [INFO] [stdout] 35 | println!("{}", line.clone()?); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0381, E0382. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0381`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0381, E0382. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0381`. [INFO] [stdout] [INFO] [stderr] error: could not compile `import_files` (bin "import_files") due to 3 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `import_files` (bin "import_files" test) due to 3 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "e232ce93ced3638fee620e05042fa385a17beedecc0c15fc45dc119cb4ff8d36", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e232ce93ced3638fee620e05042fa385a17beedecc0c15fc45dc119cb4ff8d36", kill_on_drop: false }` [INFO] [stdout] e232ce93ced3638fee620e05042fa385a17beedecc0c15fc45dc119cb4ff8d36