[INFO] fetching crate bitwrap_extra 2.0.6... [INFO] checking bitwrap_extra-2.0.6 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate bitwrap_extra 2.0.6 into /workspace/builds/worker-7-tc1/source [INFO] validating manifest of crates.io crate bitwrap_extra 2.0.6 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 bitwrap_extra 2.0.6 [INFO] finished tweaking crates.io crate bitwrap_extra 2.0.6 [INFO] tweaked toml for crates.io crate bitwrap_extra 2.0.6 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate crates.io crate bitwrap_extra 2.0.6 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bitwrap_derive_extra v2.0.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 63a2d164116e8509c44210b3c748f6a865205ed93e23474925fddea0b04190bd [INFO] running `Command { std: "docker" "start" "-a" "63a2d164116e8509c44210b3c748f6a865205ed93e23474925fddea0b04190bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "63a2d164116e8509c44210b3c748f6a865205ed93e23474925fddea0b04190bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "63a2d164116e8509c44210b3c748f6a865205ed93e23474925fddea0b04190bd", kill_on_drop: false }` [INFO] [stdout] 63a2d164116e8509c44210b3c748f6a865205ed93e23474925fddea0b04190bd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] cf43664bbb96e47f46f83518331b7e0d70465316139a1a0d100df552c431a2c9 [INFO] running `Command { std: "docker" "start" "-a" "cf43664bbb96e47f46f83518331b7e0d70465316139a1a0d100df552c431a2c9", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.43 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling unicode-ident v1.0.3 [INFO] [stderr] Compiling syn v1.0.99 [INFO] [stderr] Compiling bitwrap_derive_extra v2.0.6 [INFO] [stderr] Checking bitwrap_extra v2.0.6 (/opt/rustwide/workdir) [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> tests/readme.rs:48:14 [INFO] [stdout] | [INFO] [stdout] 48 | #[derive(BitWrap)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: assertion `left == right` failed: bitwrap not aligned [INFO] [stdout] left: 7 [INFO] [stdout] right: 8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `data_len` in this scope [INFO] [stdout] --> tests/vec.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | #[bitfield(data_len)] [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `data_len` in this scope [INFO] [stdout] --> tests/vec.rs:34:20 [INFO] [stdout] | [INFO] [stdout] 34 | #[bitfield(data_len)] [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `vec` in this scope [INFO] [stdout] --> tests/convert.rs:56:23 [INFO] [stdout] | [INFO] [stdout] 56 | #[derive(Default, BitWrap)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BitWrap` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `vec` in this scope [INFO] [stdout] --> tests/no_std.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Default, BitWrap)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BitWrap` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `vec` in this scope [INFO] [stdout] --> tests/array.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Default, BitWrap)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BitWrap` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> tests/skip.rs:24:25 [INFO] [stdout] | [INFO] [stdout] 24 | let result = packet.pack(&mut buffer).unwrap(); [INFO] [stdout] | ^^^^ ----------- unexpected argument of type `&mut [u8; 2]` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | fn pack(&self) -> Result, BitWrapError>; [INFO] [stdout] | ^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 24 - let result = packet.pack(&mut buffer).unwrap(); [INFO] [stdout] 24 + let result = packet.pack().unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec` in this scope [INFO] [stdout] --> tests/convert.rs:56:23 [INFO] [stdout] | [INFO] [stdout] 56 | #[derive(Default, BitWrap)] [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BitWrap` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec` in this scope [INFO] [stdout] --> tests/no_std.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Default, BitWrap)] [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BitWrap` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec` in this scope [INFO] [stdout] --> tests/array.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Default, BitWrap)] [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BitWrap` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> tests/nested.rs:41:25 [INFO] [stdout] | [INFO] [stdout] 41 | let result = packet.pack(&mut buffer).unwrap(); [INFO] [stdout] | ^^^^ ----------- unexpected argument of type `&mut Vec` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | fn pack(&self) -> Result, BitWrapError>; [INFO] [stdout] | ^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 41 - let result = packet.pack(&mut buffer).unwrap(); [INFO] [stdout] 41 + let result = packet.pack().unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[u8]` cannot be indexed by `RangeTo>` [INFO] [stdout] --> tests/nested.rs:43:24 [INFO] [stdout] | [INFO] [stdout] 43 | assert_eq!(&buffer[.. result], DATA); [INFO] [stdout] | ^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[u8]>` is not implemented for `RangeTo>`, which is required by `Vec: Index<_>` [INFO] [stdout] = help: the following other types implement trait `SliceIndex`: [INFO] [stdout] `RangeTo` implements `SliceIndex<[T]>` [INFO] [stdout] `RangeTo` implements `SliceIndex` [INFO] [stdout] = note: required for `Vec` to implement `Index>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `dataType1` should have a snake case name [INFO] [stdout] --> examples/protocol_data_len.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | dataType1: u8, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `data_type1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `dataType2` should have a snake case name [INFO] [stdout] --> examples/protocol_data_len.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | dataType2: u8, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `data_type2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> tests/vec.rs:22:25 [INFO] [stdout] | [INFO] [stdout] 22 | let result = packet.pack(&mut buffer).unwrap(); [INFO] [stdout] | ^^^^ ----------- unexpected argument of type `&mut [u8; 5]` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | fn pack(&self) -> Result, BitWrapError>; [INFO] [stdout] | ^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 22 - let result = packet.pack(&mut buffer).unwrap(); [INFO] [stdout] 22 + let result = packet.pack().unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `Vec` with `usize` [INFO] [stdout] --> tests/skip.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | assert_eq!(result, DATA.len()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `Vec == usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq` is not implemented for `Vec` [INFO] [stdout] = help: the following other types implement trait `PartialEq`: [INFO] [stdout] `Vec` implements `PartialEq>` [INFO] [stdout] `Vec` implements `PartialEq<&[U; N]>` [INFO] [stdout] `Vec` implements `PartialEq<&[U]>` [INFO] [stdout] `Vec` implements `PartialEq<&mut [U]>` [INFO] [stdout] `Vec` implements `PartialEq<[U; N]>` [INFO] [stdout] `Vec` implements `PartialEq<[U]>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `Vec` with `usize` [INFO] [stdout] --> tests/vec.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | assert_eq!(result, DATA.len()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `Vec == usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq` is not implemented for `Vec` [INFO] [stdout] = help: the following other types implement trait `PartialEq`: [INFO] [stdout] `Vec` implements `PartialEq>` [INFO] [stdout] `Vec` implements `PartialEq<&[U; N]>` [INFO] [stdout] `Vec` implements `PartialEq<&[U]>` [INFO] [stdout] `Vec` implements `PartialEq<&mut [U]>` [INFO] [stdout] `Vec` implements `PartialEq<[U; N]>` [INFO] [stdout] `Vec` implements `PartialEq<[U]>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[u8]` cannot be indexed by `RangeTo>` [INFO] [stdout] --> tests/vec.rs:25:24 [INFO] [stdout] | [INFO] [stdout] 25 | assert_eq!(&buffer[.. result], DATA); [INFO] [stdout] | ^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[u8]>` is not implemented for `RangeTo>`, which is required by `[u8; 5]: Index<_>` [INFO] [stdout] = help: the following other types implement trait `SliceIndex`: [INFO] [stdout] `RangeTo` implements `SliceIndex<[T]>` [INFO] [stdout] `RangeTo` implements `SliceIndex` [INFO] [stdout] = note: required for `[u8]` to implement `Index>>` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[u8; 5]` to implement `Index>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[u8]` cannot be indexed by `RangeTo>` [INFO] [stdout] --> tests/skip.rs:27:24 [INFO] [stdout] | [INFO] [stdout] 27 | assert_eq!(&buffer[.. result], DATA); [INFO] [stdout] | ^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[u8]>` is not implemented for `RangeTo>`, which is required by `[u8; 2]: Index<_>` [INFO] [stdout] = help: the following other types implement trait `SliceIndex`: [INFO] [stdout] `RangeTo` implements `SliceIndex<[T]>` [INFO] [stdout] `RangeTo` implements `SliceIndex` [INFO] [stdout] = note: required for `[u8]` to implement `Index>>` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[u8; 2]` to implement `Index>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/protocol.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let mut buffer = vec![0 as u8; len]; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> tests/no_std.rs:32:25 [INFO] [stdout] | [INFO] [stdout] 32 | let result = packet.pack(&mut buffer).unwrap(); [INFO] [stdout] | ^^^^ ----------- unexpected argument of type `&mut [u8; 2]` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | fn pack(&self) -> Result, BitWrapError>; [INFO] [stdout] | ^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 32 - let result = packet.pack(&mut buffer).unwrap(); [INFO] [stdout] 32 + let result = packet.pack().unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `dataType1` should have a snake case name [INFO] [stdout] --> examples/protocol.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | dataType1: u8, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `data_type1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `dataType2` should have a snake case name [INFO] [stdout] --> examples/protocol.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | dataType2: u8, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `data_type2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> tests/array.rs:30:25 [INFO] [stdout] | [INFO] [stdout] 30 | let result = packet.pack(&mut buffer).unwrap(); [INFO] [stdout] | ^^^^ ----------- unexpected argument of type `&mut [u8; 5]` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | fn pack(&self) -> Result, BitWrapError>; [INFO] [stdout] | ^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 30 - let result = packet.pack(&mut buffer).unwrap(); [INFO] [stdout] 30 + let result = packet.pack().unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> tests/convert.rs:71:25 [INFO] [stdout] | [INFO] [stdout] 71 | let result = packet.pack(&mut buffer).unwrap(); [INFO] [stdout] | ^^^^ ----------- unexpected argument of type `&mut [u8; 1]` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | fn pack(&self) -> Result, BitWrapError>; [INFO] [stdout] | ^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 71 - let result = packet.pack(&mut buffer).unwrap(); [INFO] [stdout] 71 + let result = packet.pack().unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `alloc::vec::Vec` with `usize` [INFO] [stdout] --> tests/no_std.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | assert_eq!(result, DATA.len()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `alloc::vec::Vec == usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq` is not implemented for `alloc::vec::Vec` [INFO] [stdout] = help: the following other types implement trait `PartialEq`: [INFO] [stdout] `alloc::vec::Vec` implements `PartialEq>` [INFO] [stdout] `alloc::vec::Vec` implements `PartialEq<&[U; N]>` [INFO] [stdout] `alloc::vec::Vec` implements `PartialEq<&[U]>` [INFO] [stdout] `alloc::vec::Vec` implements `PartialEq<&mut [U]>` [INFO] [stdout] `alloc::vec::Vec` implements `PartialEq<[U; N]>` [INFO] [stdout] `alloc::vec::Vec` implements `PartialEq<[U]>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> tests/bits.rs:35:25 [INFO] [stdout] | [INFO] [stdout] 35 | let result = packet.pack(&mut buffer).unwrap(); [INFO] [stdout] | ^^^^ ----------- unexpected argument of type `&mut Vec` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | fn pack(&self) -> Result, BitWrapError>; [INFO] [stdout] | ^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 35 - let result = packet.pack(&mut buffer).unwrap(); [INFO] [stdout] 35 + let result = packet.pack().unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> tests/vec.rs:46:23 [INFO] [stdout] | [INFO] [stdout] 46 | assert_eq!(packet.pack(&mut buffer), Err(BitWrapError)); [INFO] [stdout] | ^^^^ ----------- unexpected argument of type `&mut [u8; 4]` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | fn pack(&self) -> Result, BitWrapError>; [INFO] [stdout] | ^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 46 - assert_eq!(packet.pack(&mut buffer), Err(BitWrapError)); [INFO] [stdout] 46 + assert_eq!(packet.pack(), Err(BitWrapError)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[u8]` cannot be indexed by `RangeTo>` [INFO] [stdout] --> tests/convert.rs:73:24 [INFO] [stdout] | [INFO] [stdout] 73 | assert_eq!(&buffer[.. result], DATA); [INFO] [stdout] | ^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[u8]>` is not implemented for `RangeTo>`, which is required by `[u8; 1]: Index<_>` [INFO] [stdout] = help: the following other types implement trait `SliceIndex`: [INFO] [stdout] `RangeTo` implements `SliceIndex<[T]>` [INFO] [stdout] `RangeTo` implements `SliceIndex` [INFO] [stdout] = note: required for `[u8]` to implement `Index>>` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[u8; 1]` to implement `Index>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `alloc::vec::Vec` with `usize` [INFO] [stdout] --> tests/array.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | assert_eq!(result, DATA.len()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `alloc::vec::Vec == usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq` is not implemented for `alloc::vec::Vec` [INFO] [stdout] = help: the following other types implement trait `PartialEq`: [INFO] [stdout] `alloc::vec::Vec` implements `PartialEq>` [INFO] [stdout] `alloc::vec::Vec` implements `PartialEq<&[U; N]>` [INFO] [stdout] `alloc::vec::Vec` implements `PartialEq<&[U]>` [INFO] [stdout] `alloc::vec::Vec` implements `PartialEq<&mut [U]>` [INFO] [stdout] `alloc::vec::Vec` implements `PartialEq<[U; N]>` [INFO] [stdout] `alloc::vec::Vec` implements `PartialEq<[U]>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `pack` found for struct `Ipv4Addr` in the current scope [INFO] [stdout] --> tests/nested.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(BitWrap)] [INFO] [stdout] | ^^^^^^^ method not found in `Ipv4Addr` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BitWrap` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `Vec` with `usize` [INFO] [stdout] --> tests/bits.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | assert_eq!(result, DATA.len()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `Vec == usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq` is not implemented for `Vec` [INFO] [stdout] = help: the following other types implement trait `PartialEq`: [INFO] [stdout] `Vec` implements `PartialEq>` [INFO] [stdout] `Vec` implements `PartialEq<&[U; N]>` [INFO] [stdout] `Vec` implements `PartialEq<&[U]>` [INFO] [stdout] `Vec` implements `PartialEq<&mut [U]>` [INFO] [stdout] `Vec` implements `PartialEq<[U; N]>` [INFO] [stdout] `Vec` implements `PartialEq<[U]>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[u8]` cannot be indexed by `RangeTo>` [INFO] [stdout] --> tests/bits.rs:38:24 [INFO] [stdout] | [INFO] [stdout] 38 | assert_eq!(&buffer[.. result], DATA); [INFO] [stdout] | ^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[u8]>` is not implemented for `RangeTo>`, which is required by `Vec: Index<_>` [INFO] [stdout] = help: the following other types implement trait `SliceIndex`: [INFO] [stdout] `RangeTo` implements `SliceIndex<[T]>` [INFO] [stdout] `RangeTo` implements `SliceIndex` [INFO] [stdout] = note: required for `Vec` to implement `Index>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/protocol_le.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let mut buffer = vec![0 as u8; len]; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `dataType1` should have a snake case name [INFO] [stdout] --> examples/protocol_le.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | dataType1: u8, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `data_type1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `dataType2` should have a snake case name [INFO] [stdout] --> examples/protocol_le.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | dataType2: u8, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `data_type2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `crc` [INFO] [stdout] --> examples/protocol_nested.rs:43:26 [INFO] [stdout] | [INFO] [stdout] 43 | #[bitfield(8, name = crc, value = self.crc())] [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_crc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `pack` found for enum `Coffee` in the current scope [INFO] [stdout] --> tests/convert.rs:56:23 [INFO] [stdout] | [INFO] [stdout] 15 | enum Coffee { [INFO] [stdout] | ----------- method `pack` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 56 | #[derive(Default, BitWrap)] [INFO] [stdout] | ^^^^^^^ method not found in `Coffee` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `pack`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `bitwrap_extra::BitWrapExt` [INFO] [stdout] = note: this error originates in the derive macro `BitWrap` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unpack` found for struct `Packet` in the current scope [INFO] [stdout] --> tests/readme.rs:96:25 [INFO] [stdout] | [INFO] [stdout] 49 | struct Packet { [INFO] [stdout] | ------------- method `unpack` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 96 | let result = packet.unpack(DATA).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Packet` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `unpack`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `BitWrapExt` [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 96 | let result = packet.data.unpack(DATA).unwrap(); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0412. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0412. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/protocol_nested.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let mut buffer = vec![0 as u8; len]; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `dataType1` should have a snake case name [INFO] [stdout] --> examples/protocol_nested.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | dataType1: u8, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `data_type1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `dataType2` should have a snake case name [INFO] [stdout] --> examples/protocol_nested.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | dataType2: u8, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `data_type2` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `bitwrap_extra` (test "vec") due to 7 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `bitwrap_extra` (test "skip") due to 4 previous errors [INFO] [stdout] error[E0599]: no method named `pack` found for struct `Packet` in the current scope [INFO] [stdout] --> tests/readme.rs:107:25 [INFO] [stdout] | [INFO] [stdout] 49 | struct Packet { [INFO] [stdout] | ------------- method `pack` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 107 | let result = packet.pack(&mut buffer).unwrap(); [INFO] [stdout] | ^^^^ method not found in `Packet` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `pack`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `BitWrapExt` [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 107 | let result = packet.data.pack(&mut buffer).unwrap(); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unpack` found for enum `Coffee` in the current scope [INFO] [stdout] --> tests/convert.rs:56:23 [INFO] [stdout] | [INFO] [stdout] 15 | enum Coffee { [INFO] [stdout] | ----------- method `unpack` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 56 | #[derive(Default, BitWrap)] [INFO] [stdout] | ^^^^^^^ method not found in `Coffee` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `unpack`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `bitwrap_extra::BitWrapExt` [INFO] [stdout] = note: this error originates in the derive macro `BitWrap` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unpack` found for struct `Ipv4Addr` in the current scope [INFO] [stdout] --> tests/nested.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(BitWrap)] [INFO] [stdout] | ^^^^^^^ method not found in `Ipv4Addr` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `BitWrap` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BitWrapExt` [INFO] [stdout] --> tests/readme.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | BitWrapExt, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `bitwrap_extra` (test "no_std") due to 5 previous errors [INFO] [stderr] error: could not compile `bitwrap_extra` (test "array") due to 5 previous errors [INFO] [stdout] error: aborting due to 3 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0412, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bitwrap_extra` (test "readme") due to 4 previous errors; 1 warning emitted [INFO] [stderr] error: could not compile `bitwrap_extra` (test "nested") due to 5 previous errors [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bitwrap_extra` (test "convert") due to 7 previous errors [INFO] [stderr] error: could not compile `bitwrap_extra` (test "bits") due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "cf43664bbb96e47f46f83518331b7e0d70465316139a1a0d100df552c431a2c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf43664bbb96e47f46f83518331b7e0d70465316139a1a0d100df552c431a2c9", kill_on_drop: false }` [INFO] [stdout] cf43664bbb96e47f46f83518331b7e0d70465316139a1a0d100df552c431a2c9