[INFO] fetching crate nbits_vec 0.1.1... [INFO] testing nbits_vec-0.1.1 against 1.60.0 for beta-1.61-1 [INFO] extracting crate nbits_vec 0.1.1 into /workspace/builds/worker-11/source [INFO] validating manifest of crates.io crate nbits_vec 0.1.1 on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate nbits_vec 0.1.1 [INFO] finished tweaking crates.io crate nbits_vec 0.1.1 [INFO] tweaked toml for crates.io crate nbits_vec 0.1.1 written to /workspace/builds/worker-11/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded clippy v0.0.33 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 42c40cade00e97fba5664a8da6847b1587c955ef93a478b984c5d92bb4450744 [INFO] running `Command { std: "docker" "start" "-a" "42c40cade00e97fba5664a8da6847b1587c955ef93a478b984c5d92bb4450744", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "42c40cade00e97fba5664a8da6847b1587c955ef93a478b984c5d92bb4450744", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "42c40cade00e97fba5664a8da6847b1587c955ef93a478b984c5d92bb4450744", kill_on_drop: false }` [INFO] [stdout] 42c40cade00e97fba5664a8da6847b1587c955ef93a478b984c5d92bb4450744 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 64f8b3f1a627c0d26c6ea9a35bd52981d257df3468bb9d30db5fd745d25f435f [INFO] running `Command { std: "docker" "start" "-a" "64f8b3f1a627c0d26c6ea9a35bd52981d257df3468bb9d30db5fd745d25f435f", 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] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-complex v0.1.43 [INFO] [stderr] Compiling num-bigint v0.1.44 [INFO] [stderr] Compiling num-rational v0.1.42 [INFO] [stderr] Compiling num v0.1.42 [INFO] [stderr] Compiling nbits_vec v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0603]: module `raw_vec` is private [INFO] [stdout] --> src/lib.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | use alloc::raw_vec::RawVec; [INFO] [stdout] | ^^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `raw_vec` is defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:1243:9 [INFO] [stdout] | [INFO] [stdout] 1243 | try!(write!(f, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:1251:17 [INFO] [stdout] | [INFO] [stdout] 1251 | try!(write!(f, "{:#x}, ", ptr::read(ptr.offset(i as isize)))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/lib.rs:325:17 [INFO] [stdout] | [INFO] [stdout] 325 | if self.len() > len { [INFO] [stdout] | ^^^ cannot infer type for type parameter `Block` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] note: required by a bound in `NbitsVec::::len` [INFO] [stdout] --> src/lib.rs:111:36 [INFO] [stdout] | [INFO] [stdout] 111 | impl NbitsVec { [INFO] [stdout] | ^^^^^^^ required by this bound in `NbitsVec::::len` [INFO] [stdout] ... [INFO] [stdout] 504 | pub fn len(&self) -> usize { [INFO] [stdout] | --- required by a bound in this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/lib.rs:406:17 [INFO] [stdout] | [INFO] [stdout] 406 | if self.is_empty() { [INFO] [stdout] | ^^^^^^^^ cannot infer type for type parameter `Block` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] note: required by a bound in `NbitsVec::::is_empty` [INFO] [stdout] --> src/lib.rs:111:36 [INFO] [stdout] | [INFO] [stdout] 111 | impl NbitsVec { [INFO] [stdout] | ^^^^^^^ required by this bound in `NbitsVec::::is_empty` [INFO] [stdout] ... [INFO] [stdout] 559 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | -------- required by a bound in this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/lib.rs:451:17 [INFO] [stdout] | [INFO] [stdout] 451 | if self.is_empty() { [INFO] [stdout] | ^^^^^^^^ cannot infer type for type parameter `Block` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] note: required by a bound in `NbitsVec::::is_empty` [INFO] [stdout] --> src/lib.rs:111:36 [INFO] [stdout] | [INFO] [stdout] 111 | impl NbitsVec { [INFO] [stdout] | ^^^^^^^ required by this bound in `NbitsVec::::is_empty` [INFO] [stdout] ... [INFO] [stdout] 559 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | -------- required by a bound in this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/lib.rs:487:31 [INFO] [stdout] | [INFO] [stdout] 487 | let other_len = other.len(); [INFO] [stdout] | ^^^ cannot infer type for type parameter `Block` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] note: required by a bound in `NbitsVec::::len` [INFO] [stdout] --> src/lib.rs:111:36 [INFO] [stdout] | [INFO] [stdout] 111 | impl NbitsVec { [INFO] [stdout] | ^^^^^^^ required by this bound in `NbitsVec::::len` [INFO] [stdout] ... [INFO] [stdout] 504 | pub fn len(&self) -> usize { [INFO] [stdout] | --- required by a bound in this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/lib.rs:524:14 [INFO] [stdout] | [INFO] [stdout] 524 | self.len() * Self::nbits() [INFO] [stdout] | ^^^ cannot infer type for type parameter `Block` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] note: required by a bound in `NbitsVec::::len` [INFO] [stdout] --> src/lib.rs:111:36 [INFO] [stdout] | [INFO] [stdout] 111 | impl NbitsVec { [INFO] [stdout] | ^^^^^^^ required by this bound in `NbitsVec::::len` [INFO] [stdout] ... [INFO] [stdout] 504 | pub fn len(&self) -> usize { [INFO] [stdout] | --- required by a bound in this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/lib.rs:541:14 [INFO] [stdout] | [INFO] [stdout] 541 | self.raw_cap() * Self::block_bits() [INFO] [stdout] | ^^^^^^^ cannot infer type for type parameter `Block` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] note: required by a bound in `NbitsVec::::raw_cap` [INFO] [stdout] --> src/lib.rs:111:36 [INFO] [stdout] | [INFO] [stdout] 111 | impl NbitsVec { [INFO] [stdout] | ^^^^^^^ required by this bound in `NbitsVec::::raw_cap` [INFO] [stdout] ... [INFO] [stdout] 1139 | fn raw_cap(&self) -> usize { [INFO] [stdout] | ------- required by a bound in this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/lib.rs:560:14 [INFO] [stdout] | [INFO] [stdout] 560 | self.len() == 0 [INFO] [stdout] | ^^^ cannot infer type for type parameter `Block` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] note: required by a bound in `NbitsVec::::len` [INFO] [stdout] --> src/lib.rs:111:36 [INFO] [stdout] | [INFO] [stdout] 111 | impl NbitsVec { [INFO] [stdout] | ^^^^^^^ required by this bound in `NbitsVec::::len` [INFO] [stdout] ... [INFO] [stdout] 504 | pub fn len(&self) -> usize { [INFO] [stdout] | --- required by a bound in this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/lib.rs:579:24 [INFO] [stdout] | [INFO] [stdout] 579 | let len = self.len(); [INFO] [stdout] | ^^^ cannot infer type for type parameter `Block` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] note: required by a bound in `NbitsVec::::len` [INFO] [stdout] --> src/lib.rs:111:36 [INFO] [stdout] | [INFO] [stdout] 111 | impl NbitsVec { [INFO] [stdout] | ^^^^^^^ required by this bound in `NbitsVec::::len` [INFO] [stdout] ... [INFO] [stdout] 504 | pub fn len(&self) -> usize { [INFO] [stdout] | --- required by a bound in this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/lib.rs:608:42 [INFO] [stdout] | [INFO] [stdout] 608 | let ret = Some(self.get(self.len() - 1)); [INFO] [stdout] | ^^^ cannot infer type for type parameter `Block` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] note: required by a bound in `NbitsVec::::len` [INFO] [stdout] --> src/lib.rs:111:36 [INFO] [stdout] | [INFO] [stdout] 111 | impl NbitsVec { [INFO] [stdout] | ^^^^^^^ required by this bound in `NbitsVec::::len` [INFO] [stdout] ... [INFO] [stdout] 504 | pub fn len(&self) -> usize { [INFO] [stdout] | --- required by a bound in this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/lib.rs:634:24 [INFO] [stdout] | [INFO] [stdout] 634 | let len = self.len(); [INFO] [stdout] | ^^^ cannot infer type for type parameter `Block` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] note: required by a bound in `NbitsVec::::len` [INFO] [stdout] --> src/lib.rs:111:36 [INFO] [stdout] | [INFO] [stdout] 111 | impl NbitsVec { [INFO] [stdout] | ^^^^^^^ required by this bound in `NbitsVec::::len` [INFO] [stdout] ... [INFO] [stdout] 504 | pub fn len(&self) -> usize { [INFO] [stdout] | --- required by a bound in this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/lib.rs:707:36 [INFO] [stdout] | [INFO] [stdout] 707 | for from in from..self.len() { [INFO] [stdout] | ^^^ cannot infer type for type parameter `Block` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] note: required by a bound in `NbitsVec::::len` [INFO] [stdout] --> src/lib.rs:111:36 [INFO] [stdout] | [INFO] [stdout] 111 | impl NbitsVec { [INFO] [stdout] | ^^^^^^^ required by this bound in `NbitsVec::::len` [INFO] [stdout] ... [INFO] [stdout] 504 | pub fn len(&self) -> usize { [INFO] [stdout] | --- required by a bound in this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:799:28 [INFO] [stdout] | [INFO] [stdout] 799 | ptr::write(ptr, new); [INFO] [stdout] | ^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*mut _` [INFO] [stdout] found raw pointer `*const _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:811:28 [INFO] [stdout] | [INFO] [stdout] 811 | ptr::write(ptr, new); [INFO] [stdout] | ^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*mut _` [INFO] [stdout] found raw pointer `*const Block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:817:28 [INFO] [stdout] | [INFO] [stdout] 817 | ptr::write(ptr, new); [INFO] [stdout] | ^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*mut _` [INFO] [stdout] found raw pointer `*const Block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/lib.rs:862:26 [INFO] [stdout] | [INFO] [stdout] 862 | if loc.0 >= self.raw_cap() { [INFO] [stdout] | ^^^^^^^ cannot infer type for type parameter `Block` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] note: required by a bound in `NbitsVec::::raw_cap` [INFO] [stdout] --> src/lib.rs:111:36 [INFO] [stdout] | [INFO] [stdout] 111 | impl NbitsVec { [INFO] [stdout] | ^^^^^^^ required by this bound in `NbitsVec::::raw_cap` [INFO] [stdout] ... [INFO] [stdout] 1139 | fn raw_cap(&self) -> usize { [INFO] [stdout] | ------- required by a bound in this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:953:37 [INFO] [stdout] | [INFO] [stdout] 953 | (_, true) => ptr::write(ptr, cur | mask), [INFO] [stdout] | ^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*mut _` [INFO] [stdout] found raw pointer `*const _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:954:38 [INFO] [stdout] | [INFO] [stdout] 954 | (_, false) => ptr::write(ptr, cur & !mask), [INFO] [stdout] | ^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*mut _` [INFO] [stdout] found raw pointer `*const _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type annotations needed [INFO] [stdout] --> src/lib.rs:984:38 [INFO] [stdout] | [INFO] [stdout] 984 | let ptr = self.raw_ptr().offset(bi as isize); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(tyvar_behind_raw_pointer)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #46906 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type annotations needed [INFO] [stdout] --> src/lib.rs:996:32 [INFO] [stdout] | [INFO] [stdout] 996 | (ptr::read(ptr.offset(1)) << (block_bits - bo2) >> (block_bits - nbits)) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #46906 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed for `*const T` [INFO] [stdout] --> src/lib.rs:984:28 [INFO] [stdout] | [INFO] [stdout] 984 | let ptr = self.raw_ptr().offset(bi as isize); [INFO] [stdout] | --- ^^^^^^^ cannot infer type for type parameter `Block` [INFO] [stdout] | | [INFO] [stdout] | consider giving `ptr` the explicit type `*const T`, where the type parameter `Block` is specified [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] note: required by a bound in `NbitsVec::::raw_ptr` [INFO] [stdout] --> src/lib.rs:111:36 [INFO] [stdout] | [INFO] [stdout] 111 | impl NbitsVec { [INFO] [stdout] | ^^^^^^^ required by this bound in `NbitsVec::::raw_ptr` [INFO] [stdout] ... [INFO] [stdout] 1091 | pub fn raw_ptr(&self) -> *const Block { [INFO] [stdout] | ------- required by a bound in this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type annotations needed [INFO] [stdout] --> src/lib.rs:1042:34 [INFO] [stdout] | [INFO] [stdout] 1042 | let ptr = self.raw_ptr().offset(loc.0 as isize); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #46906 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/lib.rs:1039:26 [INFO] [stdout] | [INFO] [stdout] 1039 | if loc.0 >= self.raw_cap() { [INFO] [stdout] | ^^^^^^^ cannot infer type for type parameter `Block` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] note: required by a bound in `NbitsVec::::raw_cap` [INFO] [stdout] --> src/lib.rs:111:36 [INFO] [stdout] | [INFO] [stdout] 111 | impl NbitsVec { [INFO] [stdout] | ^^^^^^^ required by this bound in `NbitsVec::::raw_cap` [INFO] [stdout] ... [INFO] [stdout] 1139 | fn raw_cap(&self) -> usize { [INFO] [stdout] | ------- required by a bound in this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/lib.rs:1080:14 [INFO] [stdout] | [INFO] [stdout] 1080 | self.get_raw_bits(pos, 1) == Block::one() [INFO] [stdout] | -----^^^^^^^^^^^^-------- [INFO] [stdout] | | | [INFO] [stdout] | | cannot infer type for type parameter `Block` [INFO] [stdout] | this method call resolves to `Block` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] note: required by a bound in `NbitsVec::::get_raw_bits` [INFO] [stdout] --> src/lib.rs:111:36 [INFO] [stdout] | [INFO] [stdout] 111 | impl NbitsVec { [INFO] [stdout] | ^^^^^^^ required by this bound in `NbitsVec::::get_raw_bits` [INFO] [stdout] ... [INFO] [stdout] 1035 | pub unsafe fn get_raw_bits(&self, pos: usize, length: usize) -> Block { [INFO] [stdout] | ------------ required by a bound in this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/lib.rs:1129:38 [INFO] [stdout] | [INFO] [stdout] 1129 | let loc = Self::bit_loc(self.bits()); [INFO] [stdout] | ^^^^ cannot infer type for type parameter `Block` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] note: required by a bound in `NbitsVec::::bits` [INFO] [stdout] --> src/lib.rs:111:36 [INFO] [stdout] | [INFO] [stdout] 111 | impl NbitsVec { [INFO] [stdout] | ^^^^^^^ required by this bound in `NbitsVec::::bits` [INFO] [stdout] ... [INFO] [stdout] 523 | pub fn bits(&self) -> usize { [INFO] [stdout] | ---- required by a bound in this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/lib.rs:1261:25 [INFO] [stdout] | [INFO] [stdout] 1261 | Hash::hash(self.as_raw_slice(), state); [INFO] [stdout] | -----^^^^^^^^^^^^-- [INFO] [stdout] | | | [INFO] [stdout] | | cannot infer type for type parameter `Block` [INFO] [stdout] | this method call resolves to `&[Block]` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] note: required by a bound in `NbitsVec::::as_raw_slice` [INFO] [stdout] --> src/lib.rs:111:36 [INFO] [stdout] | [INFO] [stdout] 111 | impl NbitsVec { [INFO] [stdout] | ^^^^^^^ required by this bound in `NbitsVec::::as_raw_slice` [INFO] [stdout] ... [INFO] [stdout] 1097 | pub fn as_raw_slice(&self) -> &[Block] { [INFO] [stdout] | ------------ required by a bound in this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/lib.rs:1268:14 [INFO] [stdout] | [INFO] [stdout] 1268 | self.len() == other.len() && self.as_raw_slice() == other.as_raw_slice() [INFO] [stdout] | ^^^ cannot infer type for type parameter `Block` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] note: required by a bound in `NbitsVec::::len` [INFO] [stdout] --> src/lib.rs:111:36 [INFO] [stdout] | [INFO] [stdout] 111 | impl NbitsVec { [INFO] [stdout] | ^^^^^^^ required by this bound in `NbitsVec::::len` [INFO] [stdout] ... [INFO] [stdout] 504 | pub fn len(&self) -> usize { [INFO] [stdout] | --- required by a bound in this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/lib.rs:1272:14 [INFO] [stdout] | [INFO] [stdout] 1272 | self.len() != other.len() || self.as_raw_slice() == other.as_raw_slice() [INFO] [stdout] | ^^^ cannot infer type for type parameter `Block` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] note: required by a bound in `NbitsVec::::len` [INFO] [stdout] --> src/lib.rs:111:36 [INFO] [stdout] | [INFO] [stdout] 111 | impl NbitsVec { [INFO] [stdout] | ^^^^^^^ required by this bound in `NbitsVec::::len` [INFO] [stdout] ... [INFO] [stdout] 504 | pub fn len(&self) -> usize { [INFO] [stdout] | --- required by a bound in this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/lib.rs:1291:38 [INFO] [stdout] | [INFO] [stdout] 1291 | PartialOrd::partial_cmp(self.as_raw_slice(), other.as_raw_slice()) [INFO] [stdout] | ^^^^^^^^^^^^ -------------------- this method call resolves to `&[Block]` [INFO] [stdout] | | [INFO] [stdout] | cannot infer type for type parameter `Block` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] note: required by a bound in `NbitsVec::::as_raw_slice` [INFO] [stdout] --> src/lib.rs:111:36 [INFO] [stdout] | [INFO] [stdout] 111 | impl NbitsVec { [INFO] [stdout] | ^^^^^^^ required by this bound in `NbitsVec::::as_raw_slice` [INFO] [stdout] ... [INFO] [stdout] 1097 | pub fn as_raw_slice(&self) -> &[Block] { [INFO] [stdout] | ------------ required by a bound in this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/lib.rs:1297:23 [INFO] [stdout] | [INFO] [stdout] 1297 | Ord::cmp(self.as_raw_slice(), other.as_raw_slice()) [INFO] [stdout] | ^^^^^^^^^^^^ -------------------- this method call resolves to `&[Block]` [INFO] [stdout] | | [INFO] [stdout] | cannot infer type for type parameter `Block` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] note: required by a bound in `NbitsVec::::as_raw_slice` [INFO] [stdout] --> src/lib.rs:111:36 [INFO] [stdout] | [INFO] [stdout] 111 | impl NbitsVec { [INFO] [stdout] | ^^^^^^^ required by this bound in `NbitsVec::::as_raw_slice` [INFO] [stdout] ... [INFO] [stdout] 1097 | pub fn as_raw_slice(&self) -> &[Block] { [INFO] [stdout] | ------------ required by a bound in this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BitAnd` [INFO] [stdout] --> src/lib.rs:44:16 [INFO] [stdout] | [INFO] [stdout] 44 | use std::ops::{BitAnd, BitOr, Shl, Shr}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BitOr` [INFO] [stdout] --> src/lib.rs:44:24 [INFO] [stdout] | [INFO] [stdout] 44 | use std::ops::{BitAnd, BitOr, Shl, Shr}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Shl` [INFO] [stdout] --> src/lib.rs:44:31 [INFO] [stdout] | [INFO] [stdout] 44 | use std::ops::{BitAnd, BitOr, Shl, Shr}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Shr` [INFO] [stdout] --> src/lib.rs:44:36 [INFO] [stdout] | [INFO] [stdout] 44 | use std::ops::{BitAnd, BitOr, Shl, Shr}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 27 previous errors; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0283, E0308, E0603. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0283`. [INFO] [stdout] [INFO] [stderr] error: could not compile `nbits_vec` due to 28 previous errors; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "64f8b3f1a627c0d26c6ea9a35bd52981d257df3468bb9d30db5fd745d25f435f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64f8b3f1a627c0d26c6ea9a35bd52981d257df3468bb9d30db5fd745d25f435f", kill_on_drop: false }` [INFO] [stdout] 64f8b3f1a627c0d26c6ea9a35bd52981d257df3468bb9d30db5fd745d25f435f