[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] d8a6505..9f6fcbe master -> master [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 9f6fcbe52047065bbe32f920d46395591a1f00e3 [INFO] checking 0queue/boosttorrent-redux against master#bd0bacc694d7d8175804bb6f690cb846bfa4a9ee for pr-71665 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0queue%2Fboosttorrent-redux" "/workspace/builds/worker-10/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-10/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/0queue/boosttorrent-redux on toolchain bd0bacc694d7d8175804bb6f690cb846bfa4a9ee [INFO] running `"/workspace/cargo-home/bin/cargo" "+bd0bacc694d7d8175804bb6f690cb846bfa4a9ee" "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-10/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" "+bd0bacc694d7d8175804bb6f690cb846bfa4a9ee" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: the lock file /workspace/builds/worker-10/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" "+bd0bacc694d7d8175804bb6f690cb846bfa4a9ee" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+bd0bacc694d7d8175804bb6f690cb846bfa4a9ee" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "+bd0bacc694d7d8175804bb6f690cb846bfa4a9ee" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 9fdd970baab00f5a5b715820e62353b8584db18c4226afaeacf28a667953c1dc [INFO] running `"docker" "start" "-a" "9fdd970baab00f5a5b715820e62353b8584db18c4226afaeacf28a667953c1dc"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling libc v0.2.69 [INFO] [stderr] Compiling standback v0.2.8 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Checking byte-tools v0.3.1 [INFO] [stderr] Compiling nix v0.17.0 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Checking opaque-debug v0.2.3 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking base64 v0.12.1 [INFO] [stderr] Checking fake-simd v0.1.2 [INFO] [stderr] Checking chunked_transfer v1.1.0 [INFO] [stderr] Checking hex v0.4.2 [INFO] [stderr] Checking util v0.1.2 [INFO] [stderr] Checking bit-vec v0.6.2 [INFO] [stderr] Checking futures-task v0.3.5 [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.15 [INFO] [stderr] Checking qstring v0.7.2 [INFO] [stderr] Compiling ring v0.16.13 [INFO] [stderr] Checking futures-channel v0.3.5 [INFO] [stderr] Checking block-padding v0.1.5 [INFO] [stderr] Checking log v0.4.8 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Compiling syn v1.0.19 [INFO] [stderr] Checking crossbeam-epoch v0.8.2 [INFO] [stderr] Checking bencode v0.1.16 [INFO] [stderr] Checking kv-log-macro v1.0.5 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Checking url v2.1.1 [INFO] [stderr] Checking generic-array v0.12.3 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Checking digest v0.8.1 [INFO] [stderr] Checking sha-1 v0.8.2 [INFO] [stderr] Checking md-5 v0.8.0 [INFO] [stderr] Checking parking_lot_core v0.7.2 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.34 [INFO] [stderr] Checking getrandom v0.1.14 [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 clap v2.33.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking parking_lot v0.10.2 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking mio-uds v0.6.8 [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] Compiling pin-project-internal v0.4.16 [INFO] [stderr] Compiling futures-macro v0.3.5 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Checking ctrlc v3.1.4 [INFO] [stderr] Checking time-macros v0.1.0 [INFO] [stderr] Compiling structopt-derive v0.4.7 [INFO] [stderr] Checking cookie v0.13.3 [INFO] [stderr] Checking ureq v0.12.1 [INFO] [stderr] Checking pin-project v0.4.16 [INFO] [stderr] Checking futures-util v0.3.5 [INFO] [stderr] Checking structopt v0.3.14 [INFO] [stderr] Checking futures-executor v0.3.5 [INFO] [stderr] Checking broadcaster v1.0.0 [INFO] [stderr] Checking futures v0.3.5 [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:20:11 [INFO] [stderr] | [INFO] [stderr] 20 | 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:21:11 [INFO] [stderr] | [INFO] [stderr] 21 | 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: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/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:10:11 [INFO] [stderr] | [INFO] [stderr] 10 | 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/main.rs:20:11 [INFO] [stderr] | [INFO] [stderr] 20 | 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/peer/download.rs:11:11 [INFO] [stderr] | [INFO] [stderr] 11 | 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:71:18 [INFO] [stderr] | [INFO] [stderr] 71 | bencode::de::deserialize(&contents)? [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:21:11 [INFO] [stderr] | [INFO] [stderr] 21 | 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: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/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:10:11 [INFO] [stderr] | [INFO] [stderr] 10 | 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:11:11 [INFO] [stderr] | [INFO] [stderr] 11 | 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:71:18 [INFO] [stderr] | [INFO] [stderr] 71 | 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:136:67 [INFO] [stderr] | [INFO] [stderr] 136 | 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:141:43 [INFO] [stderr] | [INFO] [stderr] 141 | 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:151:52 [INFO] [stderr] | [INFO] [stderr] 151 | 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:30:48 [INFO] [stderr] | [INFO] [stderr] 30 | 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:33:27 [INFO] [stderr] | [INFO] [stderr] 33 | (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:39:27 [INFO] [stderr] | [INFO] [stderr] 39 | (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:57:42 [INFO] [stderr] | [INFO] [stderr] 57 | 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:92:66 [INFO] [stderr] | [INFO] [stderr] 92 | 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:100:50 [INFO] [stderr] | [INFO] [stderr] 100 | 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:108:59 [INFO] [stderr] | [INFO] [stderr] 108 | 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:117:45 [INFO] [stderr] | [INFO] [stderr] 117 | 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:127:74 [INFO] [stderr] | [INFO] [stderr] 127 | 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:147:37 [INFO] [stderr] | [INFO] [stderr] 147 | 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:154:84 [INFO] [stderr] | [INFO] [stderr] 154 | 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:147:35 [INFO] [stderr] | [INFO] [stderr] 147 | 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:151:25 [INFO] [stderr] | [INFO] [stderr] 151 | 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:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | 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] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0599]: no method named `zeroes` found for struct `bit_vec::BitVec` in the current scope [INFO] [stderr] --> src/controller/mod.rs:136:67 [INFO] [stderr] | [INFO] [stderr] 136 | 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:141:43 [INFO] [stderr] | [INFO] [stderr] 141 | 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:151:52 [INFO] [stderr] | [INFO] [stderr] 151 | 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:30:48 [INFO] [stderr] | [INFO] [stderr] 30 | 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:33:27 [INFO] [stderr] | [INFO] [stderr] 33 | (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:39:27 [INFO] [stderr] | [INFO] [stderr] 39 | (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:57:42 [INFO] [stderr] | [INFO] [stderr] 57 | 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:92:66 [INFO] [stderr] | [INFO] [stderr] 92 | 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:100:50 [INFO] [stderr] | [INFO] [stderr] 100 | 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:108:59 [INFO] [stderr] | [INFO] [stderr] 108 | 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:117:45 [INFO] [stderr] | [INFO] [stderr] 117 | 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:127:74 [INFO] [stderr] | [INFO] [stderr] 127 | 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:147:37 [INFO] [stderr] | [INFO] [stderr] 147 | 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:154:84 [INFO] [stderr] | [INFO] [stderr] 154 | 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:147:35 [INFO] [stderr] | [INFO] [stderr] 147 | 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:151:25 [INFO] [stderr] | [INFO] [stderr] 151 | 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:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | 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" "9fdd970baab00f5a5b715820e62353b8584db18c4226afaeacf28a667953c1dc"` [INFO] running `"docker" "rm" "-f" "9fdd970baab00f5a5b715820e62353b8584db18c4226afaeacf28a667953c1dc"` [INFO] [stdout] 9fdd970baab00f5a5b715820e62353b8584db18c4226afaeacf28a667953c1dc