[INFO] cloning repository https://github.com/krzysztof-ciszewski/bittorrent-client-rs
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/krzysztof-ciszewski/bittorrent-client-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkrzysztof-ciszewski%2Fbittorrent-client-rs", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkrzysztof-ciszewski%2Fbittorrent-client-rs'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 52c2a0b251933dc129b4332d32c83b6dbf923925
[INFO] checking krzysztof-ciszewski/bittorrent-client-rs against 416264364aa47959f5827723e1d7dabc95d0744b for pr-162242
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkrzysztof-ciszewski%2Fbittorrent-client-rs" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/krzysztof-ciszewski/bittorrent-client-rs
[INFO] finished tweaking git repo https://github.com/krzysztof-ciszewski/bittorrent-client-rs
[INFO] tweaked toml for git repo https://github.com/krzysztof-ciszewski/bittorrent-client-rs written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/krzysztof-ciszewski/bittorrent-client-rs on toolchain 416264364aa47959f5827723e1d7dabc95d0744b
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+416264364aa47959f5827723e1d7dabc95d0744b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/krzysztof-ciszewski/bittorrent-client-rs 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" "+416264364aa47959f5827723e1d7dabc95d0744b" "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-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 282e2ba28cefac01e45d655018fa96b88f4c716dd9975504df2630760bee6032
[INFO] running `Command { std: "docker" "start" "282e2ba28cefac01e45d655018fa96b88f4c716dd9975504df2630760bee6032", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "282e2ba28cefac01e45d655018fa96b88f4c716dd9975504df2630760bee6032", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "282e2ba28cefac01e45d655018fa96b88f4c716dd9975504df2630760bee6032" "/opt/rustwide/cargo-home/bin/cargo" "+416264364aa47959f5827723e1d7dabc95d0744b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "282e2ba28cefac01e45d655018fa96b88f4c716dd9975504df2630760bee6032", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "282e2ba28cefac01e45d655018fa96b88f4c716dd9975504df2630760bee6032" "/opt/rustwide/cargo-home/bin/cargo" "+416264364aa47959f5827723e1d7dabc95d0744b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]     Checking bittorent-client v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::hash::Hash`
[INFO] [stdout]  --> src/bencode/mod.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::hash::Hash;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::hash::Hash`
[INFO] [stdout]  --> src/bencode/mod.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::hash::Hash;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `usize: From<u64>` is not satisfied
[INFO] [stdout]   --> src/torrent/mod.rs:36:49
[INFO] [stdout]    |
[INFO] [stdout] 36 |         for hash in hashes.windows(piece_length.into()) {
[INFO] [stdout]    |                                                 ^^^^ the trait `From<u64>` is not implemented for `usize`
[INFO] [stdout]    |
[INFO] [stdout] help: `usize` implements trait `From<T>`
[INFO] [stdout]   --> /rustc/416264364aa47959f5827723e1d7dabc95d0744b/library/core/src/convert/num.rs:119:8
[INFO] [stdout]    |
[INFO] [stdout]    = note: `From<bool>`
[INFO] [stdout]   ::: /rustc/416264364aa47959f5827723e1d7dabc95d0744b/library/core/src/convert/num.rs:140:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: in this macro invocation
[INFO] [stdout]   ::: /rustc/416264364aa47959f5827723e1d7dabc95d0744b/library/core/src/convert/num.rs:148:8
[INFO] [stdout]    |
[INFO] [stdout]    = note: `From<u16>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `From<u8>`
[INFO] [stdout]   ::: /rustc/416264364aa47959f5827723e1d7dabc95d0744b/library/core/src/convert/num.rs:165:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: in this macro invocation
[INFO] [stdout]   ::: /rustc/416264364aa47959f5827723e1d7dabc95d0744b/library/core/src/convert/num.rs:201:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: in this macro invocation
[INFO] [stdout]   --> /rustc/416264364aa47959f5827723e1d7dabc95d0744b/library/core/src/mem/alignment.rs:333:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `From<std::mem::Alignment>`
[INFO] [stdout]    = note: required for `u64` to implement `Into<usize>`
[INFO] [stdout]    = note: this error originates in the macro `impl_from_bool` which comes from the expansion of the macro `impl_from` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `bittorent-client` (bin "bittorent-client") due to 1 previous error; 1 warning emitted
[INFO] [stdout] error[E0277]: the trait bound `usize: From<u64>` is not satisfied
[INFO] [stdout]   --> src/torrent/mod.rs:36:49
[INFO] [stdout]    |
[INFO] [stdout] 36 |         for hash in hashes.windows(piece_length.into()) {
[INFO] [stdout]    |                                                 ^^^^ the trait `From<u64>` is not implemented for `usize`
[INFO] [stdout]    |
[INFO] [stdout] help: `usize` implements trait `From<T>`
[INFO] [stdout]   --> /rustc/416264364aa47959f5827723e1d7dabc95d0744b/library/core/src/convert/num.rs:119:8
[INFO] [stdout]    |
[INFO] [stdout]    = note: `From<bool>`
[INFO] [stdout]   ::: /rustc/416264364aa47959f5827723e1d7dabc95d0744b/library/core/src/convert/num.rs:140:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: in this macro invocation
[INFO] [stdout]   ::: /rustc/416264364aa47959f5827723e1d7dabc95d0744b/library/core/src/convert/num.rs:148:8
[INFO] [stdout]    |
[INFO] [stdout]    = note: `From<u16>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `From<u8>`
[INFO] [stdout]   ::: /rustc/416264364aa47959f5827723e1d7dabc95d0744b/library/core/src/convert/num.rs:165:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: in this macro invocation
[INFO] [stdout]   ::: /rustc/416264364aa47959f5827723e1d7dabc95d0744b/library/core/src/convert/num.rs:201:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: in this macro invocation
[INFO] [stdout]   --> /rustc/416264364aa47959f5827723e1d7dabc95d0744b/library/core/src/mem/alignment.rs:333:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `From<std::mem::Alignment>`
[INFO] [stdout]    = note: required for `u64` to implement `Into<usize>`
[INFO] [stdout]    = note: this error originates in the macro `impl_from_bool` which comes from the expansion of the macro `impl_from` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `bittorent-client` (bin "bittorent-client" test) due to 1 previous error; 1 warning emitted
[INFO] running `Command { std: "docker" "inspect" "282e2ba28cefac01e45d655018fa96b88f4c716dd9975504df2630760bee6032", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "282e2ba28cefac01e45d655018fa96b88f4c716dd9975504df2630760bee6032", kill_on_drop: false }`
[INFO] [stdout] 282e2ba28cefac01e45d655018fa96b88f4c716dd9975504df2630760bee6032
