[INFO] updating cached repository https://github.com/0queue/boosttorrent-redux [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] [stderr] From https://github.com/0queue/boosttorrent-redux [INFO] [stderr] 8d8a578..e1e88aa master -> master [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] e1e88aaa7783ed432f725c8fa9232306746a1621 [INFO] checking 0queue/boosttorrent-redux against master#45d050cde277b22a755847338f2acc2c7b834141 for pr-71393 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0queue%2Fboosttorrent-redux" "/workspace/builds/worker-7/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/0queue/boosttorrent-redux on toolchain 45d050cde277b22a755847338f2acc2c7b834141 [INFO] running `"/workspace/cargo-home/bin/cargo" "+45d050cde277b22a755847338f2acc2c7b834141" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/0queue/boosttorrent-redux [INFO] removed path dependency bencode from git repo https://github.com/0queue/boosttorrent-redux [INFO] removed path dependency util from git repo https://github.com/0queue/boosttorrent-redux [INFO] finished tweaking git repo https://github.com/0queue/boosttorrent-redux [INFO] tweaked toml for git repo https://github.com/0queue/boosttorrent-redux written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/0queue/boosttorrent-redux already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+45d050cde277b22a755847338f2acc2c7b834141" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: the lock file /workspace/builds/worker-7/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `"/workspace/cargo-home/bin/cargo" "+45d050cde277b22a755847338f2acc2c7b834141" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+45d050cde277b22a755847338f2acc2c7b834141" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+45d050cde277b22a755847338f2acc2c7b834141" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 0244deb00be74d8e5305b3f0727de149cb892af5f57c5818dc4e50284d51f059 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `"docker" "start" "-a" "0244deb00be74d8e5305b3f0727de149cb892af5f57c5818dc4e50284d51f059"` [INFO] [stderr] Compiling libc v0.2.69 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling cc v1.0.52 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Checking futures-core v0.3.4 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Checking futures-sink v0.3.4 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking byte-tools v0.3.1 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Compiling nix v0.17.0 [INFO] [stderr] Checking unicode-width v0.1.7 [INFO] [stderr] Checking opaque-debug v0.2.3 [INFO] [stderr] Checking ppv-lite86 v0.2.6 [INFO] [stderr] Checking base64 v0.11.0 [INFO] [stderr] Checking base64 v0.12.0 [INFO] [stderr] Checking pin-project-lite v0.1.4 [INFO] [stderr] Checking fake-simd v0.1.2 [INFO] [stderr] Checking rustc-serialize v0.3.24 [INFO] [stderr] Checking bit-vec v0.6.1 [INFO] [stderr] Checking util v0.1.2 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.2 [INFO] [stderr] Compiling proc-macro-error v1.0.2 [INFO] [stderr] Compiling time v0.2.12 [INFO] [stderr] Checking futures-channel v0.3.4 [INFO] [stderr] Checking lock_api v0.3.4 [INFO] [stderr] Checking qstring v0.7.2 [INFO] [stderr] Checking block-padding v0.1.5 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling memoffset v0.5.4 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Compiling proc-macro2 v1.0.10 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking kv-log-macro v1.0.4 [INFO] [stderr] Compiling quote v1.0.4 [INFO] [stderr] Checking url v2.1.1 [INFO] [stderr] Compiling syn v1.0.18 [INFO] [stderr] Compiling ring v0.16.13 [INFO] [stderr] Checking crossbeam-channel v0.4.2 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Checking parking_lot_core v0.7.2 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking async-task v1.3.1 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Checking sha-1 v0.8.2 [INFO] [stderr] Checking md-5 v0.8.0 [INFO] [stderr] Checking parking_lot v0.10.2 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking bencode v0.1.16 [INFO] [stderr] Checking mio v0.6.21 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking mio-uds v0.6.7 [INFO] [stderr] Checking webpki v0.21.2 [INFO] [stderr] Checking sct v0.6.0 [INFO] [stderr] Checking rustls v0.17.0 [INFO] [stderr] Checking webpki-roots v0.19.0 [INFO] [stderr] Compiling syn-mid v0.5.0 [INFO] [stderr] Checking ctrlc v3.1.4 [INFO] [stderr] Compiling futures-macro v0.3.4 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Checking time-macros v0.1.0 [INFO] [stderr] Compiling structopt-derive v0.4.7 [INFO] [stderr] Checking futures-util v0.3.4 [INFO] [stderr] Checking cookie v0.13.3 [INFO] [stderr] Checking ureq v0.12.1 [INFO] [stderr] Checking structopt v0.3.14 [INFO] [stderr] Checking futures-executor v0.3.4 [INFO] [stderr] Checking broadcaster v1.0.0 [INFO] [stderr] Checking futures v0.3.4 [INFO] [stderr] Checking async-std v1.5.0 [INFO] [stderr] Checking flume v0.7.1 [INFO] [stderr] Checking boosttorrent-redux v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0433]: failed to resolve: could not find `ext` in `util` [INFO] [stderr] --> src/main.rs:21:11 [INFO] [stderr] | [INFO] [stderr] 21 | use util::ext::duration::DurationExt; [INFO] [stderr] | ^^^ could not find `ext` in `util` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `ext` in `util` [INFO] [stderr] --> src/main.rs:21:11 [INFO] [stderr] | [INFO] [stderr] 21 | use util::ext::duration::DurationExt; [INFO] [stderr] | ^^^ could not find `ext` in `util` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `bencode::BVal` [INFO] [stderr] --> src/main.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use bencode::BVal; [INFO] [stderr] | ^^^^^^^^^^^^^ no `BVal` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `util::timer` [INFO] [stderr] --> src/main.rs:22:11 [INFO] [stderr] | [INFO] [stderr] 22 | use util::timer::Timer; [INFO] [stderr] | ^^^^^ could not find `timer` in `util` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `bencode::BVal` [INFO] [stderr] --> src/tracker.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use bencode::BVal; [INFO] [stderr] | ^^^^^^^^^^^^^ no `BVal` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `bencode::de` [INFO] [stderr] --> src/tracker.rs:6:14 [INFO] [stderr] | [INFO] [stderr] 6 | use bencode::de::deserialize; [INFO] [stderr] | ^^ could not find `de` in `bencode` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `bencode::BVal` [INFO] [stderr] --> src/main.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use bencode::BVal; [INFO] [stderr] | ^^^^^^^^^^^^^ no `BVal` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `util::timer` [INFO] [stderr] --> src/main.rs:22:11 [INFO] [stderr] | [INFO] [stderr] 22 | use util::timer::Timer; [INFO] [stderr] | ^^^^^ could not find `timer` in `util` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `ext` in `util` [INFO] [stderr] --> src/controller/mod.rs:8:11 [INFO] [stderr] | [INFO] [stderr] 8 | use util::ext::bitvec::BitVecExt; [INFO] [stderr] | ^^^ could not find `ext` in `util` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `ext` in `util` [INFO] [stderr] --> src/peer/mod.rs:4:11 [INFO] [stderr] | [INFO] [stderr] 4 | use util::ext::duration::DurationExt; [INFO] [stderr] | ^^^ could not find `ext` in `util` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `util::timer` [INFO] [stderr] --> src/protocol/message/bus.rs:7:11 [INFO] [stderr] | [INFO] [stderr] 7 | use util::timer::Timer; [INFO] [stderr] | ^^^^^ could not find `timer` in `util` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `ext` in `util` [INFO] [stderr] --> src/peer/download.rs:9:11 [INFO] [stderr] | [INFO] [stderr] 9 | use util::ext::bitvec::BitVecExt; [INFO] [stderr] | ^^^ could not find `ext` in `util` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `ext` in `util` [INFO] [stderr] --> src/peer/download.rs:10:11 [INFO] [stderr] | [INFO] [stderr] 10 | use util::ext::duration::SecondsExt; [INFO] [stderr] | ^^^ could not find `ext` in `util` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `util::timer` [INFO] [stderr] --> src/peer/mod.rs:5:11 [INFO] [stderr] | [INFO] [stderr] 5 | use util::timer::Timer; [INFO] [stderr] | ^^^^^ could not find `timer` in `util` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `bencode::BVal` [INFO] [stderr] --> src/tracker.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use bencode::BVal; [INFO] [stderr] | ^^^^^^^^^^^^^ no `BVal` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `bencode::de` [INFO] [stderr] --> src/tracker.rs:6:14 [INFO] [stderr] | [INFO] [stderr] 6 | use bencode::de::deserialize; [INFO] [stderr] | ^^ could not find `de` in `bencode` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `ext` in `util` [INFO] [stderr] --> src/controller/mod.rs:8:11 [INFO] [stderr] | [INFO] [stderr] 8 | use util::ext::bitvec::BitVecExt; [INFO] [stderr] | ^^^ could not find `ext` in `util` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `ext` in `util` [INFO] [stderr] --> src/peer/mod.rs:4:11 [INFO] [stderr] | [INFO] [stderr] 4 | use util::ext::duration::DurationExt; [INFO] [stderr] | ^^^ could not find `ext` in `util` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `de` in `bencode` [INFO] [stderr] --> src/main.rs:72:18 [INFO] [stderr] | [INFO] [stderr] 72 | bencode::de::deserialize(&contents)? [INFO] [stderr] | ^^ could not find `de` in `bencode` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `util::timer` [INFO] [stderr] --> src/protocol/message/bus.rs:7:11 [INFO] [stderr] | [INFO] [stderr] 7 | use util::timer::Timer; [INFO] [stderr] | ^^^^^ could not find `timer` in `util` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `ext` in `util` [INFO] [stderr] --> src/peer/download.rs:9:11 [INFO] [stderr] | [INFO] [stderr] 9 | use util::ext::bitvec::BitVecExt; [INFO] [stderr] | ^^^ could not find `ext` in `util` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `ext` in `util` [INFO] [stderr] --> src/peer/download.rs:10:11 [INFO] [stderr] | [INFO] [stderr] 10 | use util::ext::duration::SecondsExt; [INFO] [stderr] | ^^^ could not find `ext` in `util` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `util::timer` [INFO] [stderr] --> src/peer/mod.rs:5:11 [INFO] [stderr] | [INFO] [stderr] 5 | use util::timer::Timer; [INFO] [stderr] | ^^^^^ could not find `timer` in `util` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `de` in `bencode` [INFO] [stderr] --> src/main.rs:72:18 [INFO] [stderr] | [INFO] [stderr] 72 | bencode::de::deserialize(&contents)? [INFO] [stderr] | ^^ could not find `de` in `bencode` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `zeroes` found for struct `bit_vec::BitVec` in the current scope [INFO] [stderr] --> src/controller/mod.rs:97:67 [INFO] [stderr] | [INFO] [stderr] 97 | println!("> zeroes: {:?}", write.bitfield.zeroes()); [INFO] [stderr] | ^^^^^^ method not found in `bit_vec::BitVec` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `ones` found for struct `bit_vec::BitVec` in the current scope [INFO] [stderr] --> src/controller/mod.rs:102:43 [INFO] [stderr] | [INFO] [stderr] 102 | let ones = local_bitfield.ones().len(); [INFO] [stderr] | ^^^^ method not found in `bit_vec::BitVec` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `zeroes` found for struct `bit_vec::BitVec` in the current scope [INFO] [stderr] --> src/controller/mod.rs:112:52 [INFO] [stderr] | [INFO] [stderr] 112 | println!("Done. Zeroes: {:?}", local_bitfield.zeroes()); [INFO] [stderr] | ^^^^^^ method not found in `bit_vec::BitVec` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `secs` found for type `{integer}` in the current scope [INFO] [stderr] --> src/peer/download.rs:29:48 [INFO] [stderr] | [INFO] [stderr] 29 | let stream = async_std::io::timeout(30.secs(), TcpStream::connect(self.addr)); [INFO] [stderr] | ^^^^ method not found in `{integer}` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `secs` found for type `{integer}` in the current scope [INFO] [stderr] --> src/peer/download.rs:32:27 [INFO] [stderr] | [INFO] [stderr] 32 | (self.addr, 0.secs()) [INFO] [stderr] | ^^^^ method not found in `{integer}` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `secs` found for type `{integer}` in the current scope [INFO] [stderr] --> src/peer/download.rs:38:27 [INFO] [stderr] | [INFO] [stderr] 38 | (self.addr, 0.secs()) [INFO] [stderr] | ^^^^ method not found in `{integer}` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `secs` found for type `{integer}` in the current scope [INFO] [stderr] --> src/peer/download.rs:56:42 [INFO] [stderr] | [INFO] [stderr] 56 | return Err((self.addr, 0.secs())); [INFO] [stderr] | ^^^^ method not found in `{integer}` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `time_fmt` found for struct `std::time::Duration` in the current scope [INFO] [stderr] --> src/peer/mod.rs:97:32 [INFO] [stderr] | [INFO] [stderr] 97 | addr, duration.time_fmt(), active_peers.len() [INFO] [stderr] | ^^^^^^^^ method not found in `std::time::Duration` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `secs` found for type `{integer}` in the current scope [INFO] [stderr] --> src/peer/download.rs:91:66 [INFO] [stderr] | [INFO] [stderr] 91 | if self.peer_state.choke_timer.time().map(|d| d > 60.secs()).unwrap_or(false) { [INFO] [stderr] | ^^^^ method not found in `{integer}` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `secs` found for type `{integer}` in the current scope [INFO] [stderr] --> src/peer/download.rs:99:50 [INFO] [stderr] | [INFO] [stderr] 99 | if msg_bus.last_sent().unwrap() > 90.secs() { [INFO] [stderr] | ^^^^ method not found in `{integer}` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `ones` found for struct `bit_vec::BitVec` in the current scope [INFO] [stderr] --> src/peer/download.rs:107:59 [INFO] [stderr] | [INFO] [stderr] 107 | if self.job.is_some() || self.peer_state.bitfield.ones().is_empty() || self.peer_state.choked { [INFO] [stderr] | ^^^^ method not found in `bit_vec::BitVec` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `secs` found for type `{integer}` in the current scope [INFO] [stderr] --> src/peer/download.rs:116:45 [INFO] [stderr] | [INFO] [stderr] 116 | let fut = future::timeout(5.secs(), self.controller_bus.work_bus.rx.recv()); [INFO] [stderr] | ^^^^ method not found in `{integer}` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `zeroes` found for struct `bit_vec::BitVec` in the current scope [INFO] [stderr] --> src/peer/download.rs:126:74 [INFO] [stderr] | [INFO] [stderr] 126 | let zeroes = self.controller_state.read().await.bitfield.zeroes(); [INFO] [stderr] | ^^^^^^ method not found in `bit_vec::BitVec` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `secs` found for type `{integer}` in the current scope [INFO] [stderr] --> src/peer/download.rs:146:37 [INFO] [stderr] | [INFO] [stderr] 146 | match future::timeout(5.secs(), msg_bus.recv()).await { [INFO] [stderr] | ^^^^ method not found in `{integer}` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `secs` found for type `{integer}` in the current scope [INFO] [stderr] --> src/peer/download.rs:153:84 [INFO] [stderr] | [INFO] [stderr] 153 | return Err((self.addr, msg_bus.last_sent().unwrap_or_else(|| 0.secs()))); [INFO] [stderr] | ^^^^ method not found in `{integer}` [INFO] [stderr] [INFO] [stderr] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stderr] --> src/peer/download.rs:146:35 [INFO] [stderr] | [INFO] [stderr] 146 | match future::timeout(5.secs(), msg_bus.recv()).await { [INFO] [stderr] | ^ cannot infer type for type `{integer}` [INFO] [stderr] | [INFO] [stderr] note: the type is part of the `async fn` body because of this `await` [INFO] [stderr] --> src/peer/download.rs:150:25 [INFO] [stderr] | [INFO] [stderr] 150 | self.controller_bus.work_bus.tx.send(j.piece.index).await; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `rand::seq::SliceRandom` [INFO] [stderr] --> src/peer/download.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use rand::seq::SliceRandom; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 28 previous errors; 1 warning emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0432, E0433, E0599, E0698. [INFO] [stderr] For more information about an error, try `rustc --explain E0432`. [INFO] [stderr] error[E0599]: no method named `zeroes` found for struct `bit_vec::BitVec` in the current scope [INFO] [stderr] --> src/controller/mod.rs:97:67 [INFO] [stderr] | [INFO] [stderr] 97 | println!("> zeroes: {:?}", write.bitfield.zeroes()); [INFO] [stderr] | ^^^^^^ method not found in `bit_vec::BitVec` [INFO] [stderr] [INFO] [stderr] error: could not compile `boosttorrent-redux`. [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[E0599]: no method named `ones` found for struct `bit_vec::BitVec` in the current scope [INFO] [stderr] --> src/controller/mod.rs:102:43 [INFO] [stderr] | [INFO] [stderr] 102 | let ones = local_bitfield.ones().len(); [INFO] [stderr] | ^^^^ method not found in `bit_vec::BitVec` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `zeroes` found for struct `bit_vec::BitVec` in the current scope [INFO] [stderr] --> src/controller/mod.rs:112:52 [INFO] [stderr] | [INFO] [stderr] 112 | println!("Done. Zeroes: {:?}", local_bitfield.zeroes()); [INFO] [stderr] | ^^^^^^ method not found in `bit_vec::BitVec` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `secs` found for type `{integer}` in the current scope [INFO] [stderr] --> src/peer/download.rs:29:48 [INFO] [stderr] | [INFO] [stderr] 29 | let stream = async_std::io::timeout(30.secs(), TcpStream::connect(self.addr)); [INFO] [stderr] | ^^^^ method not found in `{integer}` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `secs` found for type `{integer}` in the current scope [INFO] [stderr] --> src/peer/download.rs:32:27 [INFO] [stderr] | [INFO] [stderr] 32 | (self.addr, 0.secs()) [INFO] [stderr] | ^^^^ method not found in `{integer}` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `secs` found for type `{integer}` in the current scope [INFO] [stderr] --> src/peer/download.rs:38:27 [INFO] [stderr] | [INFO] [stderr] 38 | (self.addr, 0.secs()) [INFO] [stderr] | ^^^^ method not found in `{integer}` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `secs` found for type `{integer}` in the current scope [INFO] [stderr] --> src/peer/download.rs:56:42 [INFO] [stderr] | [INFO] [stderr] 56 | return Err((self.addr, 0.secs())); [INFO] [stderr] | ^^^^ method not found in `{integer}` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `time_fmt` found for struct `std::time::Duration` in the current scope [INFO] [stderr] --> src/peer/mod.rs:97:32 [INFO] [stderr] | [INFO] [stderr] 97 | addr, duration.time_fmt(), active_peers.len() [INFO] [stderr] | ^^^^^^^^ method not found in `std::time::Duration` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `secs` found for type `{integer}` in the current scope [INFO] [stderr] --> src/peer/download.rs:91:66 [INFO] [stderr] | [INFO] [stderr] 91 | if self.peer_state.choke_timer.time().map(|d| d > 60.secs()).unwrap_or(false) { [INFO] [stderr] | ^^^^ method not found in `{integer}` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `secs` found for type `{integer}` in the current scope [INFO] [stderr] --> src/peer/download.rs:99:50 [INFO] [stderr] | [INFO] [stderr] 99 | if msg_bus.last_sent().unwrap() > 90.secs() { [INFO] [stderr] | ^^^^ method not found in `{integer}` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `ones` found for struct `bit_vec::BitVec` in the current scope [INFO] [stderr] --> src/peer/download.rs:107:59 [INFO] [stderr] | [INFO] [stderr] 107 | if self.job.is_some() || self.peer_state.bitfield.ones().is_empty() || self.peer_state.choked { [INFO] [stderr] | ^^^^ method not found in `bit_vec::BitVec` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `secs` found for type `{integer}` in the current scope [INFO] [stderr] --> src/peer/download.rs:116:45 [INFO] [stderr] | [INFO] [stderr] 116 | let fut = future::timeout(5.secs(), self.controller_bus.work_bus.rx.recv()); [INFO] [stderr] | ^^^^ method not found in `{integer}` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `zeroes` found for struct `bit_vec::BitVec` in the current scope [INFO] [stderr] --> src/peer/download.rs:126:74 [INFO] [stderr] | [INFO] [stderr] 126 | let zeroes = self.controller_state.read().await.bitfield.zeroes(); [INFO] [stderr] | ^^^^^^ method not found in `bit_vec::BitVec` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `secs` found for type `{integer}` in the current scope [INFO] [stderr] --> src/peer/download.rs:146:37 [INFO] [stderr] | [INFO] [stderr] 146 | match future::timeout(5.secs(), msg_bus.recv()).await { [INFO] [stderr] | ^^^^ method not found in `{integer}` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `secs` found for type `{integer}` in the current scope [INFO] [stderr] --> src/peer/download.rs:153:84 [INFO] [stderr] | [INFO] [stderr] 153 | return Err((self.addr, msg_bus.last_sent().unwrap_or_else(|| 0.secs()))); [INFO] [stderr] | ^^^^ method not found in `{integer}` [INFO] [stderr] [INFO] [stderr] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stderr] --> src/peer/download.rs:146:35 [INFO] [stderr] | [INFO] [stderr] 146 | match future::timeout(5.secs(), msg_bus.recv()).await { [INFO] [stderr] | ^ cannot infer type for type `{integer}` [INFO] [stderr] | [INFO] [stderr] note: the type is part of the `async fn` body because of this `await` [INFO] [stderr] --> src/peer/download.rs:150:25 [INFO] [stderr] | [INFO] [stderr] 150 | self.controller_bus.work_bus.tx.send(j.piece.index).await; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `rand::seq::SliceRandom` [INFO] [stderr] --> src/peer/download.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use rand::seq::SliceRandom; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 28 previous errors; 1 warning emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0432, E0433, E0599, E0698. [INFO] [stderr] For more information about an error, try `rustc --explain E0432`. [INFO] [stderr] error: could not compile `boosttorrent-redux`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "0244deb00be74d8e5305b3f0727de149cb892af5f57c5818dc4e50284d51f059"` [INFO] running `"docker" "rm" "-f" "0244deb00be74d8e5305b3f0727de149cb892af5f57c5818dc4e50284d51f059"` [INFO] [stdout] 0244deb00be74d8e5305b3f0727de149cb892af5f57c5818dc4e50284d51f059