[INFO] fetching crate serial2 0.2.29... [INFO] testing serial2-0.2.29 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate serial2 0.2.29 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate serial2 0.2.29 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate serial2 0.2.29 [INFO] tweaked toml for crates.io crate serial2 0.2.29 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate serial2 0.2.29 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate serial2 0.2.29 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded proc-macro2 v1.0.70 [INFO] [stderr] Downloaded semver v1.0.20 [INFO] [stderr] Downloaded assert2-macros v0.3.11 [INFO] [stderr] Downloaded assert2 v0.3.11 [INFO] [stderr] Downloaded rustix v0.38.26 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 622681c028f11fd51a436ed635487db4cb20ce9c7c2beee6867b85dcc1ffd2d3 [INFO] running `Command { std: "docker" "start" "-a" "622681c028f11fd51a436ed635487db4cb20ce9c7c2beee6867b85dcc1ffd2d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "622681c028f11fd51a436ed635487db4cb20ce9c7c2beee6867b85dcc1ffd2d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "622681c028f11fd51a436ed635487db4cb20ce9c7c2beee6867b85dcc1ffd2d3", kill_on_drop: false }` [INFO] [stdout] 622681c028f11fd51a436ed635487db4cb20ce9c7c2beee6867b85dcc1ffd2d3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 2bc764d24d297c489abbbe30d4e22686372e7469ebbf88df66abd2d22eee7e81 [INFO] running `Command { std: "docker" "start" "-a" "2bc764d24d297c489abbbe30d4e22686372e7469ebbf88df66abd2d22eee7e81", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling serial2 v0.2.29 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.75s [INFO] running `Command { std: "docker" "inspect" "2bc764d24d297c489abbbe30d4e22686372e7469ebbf88df66abd2d22eee7e81", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2bc764d24d297c489abbbe30d4e22686372e7469ebbf88df66abd2d22eee7e81", kill_on_drop: false }` [INFO] [stdout] 2bc764d24d297c489abbbe30d4e22686372e7469ebbf88df66abd2d22eee7e81 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] f3715c897dcbb424e2edadd5fca3fe39670d30b70cb250df31b0ffc72c07e4ca [INFO] running `Command { std: "docker" "start" "-a" "f3715c897dcbb424e2edadd5fca3fe39670d30b70cb250df31b0ffc72c07e4ca", kill_on_drop: false }` [INFO] [stderr] Compiling semver v1.0.20 [INFO] [stderr] Compiling proc-macro2 v1.0.70 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling rustix v0.38.26 [INFO] [stderr] Compiling bitflags v2.4.1 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Compiling linux-raw-sys v0.4.12 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Compiling ryu v1.0.15 [INFO] [stderr] Compiling yansi v0.5.1 [INFO] [stderr] Compiling itoa v1.0.9 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling assert2-macros v0.3.11 [INFO] [stderr] Compiling is-terminal v0.4.9 [INFO] [stderr] Compiling assert2 v0.3.11 [INFO] [stderr] Compiling serial2 v0.2.29 (/opt/rustwide/workdir) [INFO] [stdout] error[E0277]: the trait bound `CharSize: serde::ser::Serialize` is not satisfied [INFO] [stdout] --> tests/serde.rs:5:46 [INFO] [stdout] | [INFO] [stdout] 5 | assert!(let Ok("5") = serde_json::to_string(&serial2::CharSize::Bits5).as_deref()); [INFO] [stdout] | --------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `serde::ser::Serialize` is not implemented for `CharSize` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::ser::Serialize`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::to_string` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/ser.rs:2209:17 [INFO] [stdout] | [INFO] [stdout] 2207 | pub fn to_string(value: &T) -> Result [INFO] [stdout] | --------- required by a bound in this function [INFO] [stdout] 2208 | where [INFO] [stdout] 2209 | T: ?Sized + Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `CharSize: serde::ser::Serialize` is not satisfied [INFO] [stdout] --> tests/serde.rs:6:46 [INFO] [stdout] | [INFO] [stdout] 6 | assert!(let Ok("6") = serde_json::to_string(&serial2::CharSize::Bits6).as_deref()); [INFO] [stdout] | --------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `serde::ser::Serialize` is not implemented for `CharSize` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::ser::Serialize`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::to_string` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/ser.rs:2209:17 [INFO] [stdout] | [INFO] [stdout] 2207 | pub fn to_string(value: &T) -> Result [INFO] [stdout] | --------- required by a bound in this function [INFO] [stdout] 2208 | where [INFO] [stdout] 2209 | T: ?Sized + Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `CharSize: serde::ser::Serialize` is not satisfied [INFO] [stdout] --> tests/serde.rs:7:46 [INFO] [stdout] | [INFO] [stdout] 7 | assert!(let Ok("7") = serde_json::to_string(&serial2::CharSize::Bits7).as_deref()); [INFO] [stdout] | --------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `serde::ser::Serialize` is not implemented for `CharSize` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::ser::Serialize`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::to_string` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/ser.rs:2209:17 [INFO] [stdout] | [INFO] [stdout] 2207 | pub fn to_string(value: &T) -> Result [INFO] [stdout] | --------- required by a bound in this function [INFO] [stdout] 2208 | where [INFO] [stdout] 2209 | T: ?Sized + Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `CharSize: serde::ser::Serialize` is not satisfied [INFO] [stdout] --> tests/serde.rs:8:46 [INFO] [stdout] | [INFO] [stdout] 8 | assert!(let Ok("8") = serde_json::to_string(&serial2::CharSize::Bits8).as_deref()); [INFO] [stdout] | --------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `serde::ser::Serialize` is not implemented for `CharSize` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::ser::Serialize`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::to_string` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/ser.rs:2209:17 [INFO] [stdout] | [INFO] [stdout] 2207 | pub fn to_string(value: &T) -> Result [INFO] [stdout] | --------- required by a bound in this function [INFO] [stdout] 2208 | where [INFO] [stdout] 2209 | T: ?Sized + Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `CharSize: serde::de::Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/serde.rs:10:68 [INFO] [stdout] | [INFO] [stdout] 10 | assert!(let Ok(serial2::CharSize::Bits5) = serde_json::from_str::("5")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the trait `serde::de::Deserialize<'_>` is not implemented for `CharSize` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::de::Deserialize<'de>`: [INFO] [stdout] &'a Path [INFO] [stdout] &'a [u8] [INFO] [stdout] &'a str [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::from_str` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/de.rs:2675:8 [INFO] [stdout] | [INFO] [stdout] 2673 | pub fn from_str<'a, T>(s: &'a str) -> Result [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] 2674 | where [INFO] [stdout] 2675 | T: de::Deserialize<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `pair` found for struct `SerialPort` in the current scope [INFO] [stdout] --> tests/pair.rs:8:39 [INFO] [stdout] | [INFO] [stdout] 8 | let_assert!(Ok((a, b)) = SerialPort::pair()); [INFO] [stdout] | ^^^^ function or associated item not found in `SerialPort` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `SerialPort`, consider using `SerialPort::open` which returns `Result` [INFO] [stdout] --> /opt/rustwide/workdir/src/serial_port.rs:53:2 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn open(name: impl AsRef, settings: impl IntoSettings) -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `CharSize: serde::de::Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/serde.rs:11:68 [INFO] [stdout] | [INFO] [stdout] 11 | assert!(let Ok(serial2::CharSize::Bits6) = serde_json::from_str::("6")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the trait `serde::de::Deserialize<'_>` is not implemented for `CharSize` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::de::Deserialize<'de>`: [INFO] [stdout] &'a Path [INFO] [stdout] &'a [u8] [INFO] [stdout] &'a str [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::from_str` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/de.rs:2675:8 [INFO] [stdout] | [INFO] [stdout] 2673 | pub fn from_str<'a, T>(s: &'a str) -> Result [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] 2674 | where [INFO] [stdout] 2675 | T: de::Deserialize<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `CharSize: serde::de::Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/serde.rs:12:68 [INFO] [stdout] | [INFO] [stdout] 12 | assert!(let Ok(serial2::CharSize::Bits7) = serde_json::from_str::("7")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the trait `serde::de::Deserialize<'_>` is not implemented for `CharSize` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::de::Deserialize<'de>`: [INFO] [stdout] &'a Path [INFO] [stdout] &'a [u8] [INFO] [stdout] &'a str [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::from_str` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/de.rs:2675:8 [INFO] [stdout] | [INFO] [stdout] 2673 | pub fn from_str<'a, T>(s: &'a str) -> Result [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] 2674 | where [INFO] [stdout] 2675 | T: de::Deserialize<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `CharSize: serde::de::Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/serde.rs:13:68 [INFO] [stdout] | [INFO] [stdout] 13 | assert!(let Ok(serial2::CharSize::Bits8) = serde_json::from_str::("8")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the trait `serde::de::Deserialize<'_>` is not implemented for `CharSize` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::de::Deserialize<'de>`: [INFO] [stdout] &'a Path [INFO] [stdout] &'a [u8] [INFO] [stdout] &'a str [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::from_str` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/de.rs:2675:8 [INFO] [stdout] | [INFO] [stdout] 2673 | pub fn from_str<'a, T>(s: &'a str) -> Result [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] 2674 | where [INFO] [stdout] 2675 | T: de::Deserialize<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `CharSize: serde::de::Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/serde.rs:15:46 [INFO] [stdout] | [INFO] [stdout] 15 | let_assert!(Err(e) = serde_json::from_str::("4")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the trait `serde::de::Deserialize<'_>` is not implemented for `CharSize` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::de::Deserialize<'de>`: [INFO] [stdout] &'a Path [INFO] [stdout] &'a [u8] [INFO] [stdout] &'a str [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::from_str` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/de.rs:2675:8 [INFO] [stdout] | [INFO] [stdout] 2673 | pub fn from_str<'a, T>(s: &'a str) -> Result [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] 2674 | where [INFO] [stdout] 2675 | T: de::Deserialize<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `CharSize: serde::de::Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/serde.rs:18:46 [INFO] [stdout] | [INFO] [stdout] 18 | let_assert!(Err(e) = serde_json::from_str::("9")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the trait `serde::de::Deserialize<'_>` is not implemented for `CharSize` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::de::Deserialize<'de>`: [INFO] [stdout] &'a Path [INFO] [stdout] &'a [u8] [INFO] [stdout] &'a str [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::from_str` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/de.rs:2675:8 [INFO] [stdout] | [INFO] [stdout] 2673 | pub fn from_str<'a, T>(s: &'a str) -> Result [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] 2674 | where [INFO] [stdout] 2675 | T: de::Deserialize<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `CharSize: serde::de::Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/serde.rs:21:46 [INFO] [stdout] | [INFO] [stdout] 21 | let_assert!(Err(e) = serde_json::from_str::("\"5\"")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the trait `serde::de::Deserialize<'_>` is not implemented for `CharSize` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::de::Deserialize<'de>`: [INFO] [stdout] &'a Path [INFO] [stdout] &'a [u8] [INFO] [stdout] &'a str [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::from_str` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/de.rs:2675:8 [INFO] [stdout] | [INFO] [stdout] 2673 | pub fn from_str<'a, T>(s: &'a str) -> Result [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] 2674 | where [INFO] [stdout] 2675 | T: de::Deserialize<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `StopBits: serde::ser::Serialize` is not satisfied [INFO] [stdout] --> tests/serde.rs:27:46 [INFO] [stdout] | [INFO] [stdout] 27 | assert!(let Ok("1") = serde_json::to_string(&serial2::StopBits::One).as_deref()); [INFO] [stdout] | --------------------- ^^^^^^^^^^^^^^^^^^^^^^^ the trait `serde::ser::Serialize` is not implemented for `StopBits` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::ser::Serialize`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::to_string` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/ser.rs:2209:17 [INFO] [stdout] | [INFO] [stdout] 2207 | pub fn to_string(value: &T) -> Result [INFO] [stdout] | --------- required by a bound in this function [INFO] [stdout] 2208 | where [INFO] [stdout] 2209 | T: ?Sized + Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `StopBits: serde::ser::Serialize` is not satisfied [INFO] [stdout] --> tests/serde.rs:28:46 [INFO] [stdout] | [INFO] [stdout] 28 | assert!(let Ok("2") = serde_json::to_string(&serial2::StopBits::Two).as_deref()); [INFO] [stdout] | --------------------- ^^^^^^^^^^^^^^^^^^^^^^^ the trait `serde::ser::Serialize` is not implemented for `StopBits` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::ser::Serialize`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::to_string` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/ser.rs:2209:17 [INFO] [stdout] | [INFO] [stdout] 2207 | pub fn to_string(value: &T) -> Result [INFO] [stdout] | --------- required by a bound in this function [INFO] [stdout] 2208 | where [INFO] [stdout] 2209 | T: ?Sized + Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `StopBits: serde::de::Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/serde.rs:30:66 [INFO] [stdout] | [INFO] [stdout] 30 | assert!(let Ok(serial2::StopBits::One) = serde_json::from_str::("1")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the trait `serde::de::Deserialize<'_>` is not implemented for `StopBits` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::de::Deserialize<'de>`: [INFO] [stdout] &'a Path [INFO] [stdout] &'a [u8] [INFO] [stdout] &'a str [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::from_str` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/de.rs:2675:8 [INFO] [stdout] | [INFO] [stdout] 2673 | pub fn from_str<'a, T>(s: &'a str) -> Result [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] 2674 | where [INFO] [stdout] 2675 | T: de::Deserialize<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `StopBits: serde::de::Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/serde.rs:31:66 [INFO] [stdout] | [INFO] [stdout] 31 | assert!(let Ok(serial2::StopBits::Two) = serde_json::from_str::("2")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the trait `serde::de::Deserialize<'_>` is not implemented for `StopBits` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::de::Deserialize<'de>`: [INFO] [stdout] &'a Path [INFO] [stdout] &'a [u8] [INFO] [stdout] &'a str [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::from_str` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/de.rs:2675:8 [INFO] [stdout] | [INFO] [stdout] 2673 | pub fn from_str<'a, T>(s: &'a str) -> Result [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] 2674 | where [INFO] [stdout] 2675 | T: de::Deserialize<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `StopBits: serde::de::Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/serde.rs:33:46 [INFO] [stdout] | [INFO] [stdout] 33 | let_assert!(Err(e) = serde_json::from_str::("0")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the trait `serde::de::Deserialize<'_>` is not implemented for `StopBits` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::de::Deserialize<'de>`: [INFO] [stdout] &'a Path [INFO] [stdout] &'a [u8] [INFO] [stdout] &'a str [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::from_str` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/de.rs:2675:8 [INFO] [stdout] | [INFO] [stdout] 2673 | pub fn from_str<'a, T>(s: &'a str) -> Result [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] 2674 | where [INFO] [stdout] 2675 | T: de::Deserialize<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `serial2` (test "pair") due to 1 previous error [INFO] [stdout] error[E0277]: the trait bound `StopBits: serde::de::Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/serde.rs:36:46 [INFO] [stdout] | [INFO] [stdout] 36 | let_assert!(Err(e) = serde_json::from_str::("3")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the trait `serde::de::Deserialize<'_>` is not implemented for `StopBits` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::de::Deserialize<'de>`: [INFO] [stdout] &'a Path [INFO] [stdout] &'a [u8] [INFO] [stdout] &'a str [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::from_str` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/de.rs:2675:8 [INFO] [stdout] | [INFO] [stdout] 2673 | pub fn from_str<'a, T>(s: &'a str) -> Result [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] 2674 | where [INFO] [stdout] 2675 | T: de::Deserialize<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0277]: the trait bound `StopBits: serde::de::Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/serde.rs:39:46 [INFO] [stdout] | [INFO] [stdout] 39 | let_assert!(Err(e) = serde_json::from_str::("\"1\"")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the trait `serde::de::Deserialize<'_>` is not implemented for `StopBits` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::de::Deserialize<'de>`: [INFO] [stdout] &'a Path [INFO] [stdout] &'a [u8] [INFO] [stdout] &'a str [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::from_str` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/de.rs:2675:8 [INFO] [stdout] | [INFO] [stdout] 2673 | pub fn from_str<'a, T>(s: &'a str) -> Result [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] 2674 | where [INFO] [stdout] 2675 | T: de::Deserialize<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Parity: serde::ser::Serialize` is not satisfied [INFO] [stdout] --> tests/serde.rs:45:53 [INFO] [stdout] | [INFO] [stdout] 45 | assert!(let Ok("\"none\"") = serde_json::to_string(&serial2::Parity::None).as_deref()); [INFO] [stdout] | --------------------- ^^^^^^^^^^^^^^^^^^^^^^ the trait `serde::ser::Serialize` is not implemented for `Parity` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::ser::Serialize`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::to_string` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/ser.rs:2209:17 [INFO] [stdout] | [INFO] [stdout] 2207 | pub fn to_string(value: &T) -> Result [INFO] [stdout] | --------- required by a bound in this function [INFO] [stdout] 2208 | where [INFO] [stdout] 2209 | T: ?Sized + Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Parity: serde::ser::Serialize` is not satisfied [INFO] [stdout] --> tests/serde.rs:46:53 [INFO] [stdout] | [INFO] [stdout] 46 | assert!(let Ok("\"even\"") = serde_json::to_string(&serial2::Parity::Even).as_deref()); [INFO] [stdout] | --------------------- ^^^^^^^^^^^^^^^^^^^^^^ the trait `serde::ser::Serialize` is not implemented for `Parity` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::ser::Serialize`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::to_string` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/ser.rs:2209:17 [INFO] [stdout] | [INFO] [stdout] 2207 | pub fn to_string(value: &T) -> Result [INFO] [stdout] | --------- required by a bound in this function [INFO] [stdout] 2208 | where [INFO] [stdout] 2209 | T: ?Sized + Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Parity: serde::ser::Serialize` is not satisfied [INFO] [stdout] --> tests/serde.rs:47:52 [INFO] [stdout] | [INFO] [stdout] 47 | assert!(let Ok("\"odd\"") = serde_json::to_string(&serial2::Parity::Odd).as_deref()); [INFO] [stdout] | --------------------- ^^^^^^^^^^^^^^^^^^^^^ the trait `serde::ser::Serialize` is not implemented for `Parity` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::ser::Serialize`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::to_string` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/ser.rs:2209:17 [INFO] [stdout] | [INFO] [stdout] 2207 | pub fn to_string(value: &T) -> Result [INFO] [stdout] | --------- required by a bound in this function [INFO] [stdout] 2208 | where [INFO] [stdout] 2209 | T: ?Sized + Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Parity: serde::de::Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/serde.rs:49:65 [INFO] [stdout] | [INFO] [stdout] 49 | assert!(let Ok(serial2::Parity::None) = serde_json::from_str::("\"none\"")); [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `serde::de::Deserialize<'_>` is not implemented for `Parity` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::de::Deserialize<'de>`: [INFO] [stdout] &'a Path [INFO] [stdout] &'a [u8] [INFO] [stdout] &'a str [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::from_str` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/de.rs:2675:8 [INFO] [stdout] | [INFO] [stdout] 2673 | pub fn from_str<'a, T>(s: &'a str) -> Result [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] 2674 | where [INFO] [stdout] 2675 | T: de::Deserialize<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Parity: serde::de::Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/serde.rs:50:65 [INFO] [stdout] | [INFO] [stdout] 50 | assert!(let Ok(serial2::Parity::Even) = serde_json::from_str::("\"even\"")); [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `serde::de::Deserialize<'_>` is not implemented for `Parity` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::de::Deserialize<'de>`: [INFO] [stdout] &'a Path [INFO] [stdout] &'a [u8] [INFO] [stdout] &'a str [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::from_str` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/de.rs:2675:8 [INFO] [stdout] | [INFO] [stdout] 2673 | pub fn from_str<'a, T>(s: &'a str) -> Result [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] 2674 | where [INFO] [stdout] 2675 | T: de::Deserialize<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Parity: serde::de::Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/serde.rs:51:64 [INFO] [stdout] | [INFO] [stdout] 51 | assert!(let Ok(serial2::Parity::Odd) = serde_json::from_str::("\"odd\"")); [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `serde::de::Deserialize<'_>` is not implemented for `Parity` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::de::Deserialize<'de>`: [INFO] [stdout] &'a Path [INFO] [stdout] &'a [u8] [INFO] [stdout] &'a str [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::from_str` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/de.rs:2675:8 [INFO] [stdout] | [INFO] [stdout] 2673 | pub fn from_str<'a, T>(s: &'a str) -> Result [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] 2674 | where [INFO] [stdout] 2675 | T: de::Deserialize<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Parity: serde::de::Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/serde.rs:53:46 [INFO] [stdout] | [INFO] [stdout] 53 | let_assert!(Err(e) = serde_json::from_str::("\"even-then-odd\"")); [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `serde::de::Deserialize<'_>` is not implemented for `Parity` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::de::Deserialize<'de>`: [INFO] [stdout] &'a Path [INFO] [stdout] &'a [u8] [INFO] [stdout] &'a str [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::from_str` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/de.rs:2675:8 [INFO] [stdout] | [INFO] [stdout] 2673 | pub fn from_str<'a, T>(s: &'a str) -> Result [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] 2674 | where [INFO] [stdout] 2675 | T: de::Deserialize<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `FlowControl: serde::ser::Serialize` is not satisfied [INFO] [stdout] --> tests/serde.rs:59:53 [INFO] [stdout] | [INFO] [stdout] 59 | assert!(let Ok("\"none\"") = serde_json::to_string(&serial2::FlowControl::None).as_deref()); [INFO] [stdout] | --------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `serde::ser::Serialize` is not implemented for `FlowControl` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::ser::Serialize`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::to_string` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/ser.rs:2209:17 [INFO] [stdout] | [INFO] [stdout] 2207 | pub fn to_string(value: &T) -> Result [INFO] [stdout] | --------- required by a bound in this function [INFO] [stdout] 2208 | where [INFO] [stdout] 2209 | T: ?Sized + Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `FlowControl: serde::ser::Serialize` is not satisfied [INFO] [stdout] --> tests/serde.rs:60:57 [INFO] [stdout] | [INFO] [stdout] 60 | assert!(let Ok("\"xon/xoff\"") = serde_json::to_string(&serial2::FlowControl::XonXoff).as_deref()); [INFO] [stdout] | --------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `serde::ser::Serialize` is not implemented for `FlowControl` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::ser::Serialize`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::to_string` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/ser.rs:2209:17 [INFO] [stdout] | [INFO] [stdout] 2207 | pub fn to_string(value: &T) -> Result [INFO] [stdout] | --------- required by a bound in this function [INFO] [stdout] 2208 | where [INFO] [stdout] 2209 | T: ?Sized + Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `FlowControl: serde::ser::Serialize` is not satisfied [INFO] [stdout] --> tests/serde.rs:61:56 [INFO] [stdout] | [INFO] [stdout] 61 | assert!(let Ok("\"rts/cts\"") = serde_json::to_string(&serial2::FlowControl::RtsCts).as_deref()); [INFO] [stdout] | --------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `serde::ser::Serialize` is not implemented for `FlowControl` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::ser::Serialize`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::to_string` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/ser.rs:2209:17 [INFO] [stdout] | [INFO] [stdout] 2207 | pub fn to_string(value: &T) -> Result [INFO] [stdout] | --------- required by a bound in this function [INFO] [stdout] 2208 | where [INFO] [stdout] 2209 | T: ?Sized + Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `FlowControl: serde::de::Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/serde.rs:63:70 [INFO] [stdout] | [INFO] [stdout] 63 | assert!(let Ok(serial2::FlowControl::None) = serde_json::from_str::("\"none\"")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ the trait `serde::de::Deserialize<'_>` is not implemented for `FlowControl` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::de::Deserialize<'de>`: [INFO] [stdout] &'a Path [INFO] [stdout] &'a [u8] [INFO] [stdout] &'a str [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::from_str` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/de.rs:2675:8 [INFO] [stdout] | [INFO] [stdout] 2673 | pub fn from_str<'a, T>(s: &'a str) -> Result [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] 2674 | where [INFO] [stdout] 2675 | T: de::Deserialize<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `FlowControl: serde::de::Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/serde.rs:64:73 [INFO] [stdout] | [INFO] [stdout] 64 | assert!(let Ok(serial2::FlowControl::XonXoff) = serde_json::from_str::("\"xon/xoff\"")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ the trait `serde::de::Deserialize<'_>` is not implemented for `FlowControl` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::de::Deserialize<'de>`: [INFO] [stdout] &'a Path [INFO] [stdout] &'a [u8] [INFO] [stdout] &'a str [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::from_str` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/de.rs:2675:8 [INFO] [stdout] | [INFO] [stdout] 2673 | pub fn from_str<'a, T>(s: &'a str) -> Result [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] 2674 | where [INFO] [stdout] 2675 | T: de::Deserialize<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `FlowControl: serde::de::Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/serde.rs:65:72 [INFO] [stdout] | [INFO] [stdout] 65 | assert!(let Ok(serial2::FlowControl::RtsCts) = serde_json::from_str::("\"rts/cts\"")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ the trait `serde::de::Deserialize<'_>` is not implemented for `FlowControl` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::de::Deserialize<'de>`: [INFO] [stdout] &'a Path [INFO] [stdout] &'a [u8] [INFO] [stdout] &'a str [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::from_str` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/de.rs:2675:8 [INFO] [stdout] | [INFO] [stdout] 2673 | pub fn from_str<'a, T>(s: &'a str) -> Result [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] 2674 | where [INFO] [stdout] 2675 | T: de::Deserialize<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `FlowControl: serde::de::Deserialize<'_>` is not satisfied [INFO] [stdout] --> tests/serde.rs:67:46 [INFO] [stdout] | [INFO] [stdout] 67 | let_assert!(Err(e) = serde_json::from_str::("\"plug-in/plug-out\"")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ the trait `serde::de::Deserialize<'_>` is not implemented for `FlowControl` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::de::Deserialize<'de>`: [INFO] [stdout] &'a Path [INFO] [stdout] &'a [u8] [INFO] [stdout] &'a str [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] and 130 others [INFO] [stdout] note: required by a bound in `serde_json::from_str` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.108/src/de.rs:2675:8 [INFO] [stdout] | [INFO] [stdout] 2673 | pub fn from_str<'a, T>(s: &'a str) -> Result [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] 2674 | where [INFO] [stdout] 2675 | T: de::Deserialize<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `serial2` (test "serde") due to 32 previous errors [INFO] running `Command { std: "docker" "inspect" "f3715c897dcbb424e2edadd5fca3fe39670d30b70cb250df31b0ffc72c07e4ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f3715c897dcbb424e2edadd5fca3fe39670d30b70cb250df31b0ffc72c07e4ca", kill_on_drop: false }` [INFO] [stdout] f3715c897dcbb424e2edadd5fca3fe39670d30b70cb250df31b0ffc72c07e4ca