[INFO] fetching crate sawp-modbus 0.1.1-rc.1... [INFO] checking sawp-modbus-0.1.1-rc.1 against master#4d0dd02ee07bddad9136f95c9f7846ebf3eb3fc5 for pr-81174 [INFO] extracting crate sawp-modbus 0.1.1-rc.1 into /workspace/builds/worker-12/source [INFO] validating manifest of crates.io crate sawp-modbus 0.1.1-rc.1 on toolchain 4d0dd02ee07bddad9136f95c9f7846ebf3eb3fc5 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4d0dd02ee07bddad9136f95c9f7846ebf3eb3fc5" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate sawp-modbus 0.1.1-rc.1 [INFO] finished tweaking crates.io crate sawp-modbus 0.1.1-rc.1 [INFO] tweaked toml for crates.io crate sawp-modbus 0.1.1-rc.1 written to /workspace/builds/worker-12/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4d0dd02ee07bddad9136f95c9f7846ebf3eb3fc5" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4d0dd02ee07bddad9136f95c9f7846ebf3eb3fc5" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+4d0dd02ee07bddad9136f95c9f7846ebf3eb3fc5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3ffe752001b6f672f360587f803322d58f1c9b1420f4ba4fdb9b63e0544bf5b1 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "3ffe752001b6f672f360587f803322d58f1c9b1420f4ba4fdb9b63e0544bf5b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3ffe752001b6f672f360587f803322d58f1c9b1420f4ba4fdb9b63e0544bf5b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3ffe752001b6f672f360587f803322d58f1c9b1420f4ba4fdb9b63e0544bf5b1", kill_on_drop: false }` [INFO] [stdout] 3ffe752001b6f672f360587f803322d58f1c9b1420f4ba4fdb9b63e0544bf5b1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+4d0dd02ee07bddad9136f95c9f7846ebf3eb3fc5" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 072fd5aa8797ba7b7f05e4171dd67a29b75552778818983cbae2112ae9d2eb00 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "072fd5aa8797ba7b7f05e4171dd67a29b75552778818983cbae2112ae9d2eb00", kill_on_drop: false }` [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling arrayvec v0.4.12 [INFO] [stderr] Checking nodrop v0.1.14 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling lexical-core v0.7.4 [INFO] [stderr] Checking static_assertions v0.3.4 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling nom v5.1.1 [INFO] [stderr] Compiling nom v6.1.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling lexical-core v0.6.2 [INFO] [stderr] Compiling rstest v0.6.4 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Checking sawp v0.1.1-rc.2 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling num_enum_derive v0.5.1 [INFO] [stderr] Checking num_enum v0.5.1 [INFO] [stderr] Checking sawp-modbus v0.1.1-rc.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:491:45 [INFO] [stdout] | [INFO] [stdout] 491 | let (input, exc_code) = be_u8(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:528:47 [INFO] [stdout] | [INFO] [stdout] 528 | let (input, diag_func) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:529:64 [INFO] [stdout] | [INFO] [stdout] 529 | let (input, rest) = take(self.data_length() - 2)(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:546:44 [INFO] [stdout] | [INFO] [stdout] 546 | let (input, raw_mei) = be_u8(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:548:64 [INFO] [stdout] | [INFO] [stdout] 548 | let (input, rest) = take(self.data_length() - 1)(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:559:60 [INFO] [stdout] | [INFO] [stdout] 559 | let (input, data) = take(self.data_length())(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:568:45 [INFO] [stdout] | [INFO] [stdout] 568 | let (input, address) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:569:46 [INFO] [stdout] | [INFO] [stdout] 569 | let (input, quantity) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:599:42 [INFO] [stdout] | [INFO] [stdout] 599 | let (input, count) = be_u8(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:609:64 [INFO] [stdout] | [INFO] [stdout] 609 | let (input, data) = take(self.data_length() - 1)(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:632:45 [INFO] [stdout] | [INFO] [stdout] 632 | let (input, address) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:635:46 [INFO] [stdout] | [INFO] [stdout] 635 | let (input, data) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:647:50 [INFO] [stdout] | [INFO] [stdout] 647 | let (input, quantity) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:648:46 [INFO] [stdout] | [INFO] [stdout] 648 | let (input, count) = be_u8(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:671:66 [INFO] [stdout] | [INFO] [stdout] 671 | let (input, data) = take(self.length - offset)(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:690:50 [INFO] [stdout] | [INFO] [stdout] 690 | let (input, and_mask) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:691:49 [INFO] [stdout] | [INFO] [stdout] 691 | let (input, or_mask) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:718:45 [INFO] [stdout] | [INFO] [stdout] 718 | let (input, address) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:721:46 [INFO] [stdout] | [INFO] [stdout] 721 | let (input, data) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:730:50 [INFO] [stdout] | [INFO] [stdout] 730 | let (input, quantity) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:752:50 [INFO] [stdout] | [INFO] [stdout] 752 | let (input, and_mask) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:753:49 [INFO] [stdout] | [INFO] [stdout] 753 | let (input, or_mask) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:1176:52 [INFO] [stdout] | [INFO] [stdout] 1176 | let (input, transaction_id) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:1177:49 [INFO] [stdout] | [INFO] [stdout] 1177 | let (input, protocol_id) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:1182:44 [INFO] [stdout] | [INFO] [stdout] 1182 | let (input, length) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `ExpectedNonZero` found for enum `sawp::error::ErrorKind` in the current scope [INFO] [stdout] --> src/lib.rs:1189:54 [INFO] [stdout] | [INFO] [stdout] 1189 | .ok_or_else(|| Error::new(ErrorKind::ExpectedNonZero(needed)))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ variant or associated item not found in `sawp::error::ErrorKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1190:57 [INFO] [stdout] | [INFO] [stdout] 1190 | return Err(Error::new(ErrorKind::Incomplete(nom::Needed::Size(needed)))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `sawp::error::Needed`, found enum `nom::Needed` [INFO] [stdout] | [INFO] [stdout] = note: perhaps two different versions of crate `nom` are being used? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:1193:44 [INFO] [stdout] | [INFO] [stdout] 1193 | let (input, unit_id) = be_u8(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:1194:45 [INFO] [stdout] | [INFO] [stdout] 1194 | let (input, raw_func) = be_u8(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 29 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sawp-modbus` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:491:45 [INFO] [stdout] | [INFO] [stdout] 491 | let (input, exc_code) = be_u8(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:528:47 [INFO] [stdout] | [INFO] [stdout] 528 | let (input, diag_func) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:529:64 [INFO] [stdout] | [INFO] [stdout] 529 | let (input, rest) = take(self.data_length() - 2)(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:546:44 [INFO] [stdout] | [INFO] [stdout] 546 | let (input, raw_mei) = be_u8(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:548:64 [INFO] [stdout] | [INFO] [stdout] 548 | let (input, rest) = take(self.data_length() - 1)(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:559:60 [INFO] [stdout] | [INFO] [stdout] 559 | let (input, data) = take(self.data_length())(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:568:45 [INFO] [stdout] | [INFO] [stdout] 568 | let (input, address) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:569:46 [INFO] [stdout] | [INFO] [stdout] 569 | let (input, quantity) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:599:42 [INFO] [stdout] | [INFO] [stdout] 599 | let (input, count) = be_u8(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:609:64 [INFO] [stdout] | [INFO] [stdout] 609 | let (input, data) = take(self.data_length() - 1)(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:632:45 [INFO] [stdout] | [INFO] [stdout] 632 | let (input, address) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:635:46 [INFO] [stdout] | [INFO] [stdout] 635 | let (input, data) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:647:50 [INFO] [stdout] | [INFO] [stdout] 647 | let (input, quantity) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:648:46 [INFO] [stdout] | [INFO] [stdout] 648 | let (input, count) = be_u8(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:671:66 [INFO] [stdout] | [INFO] [stdout] 671 | let (input, data) = take(self.length - offset)(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:690:50 [INFO] [stdout] | [INFO] [stdout] 690 | let (input, and_mask) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:691:49 [INFO] [stdout] | [INFO] [stdout] 691 | let (input, or_mask) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:718:45 [INFO] [stdout] | [INFO] [stdout] 718 | let (input, address) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:721:46 [INFO] [stdout] | [INFO] [stdout] 721 | let (input, data) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:730:50 [INFO] [stdout] | [INFO] [stdout] 730 | let (input, quantity) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:752:50 [INFO] [stdout] | [INFO] [stdout] 752 | let (input, and_mask) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:753:49 [INFO] [stdout] | [INFO] [stdout] 753 | let (input, or_mask) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:1176:52 [INFO] [stdout] | [INFO] [stdout] 1176 | let (input, transaction_id) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:1177:49 [INFO] [stdout] | [INFO] [stdout] 1177 | let (input, protocol_id) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:1182:44 [INFO] [stdout] | [INFO] [stdout] 1182 | let (input, length) = be_u16(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `ExpectedNonZero` found for enum `sawp::error::ErrorKind` in the current scope [INFO] [stdout] --> src/lib.rs:1189:54 [INFO] [stdout] | [INFO] [stdout] 1189 | .ok_or_else(|| Error::new(ErrorKind::ExpectedNonZero(needed)))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ variant or associated item not found in `sawp::error::ErrorKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1190:57 [INFO] [stdout] | [INFO] [stdout] 1190 | return Err(Error::new(ErrorKind::Incomplete(nom::Needed::Size(needed)))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `sawp::error::Needed`, found enum `nom::Needed` [INFO] [stdout] | [INFO] [stdout] = note: perhaps two different versions of crate `nom` are being used? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:1193:44 [INFO] [stdout] | [INFO] [stdout] 1193 | let (input, unit_id) = be_u8(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `sawp::error::Error` [INFO] [stdout] --> src/lib.rs:1194:45 [INFO] [stdout] | [INFO] [stdout] 1194 | let (input, raw_func) = be_u8(input)?; [INFO] [stdout] | ^ the trait `From>` is not implemented for `sawp::error::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1237:66 [INFO] [stdout] | [INFO] [stdout] 1237 | case::empty(b"", Err(Error { kind: ErrorKind::Incomplete(nom::Needed::Size(NonZeroUsize::new(2).unwrap())) })), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `sawp::error::Needed`, found enum `nom::Needed` [INFO] [stdout] | [INFO] [stdout] = note: perhaps two different versions of crate `nom` are being used? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1458:50 [INFO] [stdout] | [INFO] [stdout] 1458 | Err(Error::new(ErrorKind::Incomplete(nom::Needed::Size(NonZeroUsize::new(1).unwrap())))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `sawp::error::Needed`, found enum `nom::Needed` [INFO] [stdout] | [INFO] [stdout] = note: perhaps two different versions of crate `nom` are being used? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1746:53 [INFO] [stdout] | [INFO] [stdout] 1746 | Err(Error { kind: ErrorKind::Incomplete(nom::Needed::Size(NonZeroUsize::new(1).unwrap())) }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `sawp::error::Needed`, found enum `nom::Needed` [INFO] [stdout] | [INFO] [stdout] = note: perhaps two different versions of crate `nom` are being used? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1822:53 [INFO] [stdout] | [INFO] [stdout] 1822 | Err(Error { kind: ErrorKind::Incomplete(nom::Needed::Size(NonZeroUsize::new(2).unwrap())) }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `sawp::error::Needed`, found enum `nom::Needed` [INFO] [stdout] | [INFO] [stdout] = note: perhaps two different versions of crate `nom` are being used? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 33 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "072fd5aa8797ba7b7f05e4171dd67a29b75552778818983cbae2112ae9d2eb00", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "072fd5aa8797ba7b7f05e4171dd67a29b75552778818983cbae2112ae9d2eb00", kill_on_drop: false }` [INFO] [stdout] 072fd5aa8797ba7b7f05e4171dd67a29b75552778818983cbae2112ae9d2eb00