[INFO] fetching crate bitwrap_extra 2.0.6... [INFO] testing bitwrap_extra-2.0.6 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate bitwrap_extra 2.0.6 into /workspace/builds/worker-3-tc2/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-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate bitwrap_extra 2.0.6 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ed58f7b7aecae91386909abb9523eaa2f3b2e577fdee36b27b6e19d93312f0d1 [INFO] running `Command { std: "docker" "start" "-a" "ed58f7b7aecae91386909abb9523eaa2f3b2e577fdee36b27b6e19d93312f0d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ed58f7b7aecae91386909abb9523eaa2f3b2e577fdee36b27b6e19d93312f0d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed58f7b7aecae91386909abb9523eaa2f3b2e577fdee36b27b6e19d93312f0d1", kill_on_drop: false }` [INFO] [stdout] ed58f7b7aecae91386909abb9523eaa2f3b2e577fdee36b27b6e19d93312f0d1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b8fe6728b174504909ad23a062bbc900d22c4330217fc194dddd26c7af41b691 [INFO] running `Command { std: "docker" "start" "-a" "b8fe6728b174504909ad23a062bbc900d22c4330217fc194dddd26c7af41b691", 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 4.07s [INFO] running `Command { std: "docker" "inspect" "b8fe6728b174504909ad23a062bbc900d22c4330217fc194dddd26c7af41b691", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b8fe6728b174504909ad23a062bbc900d22c4330217fc194dddd26c7af41b691", kill_on_drop: false }` [INFO] [stdout] b8fe6728b174504909ad23a062bbc900d22c4330217fc194dddd26c7af41b691 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6d8145dc2c43cdfed5adb8fba410aa038b609b20311201e9f3c1753166657cec [INFO] running `Command { std: "docker" "start" "-a" "6d8145dc2c43cdfed5adb8fba410aa038b609b20311201e9f3c1753166657cec", kill_on_drop: false }` [INFO] [stderr] Compiling bitwrap_extra v2.0.6 (/opt/rustwide/workdir) [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[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: 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/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/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]: 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] --> /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/alloc/src/bstr.rs:667:0 [INFO] [stdout] | [INFO] [stdout] = note: `alloc::vec::Vec` implements `PartialEq` [INFO] [stdout] ::: /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/alloc/src/bstr.rs:523:0 [INFO] [stdout] | [INFO] [stdout] = note: `alloc::vec::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/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/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/bstr/traits.rs:271:0 [INFO] [stdout] | [INFO] [stdout] = note: `RangeTo` implements `SliceIndex` [INFO] [stdout] --> /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/slice/index.rs:503:0 [INFO] [stdout] | [INFO] [stdout] = note: `RangeTo` implements `SliceIndex<[T]>` [INFO] [stdout] --> /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/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] 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[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[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]: 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/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/bstr/traits.rs:271:0 [INFO] [stdout] | [INFO] [stdout] = note: `RangeTo` implements `SliceIndex` [INFO] [stdout] --> /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/slice/index.rs:503:0 [INFO] [stdout] | [INFO] [stdout] = note: `RangeTo` implements `SliceIndex<[T]>` [INFO] [stdout] --> /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/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] [stderr] error: could not compile `bitwrap_extra` (test "array") due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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[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] 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[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: 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] 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 "nested") due to 4 previous errors [INFO] [stderr] error: could not compile `bitwrap_extra` (test "convert") due to 6 previous errors [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[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] 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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [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)]` (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_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)]` (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_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] [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] [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[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] 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[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] [stderr] error: could not compile `bitwrap_extra` (test "readme") due to 3 previous errors [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [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] --> /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/alloc/src/bstr.rs:667:0 [INFO] [stdout] | [INFO] [stdout] = note: `alloc::vec::Vec` implements `PartialEq` [INFO] [stdout] ::: /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/alloc/src/bstr.rs:523:0 [INFO] [stdout] | [INFO] [stdout] = note: `alloc::vec::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, E0412. [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 "no_std") due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "6d8145dc2c43cdfed5adb8fba410aa038b609b20311201e9f3c1753166657cec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d8145dc2c43cdfed5adb8fba410aa038b609b20311201e9f3c1753166657cec", kill_on_drop: false }` [INFO] [stdout] 6d8145dc2c43cdfed5adb8fba410aa038b609b20311201e9f3c1753166657cec