[INFO] cloning repository https://github.com/jefflembeck/img_stats [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jefflembeck/img_stats" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjefflembeck%2Fimg_stats", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjefflembeck%2Fimg_stats'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4326278b3ce5f3ac81f54897763922d355652732 [INFO] checking jefflembeck/img_stats against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjefflembeck%2Fimg_stats" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jefflembeck/img_stats on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jefflembeck/img_stats [INFO] finished tweaking git repo https://github.com/jefflembeck/img_stats [INFO] tweaked toml for git repo https://github.com/jefflembeck/img_stats written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/jefflembeck/img_stats already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cfeb844ed22cc7e9acd5669f3e52caaee184f6ea3b14eb2137afd4afa905d89d [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "cfeb844ed22cc7e9acd5669f3e52caaee184f6ea3b14eb2137afd4afa905d89d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cfeb844ed22cc7e9acd5669f3e52caaee184f6ea3b14eb2137afd4afa905d89d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cfeb844ed22cc7e9acd5669f3e52caaee184f6ea3b14eb2137afd4afa905d89d", kill_on_drop: false }` [INFO] [stdout] cfeb844ed22cc7e9acd5669f3e52caaee184f6ea3b14eb2137afd4afa905d89d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 36c78ee18f982eb429ccad3091c7256e71abe06e6c2619feba116b86afe70053 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "36c78ee18f982eb429ccad3091c7256e71abe06e6c2619feba116b86afe70053", kill_on_drop: false }` [INFO] [stderr] Checking img_stats v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `width` [INFO] [stdout] --> src/main.rs:46:21 [INFO] [stdout] | [INFO] [stdout] 46 | let width = iter.next(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_width` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `width` [INFO] [stdout] --> src/main.rs:46:21 [INFO] [stdout] | [INFO] [stdout] 46 | let width = iter.next(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_width` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let mut file = get_file("./test/security.png"); [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/main.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let mut file = get_file("./test/security.png"); [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[E0382]: borrow of moved value: `iter` [INFO] [stdout] --> src/main.rs:46:29 [INFO] [stdout] | [INFO] [stdout] 43 | let mut iter = buffer.chunks(4); [INFO] [stdout] | -------- move occurs because `iter` has type `Chunks<'_, u8>`, which does not implement the `Copy` trait [INFO] [stdout] 44 | for chunk in iter { [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | `iter` moved due to this implicit call to `.into_iter()` [INFO] [stdout] | help: consider borrowing to avoid moving into the for loop: `&iter` [INFO] [stdout] 45 | if chunk == [73, 72, 68, 82] { [INFO] [stdout] 46 | let width = iter.next(); [INFO] [stdout] | ^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: this function consumes the receiver `self` by taking ownership of it, which moves `iter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `iter` [INFO] [stdout] --> src/main.rs:46:29 [INFO] [stdout] | [INFO] [stdout] 43 | let mut iter = buffer.chunks(4); [INFO] [stdout] | -------- move occurs because `iter` has type `Chunks<'_, u8>`, which does not implement the `Copy` trait [INFO] [stdout] 44 | for chunk in iter { [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | `iter` moved due to this implicit call to `.into_iter()` [INFO] [stdout] | help: consider borrowing to avoid moving into the for loop: `&iter` [INFO] [stdout] 45 | if chunk == [73, 72, 68, 82] { [INFO] [stdout] 46 | let width = iter.next(); [INFO] [stdout] | ^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: this function consumes the receiver `self` by taking ownership of it, which moves `iter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `img_stats` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "36c78ee18f982eb429ccad3091c7256e71abe06e6c2619feba116b86afe70053", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "36c78ee18f982eb429ccad3091c7256e71abe06e6c2619feba116b86afe70053", kill_on_drop: false }` [INFO] [stdout] 36c78ee18f982eb429ccad3091c7256e71abe06e6c2619feba116b86afe70053