[INFO] fetching crate knet 0.3.1... [INFO] checking knet-0.3.1 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate knet 0.3.1 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate knet 0.3.1 [INFO] finished tweaking crates.io crate knet 0.3.1 [INFO] tweaked toml for crates.io crate knet 0.3.1 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate knet 0.3.1 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 104 packages to latest compatible versions [INFO] [stderr] Adding derive-knet v0.1.0 (available: v0.2.0) [INFO] [stderr] Adding simple_logger v1.16.0 (available: v5.0.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1477070ff721f190d4f06112080885f06afd0a4170a1a93356e0967d05bbfe1d [INFO] running `Command { std: "docker" "start" "-a" "1477070ff721f190d4f06112080885f06afd0a4170a1a93356e0967d05bbfe1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1477070ff721f190d4f06112080885f06afd0a4170a1a93356e0967d05bbfe1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1477070ff721f190d4f06112080885f06afd0a4170a1a93356e0967d05bbfe1d", kill_on_drop: false }` [INFO] [stdout] 1477070ff721f190d4f06112080885f06afd0a4170a1a93356e0967d05bbfe1d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3c9fd994bb3db4efc8c79fe91c8f3b00c9d1a6866d1a73285d40c75e077ca89a [INFO] running `Command { std: "docker" "start" "-a" "3c9fd994bb3db4efc8c79fe91c8f3b00c9d1a6866d1a73285d40c75e077ca89a", kill_on_drop: false }` [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking parking v2.2.1 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Checking fastrand v2.3.0 [INFO] [stderr] Checking slab v0.4.11 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Checking linux-raw-sys v0.9.4 [INFO] [stderr] Checking bitflags v2.9.3 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Checking atomic-waker v1.1.2 [INFO] [stderr] Checking cfg-if v1.0.3 [INFO] [stderr] Checking value-bag v1.11.1 [INFO] [stderr] Checking async-task v4.7.1 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Checking num_threads v0.1.7 [INFO] [stderr] Checking event-listener v2.5.3 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking futures-lite v2.6.1 [INFO] [stderr] Checking piper v0.2.4 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking deranged v0.4.0 [INFO] [stderr] Checking kv-log-macro v1.0.7 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Checking event-listener v5.4.1 [INFO] [stderr] Checking async-channel v1.9.0 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking async-executor v1.13.2 [INFO] [stderr] Checking event-listener-strategy v0.5.4 [INFO] [stderr] Checking async-lock v3.4.1 [INFO] [stderr] Checking async-channel v2.5.0 [INFO] [stderr] Checking blocking v1.6.2 [INFO] [stderr] Checking is-terminal v0.4.16 [INFO] [stderr] Checking time v0.3.41 [INFO] [stderr] Checking colored v1.9.4 [INFO] [stderr] Checking simple_logger v1.16.0 [INFO] [stderr] Compiling derive-knet v0.1.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Checking polling v3.10.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking async-io v2.5.0 [INFO] [stderr] Checking async-global-executor v2.4.1 [INFO] [stderr] Checking async-std v1.13.2 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking knet v0.3.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/network/server.rs:244:50 [INFO] [stdout] | [INFO] [stdout] 244 | if let InnerEvent::Data((id, data)) = msg { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/network/server.rs:244:50 [INFO] [stdout] | [INFO] [stdout] 244 | if let InnerEvent::Data((id, data)) = msg { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: module `network` is private [INFO] [stdout] --> tests/tests.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use knet::network::trait_knet::KnetTransform; [INFO] [stdout] | ^^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `network` is defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:78:1 [INFO] [stdout] | [INFO] [stdout] 78 | mod network; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: consider importing this trait instead [INFO] [stdout] | [INFO] [stdout] 4 - use knet::network::trait_knet::KnetTransform; [INFO] [stdout] 4 + use knet::KnetTransform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `test_knet::Data: Copy` is not satisfied [INFO] [stdout] --> tests/tests.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | enum Data { [INFO] [stdout] | ^^^^ the trait `Copy` is not implemented for `test_knet::Data` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `KnetTransform` [INFO] [stdout] --> /opt/rustwide/workdir/src/network/trait_knet.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | pub trait KnetTransform: Copy + Sized { [INFO] [stdout] | ^^^^ required by this bound in `KnetTransform` [INFO] [stdout] help: consider annotating `test_knet::Data` with `#[derive(Copy)]` [INFO] [stdout] | [INFO] [stdout] 13 + #[derive(Copy)] [INFO] [stdout] 14 | enum Data { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/tests.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(DeriveKnet, Debug, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `*mut _`, found `Box` [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*mut _` [INFO] [stdout] found struct `Box` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/alloc/src/boxed.rs:1044:19 [INFO] [stdout] = note: this error originates in the derive macro `DeriveKnet` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/tests.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(DeriveKnet, Debug, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `*mut _`, found `Box` [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*mut _` [INFO] [stdout] found struct `Box` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/alloc/src/boxed.rs:1044:19 [INFO] [stdout] = note: this error originates in the derive macro `DeriveKnet` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/tests.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(DeriveKnet, Debug, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `*mut _`, found `Box` [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*mut _` [INFO] [stdout] found struct `Box` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/alloc/src/boxed.rs:1044:19 [INFO] [stdout] = note: this error originates in the derive macro `DeriveKnet` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/tests.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(DeriveKnet, Debug, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `*mut _`, found `Box` [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*mut _` [INFO] [stdout] found struct `Box` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/alloc/src/boxed.rs:1044:19 [INFO] [stdout] = note: this error originates in the derive macro `DeriveKnet` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `serialize` found for enum `test_knet::Data` in the current scope [INFO] [stdout] --> tests/tests.rs:23:24 [INFO] [stdout] | [INFO] [stdout] 13 | enum Data { [INFO] [stdout] | --------- method `serialize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 23 | let raw = data.serialize(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/network/trait_knet.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | fn serialize(&self) -> ::std::vec::Vec; [INFO] [stdout] | --------- the method is available for `test_knet::Data` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `deserialize` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/network/trait_knet.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | fn deserialize(&mut self, _: &[u8]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `KnetTransform` which provides `serialize` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use knet::KnetTransform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_raw` found for enum `test_knet::Data` in the current scope [INFO] [stdout] --> tests/tests.rs:24:26 [INFO] [stdout] | [INFO] [stdout] 13 | enum Data { [INFO] [stdout] | --------- variant or associated item `from_raw` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 24 | assert_eq!(Data::from_raw(&raw), data); [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `test_knet::Data` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `KnetTransform` which provides `from_raw` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use knet::KnetTransform; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 24 - assert_eq!(Data::from_raw(&raw), data); [INFO] [stdout] 24 + assert_eq!(Data::from(&raw), data); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `serialize` found for enum `test_knet::Data` in the current scope [INFO] [stdout] --> tests/tests.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 13 | enum Data { [INFO] [stdout] | --------- method `serialize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 33 | let raw = data.serialize(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/network/trait_knet.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | fn serialize(&self) -> ::std::vec::Vec; [INFO] [stdout] | --------- the method is available for `test_knet::Data` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `deserialize` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/network/trait_knet.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | fn deserialize(&mut self, _: &[u8]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `KnetTransform` which provides `serialize` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use knet::KnetTransform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_raw` found for enum `test_knet::Data` in the current scope [INFO] [stdout] --> tests/tests.rs:34:26 [INFO] [stdout] | [INFO] [stdout] 13 | enum Data { [INFO] [stdout] | --------- variant or associated item `from_raw` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 34 | assert_eq!(Data::from_raw(&raw), data); [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `test_knet::Data` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `KnetTransform` which provides `from_raw` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use knet::KnetTransform; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 34 - assert_eq!(Data::from_raw(&raw), data); [INFO] [stdout] 34 + assert_eq!(Data::from(&raw), data); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `serialize` found for enum `test_knet::Data` in the current scope [INFO] [stdout] --> tests/tests.rs:41:46 [INFO] [stdout] | [INFO] [stdout] 13 | enum Data { [INFO] [stdout] | --------- method `serialize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 41 | let integer_serialize = data_integer.serialize(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/network/trait_knet.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | fn serialize(&self) -> ::std::vec::Vec; [INFO] [stdout] | --------- the method is available for `test_knet::Data` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `deserialize` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/network/trait_knet.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | fn deserialize(&mut self, _: &[u8]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `KnetTransform` which provides `serialize` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use knet::KnetTransform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `deserialize` found for enum `test_knet::Data` in the current scope [INFO] [stdout] --> tests/tests.rs:42:19 [INFO] [stdout] | [INFO] [stdout] 13 | enum Data { [INFO] [stdout] | --------- method `deserialize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 42 | data_char.deserialize(&integer_serialize); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/network/trait_knet.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | fn deserialize(&mut self, _: &[u8]); [INFO] [stdout] | ----------- the method is available for `test_knet::Data` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `serialize` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/network/trait_knet.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | fn serialize(&self) -> ::std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `KnetTransform` which provides `deserialize` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use knet::KnetTransform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `serialize` found for enum `test_knet::Data` in the current scope [INFO] [stdout] --> tests/tests.rs:53:65 [INFO] [stdout] | [INFO] [stdout] 13 | enum Data { [INFO] [stdout] | --------- method `serialize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 53 | assert_eq!([66, 121, 116, 101, 0, 0, 0, 0, 0, 8], data8.serialize()[..]); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/network/trait_knet.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | fn serialize(&self) -> ::std::vec::Vec; [INFO] [stdout] | --------- the method is available for `test_knet::Data` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `deserialize` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/network/trait_knet.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | fn deserialize(&mut self, _: &[u8]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `KnetTransform` which provides `serialize` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use knet::KnetTransform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `serialize` found for enum `test_knet::Data` in the current scope [INFO] [stdout] --> tests/tests.rs:56:20 [INFO] [stdout] | [INFO] [stdout] 13 | enum Data { [INFO] [stdout] | --------- method `serialize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 56 | data16.serialize()[..] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/network/trait_knet.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | fn serialize(&self) -> ::std::vec::Vec; [INFO] [stdout] | --------- the method is available for `test_knet::Data` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `deserialize` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/network/trait_knet.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | fn deserialize(&mut self, _: &[u8]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `KnetTransform` which provides `serialize` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use knet::KnetTransform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `serialize` found for enum `test_knet::Data` in the current scope [INFO] [stdout] --> tests/tests.rs:60:20 [INFO] [stdout] | [INFO] [stdout] 13 | enum Data { [INFO] [stdout] | --------- method `serialize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 60 | data32.serialize()[..] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/network/trait_knet.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | fn serialize(&self) -> ::std::vec::Vec; [INFO] [stdout] | --------- the method is available for `test_knet::Data` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `deserialize` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/network/trait_knet.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | fn deserialize(&mut self, _: &[u8]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `KnetTransform` which provides `serialize` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use knet::KnetTransform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `serialize` found for enum `test_knet::Data` in the current scope [INFO] [stdout] --> tests/tests.rs:69:65 [INFO] [stdout] | [INFO] [stdout] 13 | enum Data { [INFO] [stdout] | --------- method `serialize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 69 | assert_eq!([66, 121, 116, 101, 0, 0, 0, 0, 0, 8], data8.serialize()[..]); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/network/trait_knet.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | fn serialize(&self) -> ::std::vec::Vec; [INFO] [stdout] | --------- the method is available for `test_knet::Data` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `deserialize` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/network/trait_knet.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | fn deserialize(&mut self, _: &[u8]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `KnetTransform` which provides `serialize` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use knet::KnetTransform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `serialize` found for enum `test_knet::Data` in the current scope [INFO] [stdout] --> tests/tests.rs:72:20 [INFO] [stdout] | [INFO] [stdout] 13 | enum Data { [INFO] [stdout] | --------- method `serialize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 72 | data16.serialize()[..] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/network/trait_knet.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | fn serialize(&self) -> ::std::vec::Vec; [INFO] [stdout] | --------- the method is available for `test_knet::Data` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `deserialize` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/network/trait_knet.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | fn deserialize(&mut self, _: &[u8]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `KnetTransform` which provides `serialize` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use knet::KnetTransform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `serialize` found for enum `test_knet::Data` in the current scope [INFO] [stdout] --> tests/tests.rs:76:20 [INFO] [stdout] | [INFO] [stdout] 13 | enum Data { [INFO] [stdout] | --------- method `serialize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 76 | data32.serialize()[..] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/network/trait_knet.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | fn serialize(&self) -> ::std::vec::Vec; [INFO] [stdout] | --------- the method is available for `test_knet::Data` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `deserialize` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/network/trait_knet.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | fn deserialize(&mut self, _: &[u8]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `KnetTransform` which provides `serialize` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use knet::KnetTransform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_raw` found for enum `test_knet::Data` in the current scope [INFO] [stdout] --> tests/tests.rs:82:26 [INFO] [stdout] | [INFO] [stdout] 13 | enum Data { [INFO] [stdout] | --------- variant or associated item `from_raw` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 82 | let data = Data::from_raw(&[66, 121, 116, 101, 0, 0, 0, 0, 0, 42].to_vec()); [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `test_knet::Data` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `KnetTransform` which provides `from_raw` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use knet::KnetTransform; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 82 - let data = Data::from_raw(&[66, 121, 116, 101, 0, 0, 0, 0, 0, 42].to_vec()); [INFO] [stdout] 82 + let data = Data::from(&[66, 121, 116, 101, 0, 0, 0, 0, 0, 42].to_vec()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0599, E0603. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `knet` (test "tests") due to 19 previous errors [INFO] running `Command { std: "docker" "inspect" "3c9fd994bb3db4efc8c79fe91c8f3b00c9d1a6866d1a73285d40c75e077ca89a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3c9fd994bb3db4efc8c79fe91c8f3b00c9d1a6866d1a73285d40c75e077ca89a", kill_on_drop: false }` [INFO] [stdout] 3c9fd994bb3db4efc8c79fe91c8f3b00c9d1a6866d1a73285d40c75e077ca89a