[INFO] fetching crate bitwrap_extra 2.0.6... [INFO] testing bitwrap_extra-2.0.6 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7 [INFO] extracting crate bitwrap_extra 2.0.6 into /workspace/builds/worker-3-tc1/source [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-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate bitwrap_extra 2.0.6 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "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-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 54f05410984883e9d2adb98aa7fb9341564249d96426232f38ac054573b70775 [INFO] running `Command { std: "docker" "start" "-a" "54f05410984883e9d2adb98aa7fb9341564249d96426232f38ac054573b70775", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "54f05410984883e9d2adb98aa7fb9341564249d96426232f38ac054573b70775", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "54f05410984883e9d2adb98aa7fb9341564249d96426232f38ac054573b70775", kill_on_drop: false }` [INFO] [stdout] 54f05410984883e9d2adb98aa7fb9341564249d96426232f38ac054573b70775 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 74cf28343c63ad79219abbffed1166f68176c57288ebaea6153aedef34493464 [INFO] running `Command { std: "docker" "start" "-a" "74cf28343c63ad79219abbffed1166f68176c57288ebaea6153aedef34493464", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.99 [INFO] [stderr] Compiling bitwrap_derive_extra v2.0.6 [INFO] [stderr] Compiling bitwrap_extra v2.0.6 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.85s [INFO] running `Command { std: "docker" "inspect" "74cf28343c63ad79219abbffed1166f68176c57288ebaea6153aedef34493464", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74cf28343c63ad79219abbffed1166f68176c57288ebaea6153aedef34493464", kill_on_drop: false }` [INFO] [stdout] 74cf28343c63ad79219abbffed1166f68176c57288ebaea6153aedef34493464 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f9c123e748dc9a4d93698b92c6c7820a4ba417d201303b156b4b9664f483232d [INFO] running `Command { std: "docker" "start" "-a" "f9c123e748dc9a4d93698b92c6c7820a4ba417d201303b156b4b9664f483232d", kill_on_drop: false }` [INFO] [stderr] Compiling bitwrap_extra v2.0.6 (/opt/rustwide/workdir) [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>` [INFO] [stdout] help: the following other types implement trait `SliceIndex` [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/bstr/traits.rs:271:0 [INFO] [stdout] | [INFO] [stdout] = note: `RangeTo` implements `SliceIndex` [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/slice/index.rs:503:0 [INFO] [stdout] | [INFO] [stdout] = note: `RangeTo` implements `SliceIndex<[T]>` [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/str/traits.rs:442:0 [INFO] [stdout] | [INFO] [stdout] = note: `RangeTo` implements `SliceIndex` [INFO] [stdout] = note: required for `Vec` to implement `Index>>` [INFO] [stdout] = note: this error originates in the macro `impl_slice_index` (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[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[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] 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] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/alloc/src/bstr.rs:667:0 [INFO] [stdout] | [INFO] [stdout] = note: `Vec` implements `PartialEq` [INFO] [stdout] ::: /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/alloc/src/bstr.rs:523:0 [INFO] [stdout] | [INFO] [stdout] = note: `Vec` implements `PartialEq` [INFO] [stdout] = note: this error originates in the macro `assert_eq` which comes from the expansion of the macro `impl_partial_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [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[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>` [INFO] [stdout] help: the following other types implement trait `SliceIndex` [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/bstr/traits.rs:271:0 [INFO] [stdout] | [INFO] [stdout] = note: `RangeTo` implements `SliceIndex` [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/slice/index.rs:503:0 [INFO] [stdout] | [INFO] [stdout] = note: `RangeTo` implements `SliceIndex<[T]>` [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/str/traits.rs:442:0 [INFO] [stdout] | [INFO] [stdout] = note: `RangeTo` implements `SliceIndex` [INFO] [stdout] = note: required for `Vec` to implement `Index>>` [INFO] [stdout] = note: this error originates in the macro `impl_slice_index` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `bitwrap_extra` (test "nested") due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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[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[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[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] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/alloc/src/bstr.rs:667:0 [INFO] [stdout] | [INFO] [stdout] = note: `Vec` implements `PartialEq` [INFO] [stdout] ::: /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/alloc/src/bstr.rs:523:0 [INFO] [stdout] | [INFO] [stdout] = note: `Vec` implements `PartialEq` [INFO] [stdout] = note: this error originates in the macro `assert_eq` which comes from the expansion of the macro `impl_partial_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [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[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>` [INFO] [stdout] help: the following other types implement trait `SliceIndex` [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/bstr/traits.rs:271:0 [INFO] [stdout] | [INFO] [stdout] = note: `RangeTo` implements `SliceIndex` [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/slice/index.rs:503:0 [INFO] [stdout] | [INFO] [stdout] = note: `RangeTo` implements `SliceIndex<[T]>` [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/str/traits.rs:442:0 [INFO] [stdout] | [INFO] [stdout] = note: `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] = note: this error originates in the macro `impl_slice_index` (in Nightly builds, run with -Z macro-backtrace for more info) [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] [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(nonstandard_style)]`) 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] Some errors have detailed explanations: E0061, E0277. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [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] 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] 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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `bitwrap_extra` (test "bits") due to 3 previous errors [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)]` (part of `#[warn(nonstandard_style)]`) 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[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>` [INFO] [stdout] help: the following other types implement trait `SliceIndex` [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/bstr/traits.rs:271:0 [INFO] [stdout] | [INFO] [stdout] = note: `RangeTo` implements `SliceIndex` [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/slice/index.rs:503:0 [INFO] [stdout] | [INFO] [stdout] = note: `RangeTo` implements `SliceIndex<[T]>` [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/str/traits.rs:442:0 [INFO] [stdout] | [INFO] [stdout] = note: `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] = note: this error originates in the macro `impl_slice_index` (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/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] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/alloc/src/bstr.rs:667:0 [INFO] [stdout] | [INFO] [stdout] = note: `Vec` implements `PartialEq` [INFO] [stdout] ::: /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/alloc/src/bstr.rs:523:0 [INFO] [stdout] | [INFO] [stdout] = note: `Vec` implements `PartialEq` [INFO] [stdout] = note: this error originates in the macro `assert_eq` which comes from the expansion of the macro `impl_partial_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>` [INFO] [stdout] help: the following other types implement trait `SliceIndex` [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/bstr/traits.rs:271:0 [INFO] [stdout] | [INFO] [stdout] = note: `RangeTo` implements `SliceIndex` [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/slice/index.rs:503:0 [INFO] [stdout] | [INFO] [stdout] = note: `RangeTo` implements `SliceIndex<[T]>` [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/str/traits.rs:442:0 [INFO] [stdout] | [INFO] [stdout] = note: `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] = note: this error originates in the macro `impl_slice_index` (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 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[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[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] 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 "skip") due to 3 previous errors [INFO] [stderr] error: could not compile `bitwrap_extra` (test "convert") due to 6 previous errors [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] [stderr] error: could not compile `bitwrap_extra` (test "vec") due to 6 previous errors [INFO] running `Command { std: "docker" "inspect" "f9c123e748dc9a4d93698b92c6c7820a4ba417d201303b156b4b9664f483232d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f9c123e748dc9a4d93698b92c6c7820a4ba417d201303b156b4b9664f483232d", kill_on_drop: false }` [INFO] [stdout] f9c123e748dc9a4d93698b92c6c7820a4ba417d201303b156b4b9664f483232d