[INFO] fetching crate nbits_vec 0.1.1... [INFO] checking nbits_vec-0.1.1 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate nbits_vec 0.1.1 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate nbits_vec 0.1.1 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "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-0-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 23 packages to latest compatible versions [INFO] [stderr] Adding clippy v0.0.33 (available: v0.0.302) [INFO] [stderr] Adding num v0.1.42 (available: v0.4.3) [INFO] [stderr] Adding num-bigint v0.1.44 (available: v0.4.6) [INFO] [stderr] Adding num-complex v0.1.43 (available: v0.4.6) [INFO] [stderr] Adding num-rational v0.1.42 (available: v0.4.2) [INFO] [stderr] Adding rand v0.4.6 (available: v0.8.5) [INFO] [stderr] Adding rand_core v0.3.1 (available: v0.6.4) [INFO] [stderr] Adding rand_core v0.4.2 (available: v0.6.4) [INFO] [stderr] Adding rdrand v0.4.0 (available: v0.8.3) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [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-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 040dcc4d84c71e639cfa06fdf48fbd59475b7842c8f4705f4666e00c5578d78b [INFO] running `Command { std: "docker" "start" "-a" "040dcc4d84c71e639cfa06fdf48fbd59475b7842c8f4705f4666e00c5578d78b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "040dcc4d84c71e639cfa06fdf48fbd59475b7842c8f4705f4666e00c5578d78b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "040dcc4d84c71e639cfa06fdf48fbd59475b7842c8f4705f4666e00c5578d78b", kill_on_drop: false }` [INFO] [stdout] 040dcc4d84c71e639cfa06fdf48fbd59475b7842c8f4705f4666e00c5578d78b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a968420f51329b83935dae27e49cbe9f43e4a50f5bee88617d804e9ba5c7119e [INFO] running `Command { std: "docker" "start" "-a" "a968420f51329b83935dae27e49cbe9f43e4a50f5bee88617d804e9ba5c7119e", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking rustc-serialize v0.3.25 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking num-bigint v0.1.44 [INFO] [stderr] Checking num-complex v0.1.43 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking 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] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/alloc/src/lib.rs:220:1 [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] warning: the feature `alloc` has been stable since 1.36.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | #![feature(alloc)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] = 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] = note: `#[warn(tyvar_behind_raw_pointer)]` on by default [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 _` [INFO] [stdout] --> src/lib.rs:984:17 [INFO] [stdout] | [INFO] [stdout] 984 | let ptr = self.raw_ptr().offset(bi as isize); [INFO] [stdout] | ^^^ ---- ------- required by a bound introduced by this call [INFO] [stdout] | | [INFO] [stdout] | type must be known at this point [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [INFO] [stdout] help: consider giving `ptr` an explicit type, where the type for type parameter `Block` is specified [INFO] [stdout] | [INFO] [stdout] 984 | let ptr: *const T = self.raw_ptr().offset(bi as isize); [INFO] [stdout] | ++++++++++ [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] | ^^^^^^^^^^^^ cannot infer type for type parameter `Block` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] | ^^^^^^^^^^^^ cannot infer type for type parameter `Block` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [INFO] [stdout] [INFO] [stdout] [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] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/alloc/src/lib.rs:220:1 [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] warning: unexpected `cfg` condition name: `build` [INFO] [stdout] --> src/tests.rs:91:35 [INFO] [stdout] | [INFO] [stdout] 91 | #[cfg(build = "debug")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 235 | / generate_test! { [INFO] [stdout] 236 | | (n1 N1 => u8 u16 u32 u64 usize) [INFO] [stdout] 237 | | (n2 N2 => u8 u16 u32 u64 usize) [INFO] [stdout] 238 | | (n3 N3 => u8 u16 u32 u64 usize) [INFO] [stdout] 239 | | (n4 N4 => u8 u16 u32 u64 usize) [INFO] [stdout] 240 | | (n8 N8 => u8 u16 u32 u64 usize) [INFO] [stdout] 241 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows` [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(build, values("debug"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(build, values(\"debug\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the macro `generate_test` (in Nightly builds, run with -Z macro-backtrace for more info) [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/lib.rs:1291:9 [INFO] [stdout] | [INFO] [stdout] 1291 | PartialOrd::partial_cmp(self.as_raw_slice(), other.as_raw_slice()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ---- ------------ required by a bound introduced by this call [INFO] [stdout] | | | [INFO] [stdout] | | type must be known at this point [INFO] [stdout] | cannot infer type of the type parameter `Rhs` declared on the trait `PartialOrd` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 1291 | PartialOrd::<[T]>::partial_cmp(self.as_raw_slice(), other.as_raw_slice()) [INFO] [stdout] | +++++++ [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] | ^^^^^^^^^^^^ cannot infer type for type parameter `Block` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] = note: `#[warn(unused_imports)]` on by default [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] [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] 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] error: aborting due to 22 previous errors; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0283, 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` (lib) due to 23 previous errors; 10 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: the feature `alloc` has been stable since 1.36.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | #![feature(alloc)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] = 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] = note: `#[warn(tyvar_behind_raw_pointer)]` on by default [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 _` [INFO] [stdout] --> src/lib.rs:984:17 [INFO] [stdout] | [INFO] [stdout] 984 | let ptr = self.raw_ptr().offset(bi as isize); [INFO] [stdout] | ^^^ ---- ------- required by a bound introduced by this call [INFO] [stdout] | | [INFO] [stdout] | type must be known at this point [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [INFO] [stdout] help: consider giving `ptr` an explicit type, where the type for type parameter `Block` is specified [INFO] [stdout] | [INFO] [stdout] 984 | let ptr: *const T = self.raw_ptr().offset(bi as isize); [INFO] [stdout] | ++++++++++ [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] | ^^^^^^^^^^^^ cannot infer type for type parameter `Block` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] | ^^^^^^^^^^^^ cannot infer type for type parameter `Block` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [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] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/lib.rs:1291:9 [INFO] [stdout] | [INFO] [stdout] 1291 | PartialOrd::partial_cmp(self.as_raw_slice(), other.as_raw_slice()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ---- ------------ required by a bound introduced by this call [INFO] [stdout] | | | [INFO] [stdout] | | type must be known at this point [INFO] [stdout] | cannot infer type of the type parameter `Rhs` declared on the trait `PartialOrd` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 1291 | PartialOrd::<[T]>::partial_cmp(self.as_raw_slice(), other.as_raw_slice()) [INFO] [stdout] | +++++++ [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] | ^^^^^^^^^^^^ cannot infer type for type parameter `Block` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/tests.rs:55:56 [INFO] [stdout] | [INFO] [stdout] 55 | assert_eq!(vec.get_raw_bit(i), true); [INFO] [stdout] | ^^^^^^^^^^^ cannot infer type [INFO] [stdout] ... [INFO] [stdout] 235 | / generate_test! { [INFO] [stdout] 236 | | (n1 N1 => u8 u16 u32 u64 usize) [INFO] [stdout] 237 | | (n2 N2 => u8 u16 u32 u64 usize) [INFO] [stdout] 238 | | (n3 N3 => u8 u16 u32 u64 usize) [INFO] [stdout] 239 | | (n4 N4 => u8 u16 u32 u64 usize) [INFO] [stdout] 240 | | (n8 N8 => u8 u16 u32 u64 usize) [INFO] [stdout] 241 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [INFO] [stdout] note: required by a bound in `NbitsVec::::get_raw_bit` [INFO] [stdout] --> src/lib.rs:111:36 [INFO] [stdout] | [INFO] [stdout] 111 | impl NbitsVec { [INFO] [stdout] | ^^^^^^^ required by this bound in `NbitsVec::::get_raw_bit` [INFO] [stdout] ... [INFO] [stdout] 1079 | pub unsafe fn get_raw_bit(&self, pos: usize) -> bool { [INFO] [stdout] | ----------- required by a bound in this associated function [INFO] [stdout] = note: this error originates in the macro `generate_test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/tests.rs:70:49 [INFO] [stdout] | [INFO] [stdout] 70 | vec.get_raw_bits(i, n); [INFO] [stdout] | ^^^^^^^^^^^^ cannot infer type [INFO] [stdout] ... [INFO] [stdout] 235 | / generate_test! { [INFO] [stdout] 236 | | (n1 N1 => u8 u16 u32 u64 usize) [INFO] [stdout] 237 | | (n2 N2 => u8 u16 u32 u64 usize) [INFO] [stdout] 238 | | (n3 N3 => u8 u16 u32 u64 usize) [INFO] [stdout] 239 | | (n4 N4 => u8 u16 u32 u64 usize) [INFO] [stdout] 240 | | (n8 N8 => u8 u16 u32 u64 usize) [INFO] [stdout] 241 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [INFO] [stdout] = note: this error originates in the macro `generate_test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/tests.rs:85:41 [INFO] [stdout] | [INFO] [stdout] 85 | vec.get_raw_bits(1, 1); [INFO] [stdout] | ^^^^^^^^^^^^ cannot infer type [INFO] [stdout] ... [INFO] [stdout] 235 | / generate_test! { [INFO] [stdout] 236 | | (n1 N1 => u8 u16 u32 u64 usize) [INFO] [stdout] 237 | | (n2 N2 => u8 u16 u32 u64 usize) [INFO] [stdout] 238 | | (n3 N3 => u8 u16 u32 u64 usize) [INFO] [stdout] 239 | | (n4 N4 => u8 u16 u32 u64 usize) [INFO] [stdout] 240 | | (n8 N8 => u8 u16 u32 u64 usize) [INFO] [stdout] 241 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [INFO] [stdout] = note: this error originates in the macro `generate_test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/tests.rs:107:48 [INFO] [stdout] | [INFO] [stdout] 107 | assert_eq!(vec.capacity(), 0); [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] ... [INFO] [stdout] 235 | / generate_test! { [INFO] [stdout] 236 | | (n1 N1 => u8 u16 u32 u64 usize) [INFO] [stdout] 237 | | (n2 N2 => u8 u16 u32 u64 usize) [INFO] [stdout] 238 | | (n3 N3 => u8 u16 u32 u64 usize) [INFO] [stdout] 239 | | (n4 N4 => u8 u16 u32 u64 usize) [INFO] [stdout] 240 | | (n8 N8 => u8 u16 u32 u64 usize) [INFO] [stdout] 241 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [INFO] [stdout] note: required by a bound in `NbitsVec::::capacity` [INFO] [stdout] --> src/lib.rs:111:36 [INFO] [stdout] | [INFO] [stdout] 111 | impl NbitsVec { [INFO] [stdout] | ^^^^^^^ required by this bound in `NbitsVec::::capacity` [INFO] [stdout] ... [INFO] [stdout] 220 | pub fn capacity(&self) -> usize { [INFO] [stdout] | -------- required by a bound in this associated function [INFO] [stdout] = note: this error originates in the macro `generate_test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/tests.rs:116:45 [INFO] [stdout] | [INFO] [stdout] 116 | assert!(vec.capacity() >= 1); [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] ... [INFO] [stdout] 235 | / generate_test! { [INFO] [stdout] 236 | | (n1 N1 => u8 u16 u32 u64 usize) [INFO] [stdout] 237 | | (n2 N2 => u8 u16 u32 u64 usize) [INFO] [stdout] 238 | | (n3 N3 => u8 u16 u32 u64 usize) [INFO] [stdout] 239 | | (n4 N4 => u8 u16 u32 u64 usize) [INFO] [stdout] 240 | | (n8 N8 => u8 u16 u32 u64 usize) [INFO] [stdout] 241 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [INFO] [stdout] note: required by a bound in `NbitsVec::::capacity` [INFO] [stdout] --> src/lib.rs:111:36 [INFO] [stdout] | [INFO] [stdout] 111 | impl NbitsVec { [INFO] [stdout] | ^^^^^^^ required by this bound in `NbitsVec::::capacity` [INFO] [stdout] ... [INFO] [stdout] 220 | pub fn capacity(&self) -> usize { [INFO] [stdout] | -------- required by a bound in this associated function [INFO] [stdout] = note: this error originates in the macro `generate_test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/tests.rs:136:48 [INFO] [stdout] | [INFO] [stdout] 136 | assert_eq!(vec.len(), 100); [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] ... [INFO] [stdout] 235 | / generate_test! { [INFO] [stdout] 236 | | (n1 N1 => u8 u16 u32 u64 usize) [INFO] [stdout] 237 | | (n2 N2 => u8 u16 u32 u64 usize) [INFO] [stdout] 238 | | (n3 N3 => u8 u16 u32 u64 usize) [INFO] [stdout] 239 | | (n4 N4 => u8 u16 u32 u64 usize) [INFO] [stdout] 240 | | (n8 N8 => u8 u16 u32 u64 usize) [INFO] [stdout] 241 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [INFO] [stdout] = note: this error originates in the macro `generate_test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/tests.rs:160:49 [INFO] [stdout] | [INFO] [stdout] 160 | let v = vec.get(i); [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] ... [INFO] [stdout] 235 | / generate_test! { [INFO] [stdout] 236 | | (n1 N1 => u8 u16 u32 u64 usize) [INFO] [stdout] 237 | | (n2 N2 => u8 u16 u32 u64 usize) [INFO] [stdout] 238 | | (n3 N3 => u8 u16 u32 u64 usize) [INFO] [stdout] 239 | | (n4 N4 => u8 u16 u32 u64 usize) [INFO] [stdout] 240 | | (n8 N8 => u8 u16 u32 u64 usize) [INFO] [stdout] 241 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [INFO] [stdout] note: required by a bound in `NbitsVec::::get` [INFO] [stdout] --> src/lib.rs:111:36 [INFO] [stdout] | [INFO] [stdout] 111 | impl NbitsVec { [INFO] [stdout] | ^^^^^^^ required by this bound in `NbitsVec::::get` [INFO] [stdout] ... [INFO] [stdout] 973 | pub fn get(&self, index: usize) -> Block { [INFO] [stdout] | --- required by a bound in this associated function [INFO] [stdout] = note: this error originates in the macro `generate_test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/tests.rs:171:56 [INFO] [stdout] | [INFO] [stdout] 171 | assert_eq!(vec.get(j), 0b111001 >> (i / 100) & NV::mask()); [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] ... [INFO] [stdout] 235 | / generate_test! { [INFO] [stdout] 236 | | (n1 N1 => u8 u16 u32 u64 usize) [INFO] [stdout] 237 | | (n2 N2 => u8 u16 u32 u64 usize) [INFO] [stdout] 238 | | (n3 N3 => u8 u16 u32 u64 usize) [INFO] [stdout] 239 | | (n4 N4 => u8 u16 u32 u64 usize) [INFO] [stdout] 240 | | (n8 N8 => u8 u16 u32 u64 usize) [INFO] [stdout] 241 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [INFO] [stdout] note: required by a bound in `NbitsVec::::get` [INFO] [stdout] --> src/lib.rs:111:36 [INFO] [stdout] | [INFO] [stdout] 111 | impl NbitsVec { [INFO] [stdout] | ^^^^^^^ required by this bound in `NbitsVec::::get` [INFO] [stdout] ... [INFO] [stdout] 973 | pub fn get(&self, index: usize) -> Block { [INFO] [stdout] | --- required by a bound in this associated function [INFO] [stdout] = note: this error originates in the macro `generate_test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/tests.rs:180:49 [INFO] [stdout] | [INFO] [stdout] 180 | let l = vec.len(); [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] ... [INFO] [stdout] 235 | / generate_test! { [INFO] [stdout] 236 | | (n1 N1 => u8 u16 u32 u64 usize) [INFO] [stdout] 237 | | (n2 N2 => u8 u16 u32 u64 usize) [INFO] [stdout] 238 | | (n3 N3 => u8 u16 u32 u64 usize) [INFO] [stdout] 239 | | (n4 N4 => u8 u16 u32 u64 usize) [INFO] [stdout] 240 | | (n8 N8 => u8 u16 u32 u64 usize) [INFO] [stdout] 241 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [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 associated function [INFO] [stdout] = note: this error originates in the macro `generate_test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/tests.rs:224:70 [INFO] [stdout] | [INFO] [stdout] 224 | println!("{} capacity: {}", i, j.capacity()); [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] ... [INFO] [stdout] 235 | / generate_test! { [INFO] [stdout] 236 | | (n1 N1 => u8 u16 u32 u64 usize) [INFO] [stdout] 237 | | (n2 N2 => u8 u16 u32 u64 usize) [INFO] [stdout] 238 | | (n3 N3 => u8 u16 u32 u64 usize) [INFO] [stdout] 239 | | (n4 N4 => u8 u16 u32 u64 usize) [INFO] [stdout] 240 | | (n8 N8 => u8 u16 u32 u64 usize) [INFO] [stdout] 241 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PrimInt` [INFO] [stdout] = help: the following types implement trait `PrimInt`: [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] i8 [INFO] [stdout] isize [INFO] [stdout] u128 [INFO] [stdout] u16 [INFO] [stdout] and 4 others [INFO] [stdout] note: required by a bound in `NbitsVec::::capacity` [INFO] [stdout] --> src/lib.rs:111:36 [INFO] [stdout] | [INFO] [stdout] 111 | impl NbitsVec { [INFO] [stdout] | ^^^^^^^ required by this bound in `NbitsVec::::capacity` [INFO] [stdout] ... [INFO] [stdout] 220 | pub fn capacity(&self) -> usize { [INFO] [stdout] | -------- required by a bound in this associated function [INFO] [stdout] = note: this error originates in the macro `generate_test` (in Nightly builds, run with -Z macro-backtrace for more info) [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] = note: `#[warn(unused_imports)]` on by default [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] [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] 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] error: aborting due to 32 previous errors; 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0283, 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` (lib test) due to 33 previous errors; 11 warnings emitted [INFO] running `Command { std: "docker" "inspect" "a968420f51329b83935dae27e49cbe9f43e4a50f5bee88617d804e9ba5c7119e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a968420f51329b83935dae27e49cbe9f43e4a50f5bee88617d804e9ba5c7119e", kill_on_drop: false }` [INFO] [stdout] a968420f51329b83935dae27e49cbe9f43e4a50f5bee88617d804e9ba5c7119e