[INFO] fetching crate snoopy 0.3.2... [INFO] testing snoopy-0.3.2 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate snoopy 0.3.2 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate snoopy 0.3.2 [INFO] finished tweaking crates.io crate snoopy 0.3.2 [INFO] tweaked toml for crates.io crate snoopy 0.3.2 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate snoopy 0.3.2 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 70 packages to latest compatible versions [INFO] [stderr] Adding clap v2.34.0 (available: v4.5.46) [INFO] [stderr] Adding nom v5.1.3 (available: v8.0.0) [INFO] [stderr] Adding pcap v0.7.0 (available: v2.3.0) [INFO] [stderr] Adding pktparse v0.4.1 (available: v0.7.1) [INFO] [stderr] Adding tls-parser v0.7.1 (available: v0.12.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rusticata-macros v1.1.0 [INFO] [stderr] Downloaded pktparse v0.4.1 [INFO] [stderr] Downloaded pcap v0.7.0 [INFO] [stderr] Downloaded tls-parser v0.7.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 43e61637fb8135ef1a4c914b465b6a1c2d03ce6dcfe511517243d97baf8ee0cf [INFO] running `Command { std: "docker" "start" "-a" "43e61637fb8135ef1a4c914b465b6a1c2d03ce6dcfe511517243d97baf8ee0cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "43e61637fb8135ef1a4c914b465b6a1c2d03ce6dcfe511517243d97baf8ee0cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "43e61637fb8135ef1a4c914b465b6a1c2d03ce6dcfe511517243d97baf8ee0cf", kill_on_drop: false }` [INFO] [stdout] 43e61637fb8135ef1a4c914b465b6a1c2d03ce6dcfe511517243d97baf8ee0cf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9b1d779dc773e46e29db3f8d0061f4c8feaaccd7e5e49be4112d63bc93bdbc79 [INFO] running `Command { std: "docker" "start" "-a" "9b1d779dc773e46e29db3f8d0061f4c8feaaccd7e5e49be4112d63bc93bdbc79", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v0.1.8 [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling siphasher v0.2.3 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Compiling phf_shared v0.8.0 [INFO] [stderr] Compiling nom v5.1.3 [INFO] [stderr] Compiling pcap v0.7.0 [INFO] [stderr] Compiling hwaddr v0.1.7 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling num-traits v0.1.43 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling cookie-factory v0.2.4 [INFO] [stderr] Compiling dns-parser v0.8.0 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling phf v0.8.0 [INFO] [stderr] Compiling enum_primitive v0.1.1 [INFO] [stderr] Compiling phf_shared v0.7.24 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling phf v0.7.24 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling rusticata-macros v1.1.0 [INFO] [stderr] Compiling pktparse v0.4.1 [INFO] [stderr] Compiling phf_generator v0.7.24 [INFO] [stderr] Compiling phf_codegen v0.7.24 [INFO] [stderr] Compiling tls-parser v0.7.1 [INFO] [stderr] Compiling snoopy v0.3.2 (/opt/rustwide/workdir) [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/lib/packet_parse.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(Debug, Serialize, Deserialize, PartialEq)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Serialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/lib/packet_parse.rs:12:26 [INFO] [stdout] | [INFO] [stdout] 12 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/lib/packet_parse.rs:16:28 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(Debug, Serialize, Deserialize, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Deserialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/lib/packet_parse.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/lib/packet_parse.rs:28:17 [INFO] [stdout] | [INFO] [stdout] 28 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Serialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/lib/packet_parse.rs:12:26 [INFO] [stdout] | [INFO] [stdout] 12 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/lib/packet_parse.rs:28:28 [INFO] [stdout] | [INFO] [stdout] 28 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Deserialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/lib/packet_parse.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/lib/packet_parse.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 47 | #[derive(Debug, Serialize, Deserialize, PartialEq)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Serialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/lib/packet_parse.rs:12:26 [INFO] [stdout] | [INFO] [stdout] 12 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/lib/packet_parse.rs:47:28 [INFO] [stdout] | [INFO] [stdout] 47 | #[derive(Debug, Serialize, Deserialize, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Deserialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/lib/packet_parse.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/lib/packet_parse.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 57 | #[derive(Debug, Serialize, Deserialize, PartialEq)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Serialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/lib/packet_parse.rs:12:26 [INFO] [stdout] | [INFO] [stdout] 12 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/lib/packet_parse.rs:57:28 [INFO] [stdout] | [INFO] [stdout] 57 | #[derive(Debug, Serialize, Deserialize, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Deserialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/lib/packet_parse.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/lib/packet_capture.rs:134:85 [INFO] [stdout] | [INFO] [stdout] 134 | .expect("Filters invalid, please check the documentation.");; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ParsedPacket: Serialize` is not satisfied [INFO] [stdout] --> src/lib/packet_capture.rs:171:58 [INFO] [stdout] | [INFO] [stdout] 171 | let packets = serde_json::to_string(&packets).unwrap(); [INFO] [stdout] | --------------------- ^^^^^^^ unsatisfied trait bound [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: the trait `Serialize` is not implemented for `ParsedPacket` [INFO] [stdout] --> src/lib/packet_parse.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct ParsedPacket { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for local types consider adding `#[derive(serde::Serialize)]` to your `ParsedPacket` type [INFO] [stdout] = note: for types from other crates check whether the crate offers a `serde` feature flag [INFO] [stdout] = help: the following other types implement trait `Serialize`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T,) [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 147 others [INFO] [stdout] = note: required for `Result` to implement `Serialize` [INFO] [stdout] = note: 2 redundant requirements hidden [INFO] [stdout] = note: required for `&Vec>` to implement `Serialize` [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.143/src/ser.rs:2247:17 [INFO] [stdout] | [INFO] [stdout] 2245 | pub fn to_string(value: &T) -> Result [INFO] [stdout] | --------- required by a bound in this function [INFO] [stdout] 2246 | where [INFO] [stdout] 2247 | 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 E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `snoopy` (bin "snoopy") due to 9 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "9b1d779dc773e46e29db3f8d0061f4c8feaaccd7e5e49be4112d63bc93bdbc79", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b1d779dc773e46e29db3f8d0061f4c8feaaccd7e5e49be4112d63bc93bdbc79", kill_on_drop: false }` [INFO] [stdout] 9b1d779dc773e46e29db3f8d0061f4c8feaaccd7e5e49be4112d63bc93bdbc79