[INFO] cloning repository https://github.com/ayourtch/scarust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ayourtch/scarust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fayourtch%2Fscarust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fayourtch%2Fscarust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4c880f97455331c014c0560f1bd8b16c95ee4760 [INFO] testing ayourtch/scarust against master#2fd6efc32704647e64d3d646d21c4c68eae100e4 for pr-149852-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fayourtch%2Fscarust" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ayourtch/scarust [INFO] finished tweaking git repo https://github.com/ayourtch/scarust [INFO] tweaked toml for git repo https://github.com/ayourtch/scarust written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ayourtch/scarust on toolchain 2fd6efc32704647e64d3d646d21c4c68eae100e4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "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" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 128 packages to latest compatible versions [INFO] [stderr] Adding criterion v0.3.6 (available: v0.8.1) [INFO] [stderr] Adding generic-array v0.14.7 (available: v0.14.9) [INFO] [stderr] Adding pcap-parser v0.14.1 (available: v0.17.0) [INFO] [stderr] Adding rand v0.8.5 (available: v0.9.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded erased-serde v0.4.9 [INFO] [stderr] Downloaded inventory v0.3.21 [INFO] [stderr] Downloaded typetag-impl v0.2.21 [INFO] [stderr] Downloaded crypto-common v0.1.7 [INFO] [stderr] Downloaded typetag v0.2.21 [INFO] [stderr] Downloaded doc-comment v0.3.4 [INFO] [stderr] Downloaded quote v1.0.43 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.108 [INFO] [stderr] Downloaded circular v0.3.0 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.108 [INFO] [stderr] Downloaded mac_address v1.1.8 [INFO] [stderr] Downloaded mopa v0.2.2 [INFO] [stderr] Downloaded zmij v1.0.14 [INFO] [stderr] Downloaded linkme-impl v0.3.35 [INFO] [stderr] Downloaded linkme v0.3.35 [INFO] [stderr] Downloaded itoa v1.0.17 [INFO] [stderr] Downloaded cbc v0.1.2 [INFO] [stderr] Downloaded wasm-bindgen v0.2.108 [INFO] [stderr] Downloaded ryu v1.0.22 [INFO] [stderr] Downloaded bumpalo v3.19.1 [INFO] [stderr] Downloaded jiff-static v0.2.18 [INFO] [stderr] Downloaded criterion v0.3.6 [INFO] [stderr] Downloaded zerocopy-derive v0.8.33 [INFO] [stderr] Downloaded pcap-parser v0.14.1 [INFO] [stderr] Downloaded serde_json v1.0.149 [INFO] [stderr] Downloaded clap v2.34.0 [INFO] [stderr] Downloaded portable-atomic v1.13.0 [INFO] [stderr] Downloaded js-sys v0.3.85 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.108 [INFO] [stderr] Downloaded zerocopy v0.8.33 [INFO] [stderr] Downloaded syn v2.0.114 [INFO] [stderr] Downloaded des v0.8.1 [INFO] [stderr] Downloaded generic-array v1.3.5 [INFO] [stderr] Downloaded getrandom v0.2.17 [INFO] [stderr] Downloaded half v1.8.3 [INFO] [stderr] Downloaded bitflags v2.10.0 [INFO] [stderr] Downloaded proc-macro2 v1.0.105 [INFO] [stderr] Downloaded cfb-mode v0.8.2 [INFO] [stderr] Downloaded criterion-plot v0.4.5 [INFO] [stderr] Downloaded csv-core v0.1.13 [INFO] [stderr] Downloaded serde_cbor v0.11.2 [INFO] [stderr] Downloaded block-padding v0.3.3 [INFO] [stderr] Downloaded rusticata-macros v4.1.0 [INFO] [stderr] Downloaded web-sys v0.3.85 [INFO] [stderr] Downloaded jiff v0.2.18 [INFO] [stderr] Downloaded libc v0.2.180 [INFO] [stderr] Downloaded csv v1.4.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f153b770b9e665a81296044cd2d04a1ce6da228c151bf03f8d10d5891cd72eef [INFO] running `Command { std: "docker" "start" "-a" "f153b770b9e665a81296044cd2d04a1ce6da228c151bf03f8d10d5891cd72eef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f153b770b9e665a81296044cd2d04a1ce6da228c151bf03f8d10d5891cd72eef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f153b770b9e665a81296044cd2d04a1ce6da228c151bf03f8d10d5891cd72eef", kill_on_drop: false }` [INFO] [stdout] f153b770b9e665a81296044cd2d04a1ce6da228c151bf03f8d10d5891cd72eef [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 254326e6b9df90658a97baa454bff2292897d385f9ef06304a33737720851e0b [INFO] running `Command { std: "docker" "start" "-a" "254326e6b9df90658a97baa454bff2292897d385f9ef06304a33737720851e0b", kill_on_drop: false }` [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling proc-macro2 v1.0.105 [INFO] [stderr] Compiling quote v1.0.43 [INFO] [stderr] Compiling unicode-ident v1.0.22 [INFO] [stderr] Compiling cfg-if v1.0.4 [INFO] [stderr] Compiling libc v0.2.180 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling zerocopy v0.8.33 [INFO] [stderr] Compiling typeid v1.0.3 [INFO] [stderr] Compiling cfg_aliases v0.2.1 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling linkme-impl v0.3.35 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling erased-serde v0.4.9 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling doc-comment v0.3.4 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling anstyle v1.0.13 [INFO] [stderr] Compiling anstyle-query v1.1.5 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Compiling linkme v0.3.35 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.2 [INFO] [stderr] Compiling log v0.4.29 [INFO] [stderr] Compiling typetag v0.2.21 [INFO] [stderr] Compiling jiff v0.2.18 [INFO] [stderr] Compiling inventory v0.3.21 [INFO] [stderr] Compiling anstream v0.6.21 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling aho-corasick v1.1.4 [INFO] [stderr] Compiling itertools v0.14.0 [INFO] [stderr] Compiling mopa v0.2.2 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling getrandom v0.2.17 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling block-padding v0.3.3 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling inout v0.1.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling des v0.8.1 [INFO] [stderr] Compiling cfb-mode v0.8.2 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling cbc v0.1.2 [INFO] [stderr] Compiling generic-array v1.3.5 [INFO] [stderr] Compiling mac_address v1.1.8 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling env_filter v0.1.4 [INFO] [stderr] Compiling env_logger v0.11.8 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling typetag-impl v0.2.21 [INFO] [stderr] Compiling oside-derive v0.1.0 (/opt/rustwide/workdir/oside-derive) [INFO] [stderr] Compiling oside v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/protocols/udp.rs:95:22 [INFO] [stdout] | [INFO] [stdout] 95 | for i in (my_index + 1..encoded_data.len()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 95 - for i in (my_index + 1..encoded_data.len()) { [INFO] [stdout] 95 + for i in my_index + 1..encoded_data.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/protocols/udp.rs:112:22 [INFO] [stdout] | [INFO] [stdout] 112 | for i in (my_index + 1..encoded_data.len()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 112 - for i in (my_index + 1..encoded_data.len()) { [INFO] [stdout] 112 + for i in my_index + 1..encoded_data.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/protocols/pvti.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 24 | panic!("FIXME"); [INFO] [stdout] | --------------- any code following this expression is unreachable [INFO] [stdout] 25 | self.data.to_vec() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/protocols/pvti.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 91 | panic!("FIXME"); [INFO] [stdout] | --------------- any code following this expression is unreachable [INFO] [stdout] 92 | / for chunk in &my_layer.chunks { [INFO] [stdout] 93 | | result.extend(chunk.encode::()); [INFO] [stdout] 94 | | } [INFO] [stdout] | |_____^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/oside_snmp_session.rs:884:24 [INFO] [stdout] | [INFO] [stdout] 884 | if let SnmpGetResponse(resp) = snmp_response { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `results_count` is never read [INFO] [stdout] --> src/oside_snmp_session.rs:868:25 [INFO] [stdout] | [INFO] [stdout] 868 | results_count += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `results_count` is never read [INFO] [stdout] --> src/oside_snmp_session.rs:913:29 [INFO] [stdout] | [INFO] [stdout] 913 | ... results_count += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `field_length` is never read [INFO] [stdout] --> src/protocols/dot11.rs:1793:13 [INFO] [stdout] | [INFO] [stdout] 1793 | field_length += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `field_length` is never read [INFO] [stdout] --> src/protocols/dot11.rs:1797:13 [INFO] [stdout] | [INFO] [stdout] 1797 | field_length += 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `field_length` is never read [INFO] [stdout] --> src/protocols/dot11.rs:1801:13 [INFO] [stdout] | [INFO] [stdout] 1801 | field_length += 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `field_length` is never read [INFO] [stdout] --> src/protocols/dot11.rs:1805:13 [INFO] [stdout] | [INFO] [stdout] 1805 | field_length += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `field_length` is never read [INFO] [stdout] --> src/protocols/dot11.rs:1809:13 [INFO] [stdout] | [INFO] [stdout] 1809 | field_length += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `offset` is never read [INFO] [stdout] --> src/protocols/dot11.rs:2642:9 [INFO] [stdout] | [INFO] [stdout] 2642 | offset += dot11_offset; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/protocols/dot11.rs:3896:13 [INFO] [stdout] | [INFO] [stdout] 3533 | 127 => { [INFO] [stdout] | --- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 3896 | 127 => { [INFO] [stdout] | ^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/protocols/dot11.rs:3984:13 [INFO] [stdout] | [INFO] [stdout] 3618 | 255 => { [INFO] [stdout] | --- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 3984 | 255 => { [INFO] [stdout] | ^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/protocols/dot11.rs:4199:13 [INFO] [stdout] | [INFO] [stdout] 4119 | ParsedElement::ExtendedCapabilities(capabilities) => { [INFO] [stdout] | ------------------------------------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 4199 | ParsedElement::ExtendedCapabilities(ec) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/protocols/dot11.rs:4402:13 [INFO] [stdout] | [INFO] [stdout] 4132 | ParsedElement::Unknown(element) => { [INFO] [stdout] | ------------------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 4402 | ParsedElement::Unknown(element) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse_raw_usm_params` is never used [INFO] [stdout] --> src/oside_snmp_session.rs:667:8 [INFO] [stdout] | [INFO] [stdout] 79 | impl OsideSnmpSession { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 667 | fn parse_raw_usm_params(&self, raw_data: &[u8]) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_frame_control` is never used [INFO] [stdout] --> src/protocols/dot11.rs:2026:4 [INFO] [stdout] | [INFO] [stdout] 2026 | fn encode_frame_control( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_seq_control` is never used [INFO] [stdout] --> src/protocols/dot11.rs:2047:4 [INFO] [stdout] | [INFO] [stdout] 2047 | fn encode_seq_control( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_radiotap_length` is never used [INFO] [stdout] --> src/protocols/dot11.rs:2247:4 [INFO] [stdout] | [INFO] [stdout] 2247 | fn encode_radiotap_length( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_radiotap_present` is never used [INFO] [stdout] --> src/protocols/dot11.rs:2265:4 [INFO] [stdout] | [INFO] [stdout] 2265 | fn encode_radiotap_present( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_qos_control` is never used [INFO] [stdout] --> src/protocols/dot11.rs:2789:4 [INFO] [stdout] | [INFO] [stdout] 2789 | fn encode_qos_control( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_ht_control` is never used [INFO] [stdout] --> src/protocols/dot11.rs:2818:4 [INFO] [stdout] | [INFO] [stdout] 2818 | fn encode_ht_control( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_capabilities` is never used [INFO] [stdout] --> src/protocols/dot11.rs:3323:4 [INFO] [stdout] | [INFO] [stdout] 3323 | fn encode_capabilities( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_option_value` is never used [INFO] [stdout] --> src/protocols/dot11.rs:5065:4 [INFO] [stdout] | [INFO] [stdout] 5065 | fn decode_option_value( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_generic_asn1` is never used [INFO] [stdout] --> src/protocols/snmp.rs:3364:4 [INFO] [stdout] | [INFO] [stdout] 3364 | fn decode_generic_asn1( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_generic_asn1` is never used [INFO] [stdout] --> src/protocols/snmp.rs:3392:4 [INFO] [stdout] | [INFO] [stdout] 3392 | fn encode_generic_asn1( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:230:10 [INFO] [stdout] | [INFO] [stdout] 226 | #[derive(PartialEq, Clone, Eq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 230 | Func(fn() -> T), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 44.23s [INFO] running `Command { std: "docker" "inspect" "254326e6b9df90658a97baa454bff2292897d385f9ef06304a33737720851e0b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "254326e6b9df90658a97baa454bff2292897d385f9ef06304a33737720851e0b", kill_on_drop: false }` [INFO] [stdout] 254326e6b9df90658a97baa454bff2292897d385f9ef06304a33737720851e0b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a3fcc16c8c6951d2d489470109a5fb7562f65674a328e04acc1b2712724be055 [INFO] running `Command { std: "docker" "start" "-a" "a3fcc16c8c6951d2d489470109a5fb7562f65674a328e04acc1b2712724be055", kill_on_drop: false }` [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling zmij v1.0.14 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling itoa v1.0.17 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling plotters-backend v0.3.7 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling csv-core v0.1.13 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling half v1.8.3 [INFO] [stderr] Compiling cast v0.3.0 [INFO] [stderr] Compiling ryu v1.0.22 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling oorandom v11.1.5 [INFO] [stderr] Compiling circular v0.3.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling plotters-svg v0.3.7 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling csv v1.4.0 [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/protocols/udp.rs:95:22 [INFO] [stdout] | [INFO] [stdout] 95 | for i in (my_index + 1..encoded_data.len()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 95 - for i in (my_index + 1..encoded_data.len()) { [INFO] [stdout] 95 + for i in my_index + 1..encoded_data.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/protocols/udp.rs:112:22 [INFO] [stdout] | [INFO] [stdout] 112 | for i in (my_index + 1..encoded_data.len()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 112 - for i in (my_index + 1..encoded_data.len()) { [INFO] [stdout] 112 + for i in my_index + 1..encoded_data.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/protocols/pvti.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 24 | panic!("FIXME"); [INFO] [stdout] | --------------- any code following this expression is unreachable [INFO] [stdout] 25 | self.data.to_vec() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/protocols/pvti.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 91 | panic!("FIXME"); [INFO] [stdout] | --------------- any code following this expression is unreachable [INFO] [stdout] 92 | / for chunk in &my_layer.chunks { [INFO] [stdout] 93 | | result.extend(chunk.encode::()); [INFO] [stdout] 94 | | } [INFO] [stdout] | |_____^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/oside_snmp_session.rs:884:24 [INFO] [stdout] | [INFO] [stdout] 884 | if let SnmpGetResponse(resp) = snmp_response { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `results_count` is never read [INFO] [stdout] --> src/oside_snmp_session.rs:868:25 [INFO] [stdout] | [INFO] [stdout] 868 | results_count += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `results_count` is never read [INFO] [stdout] --> src/oside_snmp_session.rs:913:29 [INFO] [stdout] | [INFO] [stdout] 913 | ... results_count += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `field_length` is never read [INFO] [stdout] --> src/protocols/dot11.rs:1793:13 [INFO] [stdout] | [INFO] [stdout] 1793 | field_length += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `field_length` is never read [INFO] [stdout] --> src/protocols/dot11.rs:1797:13 [INFO] [stdout] | [INFO] [stdout] 1797 | field_length += 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `field_length` is never read [INFO] [stdout] --> src/protocols/dot11.rs:1801:13 [INFO] [stdout] | [INFO] [stdout] 1801 | field_length += 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `field_length` is never read [INFO] [stdout] --> src/protocols/dot11.rs:1805:13 [INFO] [stdout] | [INFO] [stdout] 1805 | field_length += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `field_length` is never read [INFO] [stdout] --> src/protocols/dot11.rs:1809:13 [INFO] [stdout] | [INFO] [stdout] 1809 | field_length += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `offset` is never read [INFO] [stdout] --> src/protocols/dot11.rs:2642:9 [INFO] [stdout] | [INFO] [stdout] 2642 | offset += dot11_offset; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/protocols/dot11.rs:3896:13 [INFO] [stdout] | [INFO] [stdout] 3533 | 127 => { [INFO] [stdout] | --- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 3896 | 127 => { [INFO] [stdout] | ^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/protocols/dot11.rs:3984:13 [INFO] [stdout] | [INFO] [stdout] 3618 | 255 => { [INFO] [stdout] | --- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 3984 | 255 => { [INFO] [stdout] | ^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/protocols/dot11.rs:4199:13 [INFO] [stdout] | [INFO] [stdout] 4119 | ParsedElement::ExtendedCapabilities(capabilities) => { [INFO] [stdout] | ------------------------------------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 4199 | ParsedElement::ExtendedCapabilities(ec) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/protocols/dot11.rs:4402:13 [INFO] [stdout] | [INFO] [stdout] 4132 | ParsedElement::Unknown(element) => { [INFO] [stdout] | ------------------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 4402 | ParsedElement::Unknown(element) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse_raw_usm_params` is never used [INFO] [stdout] --> src/oside_snmp_session.rs:667:8 [INFO] [stdout] | [INFO] [stdout] 79 | impl OsideSnmpSession { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 667 | fn parse_raw_usm_params(&self, raw_data: &[u8]) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_frame_control` is never used [INFO] [stdout] --> src/protocols/dot11.rs:2026:4 [INFO] [stdout] | [INFO] [stdout] 2026 | fn encode_frame_control( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_seq_control` is never used [INFO] [stdout] --> src/protocols/dot11.rs:2047:4 [INFO] [stdout] | [INFO] [stdout] 2047 | fn encode_seq_control( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_radiotap_length` is never used [INFO] [stdout] --> src/protocols/dot11.rs:2247:4 [INFO] [stdout] | [INFO] [stdout] 2247 | fn encode_radiotap_length( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_radiotap_present` is never used [INFO] [stdout] --> src/protocols/dot11.rs:2265:4 [INFO] [stdout] | [INFO] [stdout] 2265 | fn encode_radiotap_present( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_qos_control` is never used [INFO] [stdout] --> src/protocols/dot11.rs:2789:4 [INFO] [stdout] | [INFO] [stdout] 2789 | fn encode_qos_control( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_ht_control` is never used [INFO] [stdout] --> src/protocols/dot11.rs:2818:4 [INFO] [stdout] | [INFO] [stdout] 2818 | fn encode_ht_control( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_capabilities` is never used [INFO] [stdout] --> src/protocols/dot11.rs:3323:4 [INFO] [stdout] | [INFO] [stdout] 3323 | fn encode_capabilities( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_option_value` is never used [INFO] [stdout] --> src/protocols/dot11.rs:5065:4 [INFO] [stdout] | [INFO] [stdout] 5065 | fn decode_option_value( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_generic_asn1` is never used [INFO] [stdout] --> src/protocols/snmp.rs:3364:4 [INFO] [stdout] | [INFO] [stdout] 3364 | fn decode_generic_asn1( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_generic_asn1` is never used [INFO] [stdout] --> src/protocols/snmp.rs:3392:4 [INFO] [stdout] | [INFO] [stdout] 3392 | fn encode_generic_asn1( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:230:10 [INFO] [stdout] | [INFO] [stdout] 226 | #[derive(PartialEq, Clone, Eq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 230 | Func(fn() -> T), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling serde_cbor v0.11.2 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling criterion-plot v0.4.5 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling rusticata-macros v4.1.0 [INFO] [stderr] Compiling pcap-parser v0.14.1 [INFO] [stderr] Compiling criterion v0.3.6 [INFO] [stderr] Compiling oside v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `try_radiotap` [INFO] [stdout] --> examples/pcap2json.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let try_radiotap = p.data[0] == 0 && p.data[1] == 0; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_try_radiotap` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> tests/test_gre.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let (x, len) = x.unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ip` [INFO] [stdout] --> examples/first.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let ip = Ip::default(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ip` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layers2` [INFO] [stdout] --> examples/first.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | let layers2 = layers.clone(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_layers2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ip6` [INFO] [stdout] --> examples/first.rs:105:27 [INFO] [stdout] | [INFO] [stdout] 105 | if let Some((idx, ip6)) = ipv6_clone.find_layer(IPV6!()) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ip6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ipv4_test` [INFO] [stdout] --> examples/first.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | let ipv4_test = [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ipv4_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_udp` [INFO] [stdout] --> examples/first.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | let my_udp = &layers[UDP!()]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_udp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_src_ip` [INFO] [stdout] --> examples/first.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | let my_src_ip = layers[IP!()].src.clone(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_src_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `oside::protocols::snmp::*` [INFO] [stdout] --> examples/emptydns.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use oside::protocols::snmp::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `oside::SNMP` [INFO] [stdout] --> examples/emptydns.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use oside::SNMP; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `oside::SNMPGETORRESPONSE` [INFO] [stdout] --> examples/emptydns.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use oside::SNMPGETORRESPONSE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `oside::SNMPGETRESPONSE` [INFO] [stdout] --> examples/emptydns.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use oside::SNMPGETRESPONSE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `oside::SNMPV2C` [INFO] [stdout] --> examples/emptydns.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use oside::SNMPV2C; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `oside::SNMPVARBIND` [INFO] [stdout] --> examples/emptydns.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use oside::SNMPVARBIND; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `oside::SNMPGETBULK` [INFO] [stdout] --> examples/snmpwalk.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use oside::SNMPGETBULK; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `oside::SNMPGETNEXT` [INFO] [stdout] --> examples/snmpwalk.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use oside::SNMPGETNEXT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/first.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | packets.write_pcap("ipv6.pcap"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 109 | let _ = packets.write_pcap("ipv6.pcap"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> examples/emptydns.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let args: Vec = env::args().collect(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `testProto` should have an upper camel case name [INFO] [stdout] --> tests/test1.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct testProto { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `TestProto` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `testProto` should have an upper camel case name [INFO] [stdout] --> tests/test_encode.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct testProto { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `TestProto` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `testProto` should have an upper camel case name [INFO] [stdout] --> tests/test_pcap.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct testProto { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `TestProto` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `testProto` should have an upper camel case name [INFO] [stdout] --> tests/test_file_pcap.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct testProto { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `TestProto` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test1.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test1.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test1.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test1.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test1.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] ... [INFO] [stdout] 28 | let tp = Ether!() / IP!(src = "192.0.2.1") / UDP!() / TestProto!(); [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test1.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] ... [INFO] [stdout] 98 | let px = TestProto!().tos(2); [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test1.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] ... [INFO] [stdout] 106 | assert_ne!(fx[TestProto!()].mac2, Value::Random); [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `num_blocks` is assigned to, but never used [INFO] [stdout] --> tests/test_pcap.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let mut num_blocks = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_num_blocks` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `num_blocks` is never read [INFO] [stdout] --> tests/test_pcap.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | num_blocks += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> tests/test_pcap.rs:130:21 [INFO] [stdout] | [INFO] [stdout] 130 | if let Some(t) = pn.get_layer_mut(TCP!()) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pn` [INFO] [stdout] --> tests/test_pcap.rs:180:13 [INFO] [stdout] | [INFO] [stdout] 180 | let pn = p.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_pn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pn` [INFO] [stdout] --> tests/test_pcap.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | let pn = p.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_pn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test_pcap.rs:18:24 [INFO] [stdout] | [INFO] [stdout] 18 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test_pcap.rs:18:24 [INFO] [stdout] | [INFO] [stdout] 18 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test_pcap.rs:18:24 [INFO] [stdout] | [INFO] [stdout] 18 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test_pcap.rs:18:24 [INFO] [stdout] | [INFO] [stdout] 18 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test_snmp.rs:327:9 [INFO] [stdout] | [INFO] [stdout] 327 | let mut config = UsmConfig::new("testuser") [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test_snmp.rs:377:9 [INFO] [stdout] | [INFO] [stdout] 377 | let mut config = UsmConfig::new("testuser") [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `username` [INFO] [stdout] --> tests/test_snmp.rs:421:9 [INFO] [stdout] | [INFO] [stdout] 421 | let username = "MD5UserName"; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test_snmp.rs:693:9 [INFO] [stdout] | [INFO] [stdout] 693 | let mut config = UsmConfig::new("integration_test_user") [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test_snmp.rs:836:9 [INFO] [stdout] | [INFO] [stdout] 836 | let mut config = UsmConfig::new("testuser") [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `num_blocks` is assigned to, but never used [INFO] [stdout] --> tests/test_file_pcap.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let mut num_blocks = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_num_blocks` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `num_blocks` is never read [INFO] [stdout] --> tests/test_file_pcap.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | num_blocks += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test_snmp.rs:879:9 [INFO] [stdout] | [INFO] [stdout] 879 | let mut config = UsmConfig::new("testuser") [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expected` [INFO] [stdout] --> tests/test_snmp.rs:928:19 [INFO] [stdout] | [INFO] [stdout] 928 | for (oid_str, expected) in test_cases { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expected` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decoded` [INFO] [stdout] --> tests/test_snmp.rs:934:14 [INFO] [stdout] | [INFO] [stdout] 934 | let (decoded, _) = BerOid::decode::(&encoded).unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_decoded` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test_snmp.rs:1125:9 [INFO] [stdout] | [INFO] [stdout] 1125 | let mut config = UsmConfig::new("testuser") [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `discovery_config` [INFO] [stdout] --> tests/test_snmp.rs:1130:9 [INFO] [stdout] | [INFO] [stdout] 1130 | let discovery_config = UsmConfig::new("testuser"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_discovery_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USERNAME` is never used [INFO] [stdout] --> tests/test_snmp.rs:69:15 [INFO] [stdout] | [INFO] [stdout] 69 | pub const USERNAME: &str = "MD5UserName"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> tests/test_file_pcap.rs:127:9 [INFO] [stdout] | [INFO] [stdout] 127 | for i in 0..3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> tests/test_snmp.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | pcap.write_pcap("test_snmp.cap"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 37 | let _ = pcap.write_pcap("test_snmp.cap"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> tests/test_snmp.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | pcap.write_pcap("test_snmp_v3.cap"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 54 | let _ = pcap.write_pcap("test_snmp_v3.cap"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test_file_pcap.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test_file_pcap.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test_file_pcap.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test_file_pcap.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test_encode.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test_encode.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test_encode.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test_encode.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `usm_config` [INFO] [stdout] --> examples/snmpwalk.rs:269:9 [INFO] [stdout] | [INFO] [stdout] 269 | usm_config: &UsmConfig, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_usm_config` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `do_crypt` [INFO] [stdout] --> examples/snmpwalk.rs:885:9 [INFO] [stdout] | [INFO] [stdout] 885 | do_crypt: bool, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_do_crypt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> examples/snmpwalk.rs:1055:24 [INFO] [stdout] | [INFO] [stdout] 1055 | if let SnmpGetResponse(resp) = snmp_response { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decrypted_data` [INFO] [stdout] --> examples/snmpwalk.rs:1709:13 [INFO] [stdout] | [INFO] [stdout] 1709 | let decrypted_data = usm_config [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_decrypted_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Get` is never constructed [INFO] [stdout] --> examples/snmpwalk.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 29 | enum PduType { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 30 | Get, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PduType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse_raw_usm_params` is never used [INFO] [stdout] --> examples/snmpwalk.rs:844:8 [INFO] [stdout] | [INFO] [stdout] 265 | impl SnmpWalker { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 844 | fn parse_raw_usm_params(&self, raw_data: &[u8]) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/protocols/udp.rs:95:22 [INFO] [stdout] | [INFO] [stdout] 95 | for i in (my_index + 1..encoded_data.len()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 95 - for i in (my_index + 1..encoded_data.len()) { [INFO] [stdout] 95 + for i in my_index + 1..encoded_data.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/protocols/udp.rs:112:22 [INFO] [stdout] | [INFO] [stdout] 112 | for i in (my_index + 1..encoded_data.len()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 112 - for i in (my_index + 1..encoded_data.len()) { [INFO] [stdout] 112 + for i in my_index + 1..encoded_data.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/protocols/pvti.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 24 | panic!("FIXME"); [INFO] [stdout] | --------------- any code following this expression is unreachable [INFO] [stdout] 25 | self.data.to_vec() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/protocols/pvti.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 91 | panic!("FIXME"); [INFO] [stdout] | --------------- any code following this expression is unreachable [INFO] [stdout] 92 | / for chunk in &my_layer.chunks { [INFO] [stdout] 93 | | result.extend(chunk.encode::()); [INFO] [stdout] 94 | | } [INFO] [stdout] | |_____^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/oside_snmp_session.rs:884:24 [INFO] [stdout] | [INFO] [stdout] 884 | if let SnmpGetResponse(resp) = snmp_response { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `results_count` is never read [INFO] [stdout] --> src/oside_snmp_session.rs:868:25 [INFO] [stdout] | [INFO] [stdout] 868 | results_count += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `results_count` is never read [INFO] [stdout] --> src/oside_snmp_session.rs:913:29 [INFO] [stdout] | [INFO] [stdout] 913 | ... results_count += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `field_length` is never read [INFO] [stdout] --> src/protocols/dot11.rs:1793:13 [INFO] [stdout] | [INFO] [stdout] 1793 | field_length += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `field_length` is never read [INFO] [stdout] --> src/protocols/dot11.rs:1797:13 [INFO] [stdout] | [INFO] [stdout] 1797 | field_length += 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `field_length` is never read [INFO] [stdout] --> src/protocols/dot11.rs:1801:13 [INFO] [stdout] | [INFO] [stdout] 1801 | field_length += 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `field_length` is never read [INFO] [stdout] --> src/protocols/dot11.rs:1805:13 [INFO] [stdout] | [INFO] [stdout] 1805 | field_length += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `field_length` is never read [INFO] [stdout] --> src/protocols/dot11.rs:1809:13 [INFO] [stdout] | [INFO] [stdout] 1809 | field_length += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `offset` is never read [INFO] [stdout] --> src/protocols/dot11.rs:2642:9 [INFO] [stdout] | [INFO] [stdout] 2642 | offset += dot11_offset; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/protocols/dot11.rs:3896:13 [INFO] [stdout] | [INFO] [stdout] 3533 | 127 => { [INFO] [stdout] | --- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 3896 | 127 => { [INFO] [stdout] | ^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/protocols/dot11.rs:3984:13 [INFO] [stdout] | [INFO] [stdout] 3618 | 255 => { [INFO] [stdout] | --- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 3984 | 255 => { [INFO] [stdout] | ^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/protocols/dot11.rs:4199:13 [INFO] [stdout] | [INFO] [stdout] 4119 | ParsedElement::ExtendedCapabilities(capabilities) => { [INFO] [stdout] | ------------------------------------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 4199 | ParsedElement::ExtendedCapabilities(ec) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/protocols/dot11.rs:4402:13 [INFO] [stdout] | [INFO] [stdout] 4132 | ParsedElement::Unknown(element) => { [INFO] [stdout] | ------------------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 4402 | ParsedElement::Unknown(element) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse_raw_usm_params` is never used [INFO] [stdout] --> src/oside_snmp_session.rs:667:8 [INFO] [stdout] | [INFO] [stdout] 79 | impl OsideSnmpSession { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 667 | fn parse_raw_usm_params(&self, raw_data: &[u8]) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_frame_control` is never used [INFO] [stdout] --> src/protocols/dot11.rs:2026:4 [INFO] [stdout] | [INFO] [stdout] 2026 | fn encode_frame_control( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_seq_control` is never used [INFO] [stdout] --> src/protocols/dot11.rs:2047:4 [INFO] [stdout] | [INFO] [stdout] 2047 | fn encode_seq_control( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_radiotap_length` is never used [INFO] [stdout] --> src/protocols/dot11.rs:2247:4 [INFO] [stdout] | [INFO] [stdout] 2247 | fn encode_radiotap_length( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_radiotap_present` is never used [INFO] [stdout] --> src/protocols/dot11.rs:2265:4 [INFO] [stdout] | [INFO] [stdout] 2265 | fn encode_radiotap_present( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_qos_control` is never used [INFO] [stdout] --> src/protocols/dot11.rs:2789:4 [INFO] [stdout] | [INFO] [stdout] 2789 | fn encode_qos_control( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_ht_control` is never used [INFO] [stdout] --> src/protocols/dot11.rs:2818:4 [INFO] [stdout] | [INFO] [stdout] 2818 | fn encode_ht_control( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_capabilities` is never used [INFO] [stdout] --> src/protocols/dot11.rs:3323:4 [INFO] [stdout] | [INFO] [stdout] 3323 | fn encode_capabilities( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_option_value` is never used [INFO] [stdout] --> src/protocols/dot11.rs:5065:4 [INFO] [stdout] | [INFO] [stdout] 5065 | fn decode_option_value( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_generic_asn1` is never used [INFO] [stdout] --> src/protocols/snmp.rs:3364:4 [INFO] [stdout] | [INFO] [stdout] 3364 | fn decode_generic_asn1( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_generic_asn1` is never used [INFO] [stdout] --> src/protocols/snmp.rs:3392:4 [INFO] [stdout] | [INFO] [stdout] 3392 | fn encode_generic_asn1( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:230:10 [INFO] [stdout] | [INFO] [stdout] 226 | #[derive(PartialEq, Clone, Eq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 230 | Func(fn() -> T), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 55.07s [INFO] running `Command { std: "docker" "inspect" "a3fcc16c8c6951d2d489470109a5fb7562f65674a328e04acc1b2712724be055", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a3fcc16c8c6951d2d489470109a5fb7562f65674a328e04acc1b2712724be055", kill_on_drop: false }` [INFO] [stdout] a3fcc16c8c6951d2d489470109a5fb7562f65674a328e04acc1b2712724be055 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 2424aea4614fe0bc95554d03f49cd1120aa287c283f479bb1a57878307fdab12 [INFO] running `Command { std: "docker" "start" "-a" "2424aea4614fe0bc95554d03f49cd1120aa287c283f479bb1a57878307fdab12", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary parentheses around `for` iterator expression [INFO] [stderr] --> src/protocols/udp.rs:95:22 [INFO] [stderr] | [INFO] [stderr] 95 | for i in (my_index + 1..encoded_data.len()) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 95 - for i in (my_index + 1..encoded_data.len()) { [INFO] [stderr] 95 + for i in my_index + 1..encoded_data.len() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `for` iterator expression [INFO] [stderr] --> src/protocols/udp.rs:112:22 [INFO] [stderr] | [INFO] [stderr] 112 | for i in (my_index + 1..encoded_data.len()) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 112 - for i in (my_index + 1..encoded_data.len()) { [INFO] [stderr] 112 + for i in my_index + 1..encoded_data.len() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/protocols/pvti.rs:25:9 [INFO] [stderr] | [INFO] [stderr] 24 | panic!("FIXME"); [INFO] [stderr] | --------------- any code following this expression is unreachable [INFO] [stderr] 25 | self.data.to_vec() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unreachable statement [INFO] [stderr] --> src/protocols/pvti.rs:92:5 [INFO] [stderr] | [INFO] [stderr] 91 | panic!("FIXME"); [INFO] [stderr] | --------------- any code following this expression is unreachable [INFO] [stderr] 92 | / for chunk in &my_layer.chunks { [INFO] [stderr] 93 | | result.extend(chunk.encode::()); [INFO] [stderr] 94 | | } [INFO] [stderr] | |_____^ unreachable statement [INFO] [stderr] [INFO] [stderr] warning: irrefutable `if let` pattern [INFO] [stderr] --> src/oside_snmp_session.rs:884:24 [INFO] [stderr] | [INFO] [stderr] 884 | if let SnmpGetResponse(resp) = snmp_response { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this pattern will always match, so the `if let` is useless [INFO] [stderr] = help: consider replacing the `if let` with a `let` [INFO] [stderr] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `results_count` is never read [INFO] [stderr] --> src/oside_snmp_session.rs:868:25 [INFO] [stderr] | [INFO] [stderr] 868 | results_count += 1; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `results_count` is never read [INFO] [stderr] --> src/oside_snmp_session.rs:913:29 [INFO] [stderr] | [INFO] [stderr] 913 | ... results_count += 1; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `field_length` is never read [INFO] [stderr] --> src/protocols/dot11.rs:1793:13 [INFO] [stderr] | [INFO] [stderr] 1793 | field_length += 1; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `field_length` is never read [INFO] [stderr] --> src/protocols/dot11.rs:1797:13 [INFO] [stderr] | [INFO] [stderr] 1797 | field_length += 6; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `field_length` is never read [INFO] [stderr] --> src/protocols/dot11.rs:1801:13 [INFO] [stderr] | [INFO] [stderr] 1801 | field_length += 4; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `field_length` is never read [INFO] [stderr] --> src/protocols/dot11.rs:1805:13 [INFO] [stderr] | [INFO] [stderr] 1805 | field_length += 1; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `field_length` is never read [INFO] [stderr] --> src/protocols/dot11.rs:1809:13 [INFO] [stderr] | [INFO] [stderr] 1809 | field_length += 1; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `offset` is never read [INFO] [stderr] --> src/protocols/dot11.rs:2642:9 [INFO] [stderr] | [INFO] [stderr] 2642 | offset += dot11_offset; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/protocols/dot11.rs:3896:13 [INFO] [stderr] | [INFO] [stderr] 3533 | 127 => { [INFO] [stderr] | --- matches all the relevant values [INFO] [stderr] ... [INFO] [stderr] 3896 | 127 => { [INFO] [stderr] | ^^^ no value can reach this [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/protocols/dot11.rs:3984:13 [INFO] [stderr] | [INFO] [stderr] 3618 | 255 => { [INFO] [stderr] | --- matches all the relevant values [INFO] [stderr] ... [INFO] [stderr] 3984 | 255 => { [INFO] [stderr] | ^^^ no value can reach this [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/protocols/dot11.rs:4199:13 [INFO] [stderr] | [INFO] [stderr] 4119 | ParsedElement::ExtendedCapabilities(capabilities) => { [INFO] [stderr] | ------------------------------------------------- matches all the relevant values [INFO] [stderr] ... [INFO] [stderr] 4199 | ParsedElement::ExtendedCapabilities(ec) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/protocols/dot11.rs:4402:13 [INFO] [stderr] | [INFO] [stderr] 4132 | ParsedElement::Unknown(element) => { [INFO] [stderr] | ------------------------------- matches all the relevant values [INFO] [stderr] ... [INFO] [stderr] 4402 | ParsedElement::Unknown(element) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stderr] [INFO] [stderr] warning: method `parse_raw_usm_params` is never used [INFO] [stderr] --> src/oside_snmp_session.rs:667:8 [INFO] [stderr] | [INFO] [stderr] 79 | impl OsideSnmpSession { [INFO] [stderr] | --------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 667 | fn parse_raw_usm_params(&self, raw_data: &[u8]) -> Option> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: function `encode_frame_control` is never used [INFO] [stderr] --> src/protocols/dot11.rs:2026:4 [INFO] [stderr] | [INFO] [stderr] 2026 | fn encode_frame_control( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `encode_seq_control` is never used [INFO] [stderr] --> src/protocols/dot11.rs:2047:4 [INFO] [stderr] | [INFO] [stderr] 2047 | fn encode_seq_control( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `encode_radiotap_length` is never used [INFO] [stderr] --> src/protocols/dot11.rs:2247:4 [INFO] [stderr] | [INFO] [stderr] 2247 | fn encode_radiotap_length( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `encode_radiotap_present` is never used [INFO] [stderr] --> src/protocols/dot11.rs:2265:4 [INFO] [stderr] | [INFO] [stderr] 2265 | fn encode_radiotap_present( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `encode_qos_control` is never used [INFO] [stderr] --> src/protocols/dot11.rs:2789:4 [INFO] [stderr] | [INFO] [stderr] 2789 | fn encode_qos_control( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `encode_ht_control` is never used [INFO] [stderr] --> src/protocols/dot11.rs:2818:4 [INFO] [stderr] | [INFO] [stderr] 2818 | fn encode_ht_control( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `encode_capabilities` is never used [INFO] [stderr] --> src/protocols/dot11.rs:3323:4 [INFO] [stderr] | [INFO] [stderr] 3323 | fn encode_capabilities( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `decode_option_value` is never used [INFO] [stderr] --> src/protocols/dot11.rs:5065:4 [INFO] [stderr] | [INFO] [stderr] 5065 | fn decode_option_value( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `decode_generic_asn1` is never used [INFO] [stderr] --> src/protocols/snmp.rs:3364:4 [INFO] [stderr] | [INFO] [stderr] 3364 | fn decode_generic_asn1( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `encode_generic_asn1` is never used [INFO] [stderr] --> src/protocols/snmp.rs:3392:4 [INFO] [stderr] | [INFO] [stderr] 3392 | fn encode_generic_asn1( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stderr] --> src/lib.rs:49:10 [INFO] [stderr] | [INFO] [stderr] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the address of the same function can vary between different codegen units [INFO] [stderr] = note: furthermore, different functions could have the same address after being merged together [INFO] [stderr] = note: for more information visit [INFO] [stderr] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stderr] --> src/lib.rs:49:10 [INFO] [stderr] | [INFO] [stderr] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the address of the same function can vary between different codegen units [INFO] [stderr] = note: furthermore, different functions could have the same address after being merged together [INFO] [stderr] = note: for more information visit [INFO] [stderr] [INFO] [stderr] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stderr] --> src/lib.rs:230:10 [INFO] [stderr] | [INFO] [stderr] 226 | #[derive(PartialEq, Clone, Eq)] [INFO] [stderr] | --------- in this derive macro expansion [INFO] [stderr] ... [INFO] [stderr] 230 | Func(fn() -> T), [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the address of the same function can vary between different codegen units [INFO] [stderr] = note: furthermore, different functions could have the same address after being merged together [INFO] [stderr] = note: for more information visit [INFO] [stderr] [INFO] [stderr] warning: `oside` (lib) generated 40 warnings (9 duplicates) (run `cargo fix --lib -p oside` to apply 2 suggestions) [INFO] [stderr] warning: type `testProto` should have an upper camel case name [INFO] [stderr] --> tests/test_encode.rs:11:12 [INFO] [stderr] | [INFO] [stderr] 11 | pub struct testProto { [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to upper camel case: `TestProto` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable `__testProto` should have a snake case name [INFO] [stderr] --> tests/test_encode.rs:9:24 [INFO] [stderr] | [INFO] [stderr] 9 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable `__testProto` should have a snake case name [INFO] [stderr] --> tests/test_encode.rs:9:24 [INFO] [stderr] | [INFO] [stderr] 9 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `try_radiotap` [INFO] [stderr] --> examples/pcap2json.rs:33:13 [INFO] [stderr] | [INFO] [stderr] 33 | let try_radiotap = p.data[0] == 0 && p.data[1] == 0; [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_try_radiotap` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: type `testProto` should have an upper camel case name [INFO] [stderr] --> tests/test_pcap.rs:20:12 [INFO] [stderr] | [INFO] [stderr] 20 | pub struct testProto { [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to upper camel case: `TestProto` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable `num_blocks` is assigned to, but never used [INFO] [stderr] --> tests/test_pcap.rs:46:9 [INFO] [stderr] | [INFO] [stderr] 46 | let mut num_blocks = 0; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_num_blocks` instead [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `num_blocks` is never read [INFO] [stderr] --> tests/test_pcap.rs:50:17 [INFO] [stderr] | [INFO] [stderr] 50 | num_blocks += 1; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `t` [INFO] [stderr] --> tests/test_pcap.rs:130:21 [INFO] [stderr] | [INFO] [stderr] 130 | if let Some(t) = pn.get_layer_mut(TCP!()) { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pn` [INFO] [stderr] --> tests/test_pcap.rs:180:13 [INFO] [stderr] | [INFO] [stderr] 180 | let pn = p.clone(); [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_pn` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pn` [INFO] [stderr] --> tests/test_pcap.rs:194:13 [INFO] [stderr] | [INFO] [stderr] 194 | let pn = p.clone(); [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_pn` [INFO] [stderr] [INFO] [stderr] warning: variable `__testProto` should have a snake case name [INFO] [stderr] --> tests/test_pcap.rs:18:24 [INFO] [stderr] | [INFO] [stderr] 18 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable `__testProto` should have a snake case name [INFO] [stderr] --> tests/test_pcap.rs:18:24 [INFO] [stderr] | [INFO] [stderr] 18 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test_snmp.rs:327:9 [INFO] [stderr] | [INFO] [stderr] 327 | let mut config = UsmConfig::new("testuser") [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test_snmp.rs:377:9 [INFO] [stderr] | [INFO] [stderr] 377 | let mut config = UsmConfig::new("testuser") [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `username` [INFO] [stderr] --> tests/test_snmp.rs:421:9 [INFO] [stderr] | [INFO] [stderr] 421 | let username = "MD5UserName"; [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test_snmp.rs:693:9 [INFO] [stderr] | [INFO] [stderr] 693 | let mut config = UsmConfig::new("integration_test_user") [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test_snmp.rs:836:9 [INFO] [stderr] | [INFO] [stderr] 836 | let mut config = UsmConfig::new("testuser") [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test_snmp.rs:879:9 [INFO] [stderr] | [INFO] [stderr] 879 | let mut config = UsmConfig::new("testuser") [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `expected` [INFO] [stderr] --> tests/test_snmp.rs:928:19 [INFO] [stderr] | [INFO] [stderr] 928 | for (oid_str, expected) in test_cases { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expected` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `decoded` [INFO] [stderr] --> tests/test_snmp.rs:934:14 [INFO] [stderr] | [INFO] [stderr] 934 | let (decoded, _) = BerOid::decode::(&encoded).unwrap(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_decoded` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test_snmp.rs:1125:9 [INFO] [stderr] | [INFO] [stderr] 1125 | let mut config = UsmConfig::new("testuser") [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `discovery_config` [INFO] [stderr] --> tests/test_snmp.rs:1130:9 [INFO] [stderr] | [INFO] [stderr] 1130 | let discovery_config = UsmConfig::new("testuser"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_discovery_config` [INFO] [stderr] [INFO] [stderr] warning: constant `USERNAME` is never used [INFO] [stderr] --> tests/test_snmp.rs:69:15 [INFO] [stderr] | [INFO] [stderr] 69 | pub const USERNAME: &str = "MD5UserName"; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> tests/test_snmp.rs:37:5 [INFO] [stderr] | [INFO] [stderr] 37 | pcap.write_pcap("test_snmp.cap"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 37 | let _ = pcap.write_pcap("test_snmp.cap"); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> tests/test_snmp.rs:54:5 [INFO] [stderr] | [INFO] [stderr] 54 | pcap.write_pcap("test_snmp_v3.cap"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 54 | let _ = pcap.write_pcap("test_snmp_v3.cap"); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: type `testProto` should have an upper camel case name [INFO] [stderr] --> tests/test_file_pcap.rs:22:12 [INFO] [stderr] | [INFO] [stderr] 22 | pub struct testProto { [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to upper camel case: `TestProto` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable `num_blocks` is assigned to, but never used [INFO] [stderr] --> tests/test_file_pcap.rs:65:9 [INFO] [stderr] | [INFO] [stderr] 65 | let mut num_blocks = 0; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_num_blocks` instead [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `num_blocks` is never read [INFO] [stderr] --> tests/test_file_pcap.rs:69:17 [INFO] [stderr] | [INFO] [stderr] 69 | num_blocks += 1; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> tests/test_file_pcap.rs:127:9 [INFO] [stderr] | [INFO] [stderr] 127 | for i in 0..3 { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: variable `__testProto` should have a snake case name [INFO] [stderr] --> tests/test_file_pcap.rs:20:24 [INFO] [stderr] | [INFO] [stderr] 20 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable `__testProto` should have a snake case name [INFO] [stderr] --> tests/test_file_pcap.rs:20:24 [INFO] [stderr] | [INFO] [stderr] 20 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: type `testProto` should have an upper camel case name [INFO] [stderr] --> tests/test1.rs:13:12 [INFO] [stderr] | [INFO] [stderr] 13 | pub struct testProto { [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to upper camel case: `TestProto` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable `__testProto` should have a snake case name [INFO] [stderr] --> tests/test1.rs:11:24 [INFO] [stderr] | [INFO] [stderr] 11 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable `__testProto` should have a snake case name [INFO] [stderr] --> tests/test1.rs:11:24 [INFO] [stderr] | [INFO] [stderr] 11 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable `__testProto` should have a snake case name [INFO] [stderr] --> tests/test1.rs:11:24 [INFO] [stderr] | [INFO] [stderr] 11 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stderr] ... [INFO] [stderr] 28 | let tp = Ether!() / IP!(src = "192.0.2.1") / UDP!() / TestProto!(); [INFO] [stderr] | ------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable `__testProto` should have a snake case name [INFO] [stderr] --> tests/test1.rs:11:24 [INFO] [stderr] | [INFO] [stderr] 11 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stderr] ... [INFO] [stderr] 98 | let px = TestProto!().tos(2); [INFO] [stderr] | ------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable `__testProto` should have a snake case name [INFO] [stderr] --> tests/test1.rs:11:24 [INFO] [stderr] | [INFO] [stderr] 11 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stderr] ... [INFO] [stderr] 106 | assert_ne!(fx[TestProto!()].mac2, Value::Random); [INFO] [stderr] | ------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused import: `oside::protocols::snmp::*` [INFO] [stderr] --> examples/emptydns.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use oside::protocols::snmp::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `oside::SNMP` [INFO] [stderr] --> examples/emptydns.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use oside::SNMP; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `oside::SNMPGETORRESPONSE` [INFO] [stderr] --> examples/emptydns.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use oside::SNMPGETORRESPONSE; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `oside::SNMPGETRESPONSE` [INFO] [stderr] --> examples/emptydns.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | use oside::SNMPGETRESPONSE; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `oside::SNMPV2C` [INFO] [stderr] --> examples/emptydns.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | use oside::SNMPV2C; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `oside::SNMPVARBIND` [INFO] [stderr] --> examples/emptydns.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 15 | use oside::SNMPVARBIND; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `args` [INFO] [stderr] --> examples/emptydns.rs:18:9 [INFO] [stderr] | [INFO] [stderr] 18 | let args: Vec = env::args().collect(); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ip` [INFO] [stderr] --> examples/first.rs:50:9 [INFO] [stderr] | [INFO] [stderr] 50 | let ip = Ip::default(); [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_ip` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `layers2` [INFO] [stderr] --> examples/first.rs:81:9 [INFO] [stderr] | [INFO] [stderr] 81 | let layers2 = layers.clone(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_layers2` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ip6` [INFO] [stderr] --> examples/first.rs:105:27 [INFO] [stderr] | [INFO] [stderr] 105 | if let Some((idx, ip6)) = ipv6_clone.find_layer(IPV6!()) { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ip6` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ipv4_test` [INFO] [stderr] --> examples/first.rs:112:9 [INFO] [stderr] | [INFO] [stderr] 112 | let ipv4_test = [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ipv4_test` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `my_udp` [INFO] [stderr] --> examples/first.rs:133:9 [INFO] [stderr] | [INFO] [stderr] 133 | let my_udp = &layers[UDP!()]; [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_udp` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `my_src_ip` [INFO] [stderr] --> examples/first.rs:134:9 [INFO] [stderr] | [INFO] [stderr] 134 | let my_src_ip = layers[IP!()].src.clone(); [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_src_ip` [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> examples/first.rs:109:9 [INFO] [stderr] | [INFO] [stderr] 109 | packets.write_pcap("ipv6.pcap"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 109 | let _ = packets.write_pcap("ipv6.pcap"); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused import: `oside::SNMPGETBULK` [INFO] [stderr] --> examples/snmpwalk.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | use oside::SNMPGETBULK; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `oside::SNMPGETNEXT` [INFO] [stderr] --> examples/snmpwalk.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 20 | use oside::SNMPGETNEXT; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `usm_config` [INFO] [stderr] --> examples/snmpwalk.rs:269:9 [INFO] [stderr] | [INFO] [stderr] 269 | usm_config: &UsmConfig, [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_usm_config` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `do_crypt` [INFO] [stderr] --> examples/snmpwalk.rs:885:9 [INFO] [stderr] | [INFO] [stderr] 885 | do_crypt: bool, [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_do_crypt` [INFO] [stderr] [INFO] [stderr] warning: irrefutable `if let` pattern [INFO] [stderr] --> examples/snmpwalk.rs:1055:24 [INFO] [stderr] | [INFO] [stderr] 1055 | if let SnmpGetResponse(resp) = snmp_response { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this pattern will always match, so the `if let` is useless [INFO] [stderr] = help: consider replacing the `if let` with a `let` [INFO] [stderr] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `decrypted_data` [INFO] [stderr] --> examples/snmpwalk.rs:1709:13 [INFO] [stderr] | [INFO] [stderr] 1709 | let decrypted_data = usm_config [INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_decrypted_data` [INFO] [stderr] [INFO] [stderr] warning: variant `Get` is never constructed [INFO] [stderr] --> examples/snmpwalk.rs:30:5 [INFO] [stderr] | [INFO] [stderr] 29 | enum PduType { [INFO] [stderr] | ------- variant in this enum [INFO] [stderr] 30 | Get, [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `PduType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: method `parse_raw_usm_params` is never used [INFO] [stderr] --> examples/snmpwalk.rs:844:8 [INFO] [stderr] | [INFO] [stderr] 265 | impl SnmpWalker { [INFO] [stderr] | --------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 844 | fn parse_raw_usm_params(&self, raw_data: &[u8]) -> Option> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `oside` (test "test_encode") generated 5 warnings (2 duplicates) [INFO] [stderr] warning: `oside` (example "pcap2json") generated 1 warning (run `cargo fix --example "pcap2json" -p oside` to apply 1 suggestion) [INFO] [stderr] warning: `oside` (test "test_pcap") generated 10 warnings (2 duplicates) (run `cargo fix --test "test_pcap" -p oside` to apply 3 suggestions) [INFO] [stderr] warning: `oside` (test "test_snmp") generated 13 warnings (run `cargo fix --test "test_snmp" -p oside` to apply 10 suggestions) [INFO] [stderr] warning: `oside` (test "test_file_pcap") generated 8 warnings (2 duplicates) (run `cargo fix --test "test_file_pcap" -p oside` to apply 1 suggestion) [INFO] [stderr] warning: `oside` (test "test1") generated 8 warnings (2 duplicates) [INFO] [stderr] warning: `oside` (example "emptydns") generated 7 warnings (run `cargo fix --example "emptydns" -p oside` to apply 7 suggestions) [INFO] [stderr] warning: `oside` (lib test) generated 40 warnings (40 duplicates) [INFO] [stderr] warning: `oside` (example "first") generated 7 warnings (run `cargo fix --example "first" -p oside` to apply 6 suggestions) [INFO] [stderr] warning: `oside` (example "snmpwalk") generated 8 warnings (run `cargo fix --example "snmpwalk" -p oside` to apply 5 suggestions) [INFO] [stderr] warning: unused variable: `len` [INFO] [stderr] --> tests/test_gre.rs:12:13 [INFO] [stderr] | [INFO] [stderr] 12 | let (x, len) = x.unwrap(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `oside` (test "test_gre") generated 1 warning (run `cargo fix --test "test_gre" -p oside` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.33s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/oside-72c28c3a5368d7f9) [INFO] [stdout] [INFO] [stdout] running 30 tests [INFO] [stdout] test encdec::asn1::tests::test_encode_decode_u16 ... ok [INFO] [stdout] test asn1::tests::test_sequence ... ok [INFO] [stdout] test asn1::tests::test_boolean ... ok [INFO] [stdout] test asn1::tests::test_integer ... ok [INFO] [stdout] test encdec::asn1::tests::test_encode_length ... ok [INFO] [stdout] test encdec::asn1::tests::test_encode_decode_vec ... ok [INFO] [stdout] test encdec::asn1::tests::test_encode_decode_u8 ... ok [INFO] [stdout] test encdec::asn1::tests::test_encode_tag ... ok [INFO] [stdout] test protocols::snmp::usm_tests::test_usm_config_builder ... ok [INFO] [stdout] test protocols::tftp::tests::test_encode_decode_data ... ok [INFO] [stdout] test protocols::ripv2::tests::test_rip_entry_builder ... ok [INFO] [stdout] test protocols::ripv2::tests::test_rip_response ... ok [INFO] [stdout] test protocols::tftp::tests::test_encode_decode_oack ... ok [INFO] [stdout] test protocols::tftp::tests::test_encode_decode_read_request ... ok [INFO] [stdout] test protocols::tftp::tests::test_encode_decode_raw ... ok [INFO] [stdout] test protocols::snmp::tests::test_builder_pattern ... ok [INFO] [stdout] test protocols::tftp::tests::test_encode_decode_write_request ... ok [INFO] [stdout] test protocols::snmp::tests::test_snmp_v2c_getbulk ... ok [INFO] [stdout] test protocols::snmp::tests::test_snmp_value_creation ... ok [INFO] [stdout] test protocols::snmp::tests::test_snmpv3_no_auth ... ok [INFO] [stdout] test protocols::snmp::usm_tests::test_encrypt_decrypt_aes ... ok [INFO] [stdout] test protocols::tftp::tests::test_encode_decode_ack ... ok [INFO] [stdout] test protocols::ripv2::tests::test_rip_request ... ok [INFO] [stdout] test protocols::tftp::tests::test_encode_decode_error ... ok [INFO] [stdout] test encdec::asn1::tests::test_encode_decode_u32 ... ok [INFO] [stdout] test protocols::tftp::tests::test_malformed_packet_handling ... ok [INFO] [stdout] test encdec::asn1::tests::test_encode_decode_asn1_object ... ok [INFO] [stdout] test protocols::snmp::tests::test_snmp_v1_get ... ok [INFO] [stdout] test protocols::snmp::usm_tests::test_priv_key_derivation ... ok [INFO] [stderr] Running tests/test1.rs (/opt/rustwide/target/debug/deps/test1-572e97d549a10ca0) [INFO] [stdout] test protocols::snmp::usm_tests::test_auth_key_derivation ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 30 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test test_inet_csum1 ... ok [INFO] [stdout] test show_type_id ... ok [INFO] [stdout] test custom_proto ... ok [INFO] [stdout] test make_random ... ok [INFO] [stdout] test serialize_1 ... ok [INFO] [stdout] test it_works ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Running tests/test_decode.rs (/opt/rustwide/target/debug/deps/test_decode-cde67d5d5979d87b) [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test decode_test_dot1q ... ok [INFO] [stdout] test decode_arp_canonical ... ok [INFO] [stdout] test decode_test_1 ... ok [INFO] [stdout] test decode_arp_strange ... ok [INFO] [stdout] test decode_test_icmp ... ok [INFO] [stdout] test decode_test_raw ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s [INFO] [stdout] [INFO] [stderr] Running tests/test_encode.rs (/opt/rustwide/target/debug/deps/test_encode-2c96456fb8652ec1) [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test test_multiple_layer_instances ... ok [INFO] [stdout] test test_multiple_layer_instances_innermost ... ok [INFO] [stdout] test make_udp_checksum_tiny ... ok [INFO] [stdout] test encode_arp ... ok [INFO] [stdout] test make_tcp_checksum_tiny ... ok [INFO] [stdout] test make_udp_checksum_payload ... ok [INFO] [stdout] test make_geneve ... ok [INFO] [stdout] test make_random_encode ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s [INFO] [stdout] [INFO] [stderr] Running tests/test_file_pcap.rs (/opt/rustwide/target/debug/deps/test_file_pcap-597ebb3f53fcc96e) [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test test_write_pcap_with_erspan ... ok [INFO] [stdout] test test_read_reencode_pcap_bytes ... ok [INFO] [stdout] test test_write_pcap_from_scratch ... ok [INFO] [stdout] test test_read_pcap_bytes ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Running tests/test_gre.rs (/opt/rustwide/target/debug/deps/test_gre-bd86e364f6f29f4e) [INFO] [stdout] [INFO] [stderr] Running tests/test_pcap.rs (/opt/rustwide/target/debug/deps/test_pcap-227f3f6c0db11182) [INFO] [stdout] running 2 tests [INFO] [stdout] test encode_erspan_version ... ok [INFO] [stdout] test decode_gre_first_test ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test test_pcap_vxlan2 ... ok [INFO] [stdout] test test_pcap_vxlan1 ... ok [INFO] [stdout] test test_pcap2_plain ... ok [INFO] [stdout] test test_pcap3_nomod ... ok [INFO] [stdout] test test_pcap3_csum ... ok [INFO] [stdout] test test_pcap1 ... ok [INFO] [stdout] test test_pcap_dhcp ... ok [INFO] [stdout] test test_decode_encode_pcaps ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Running tests/test_snmp.rs (/opt/rustwide/target/debug/deps/test_snmp-cdf9180d979d8dc3) [INFO] [stdout] [INFO] [stdout] running 40 tests [INFO] [stdout] test encode_snmp_1 ... ok [INFO] [stdout] test test_ber_encoding_roundtrip ... ok [INFO] [stdout] test test_authentication_error_cases ... ok [INFO] [stdout] test test_ber_oid_parsing ... ok [INFO] [stdout] test test_community_string_handling ... ok [INFO] [stdout] test test_iv_calculation ... ok [INFO] [stdout] test test_hmac_md5_authentication ... ok [INFO] [stdout] test test_privacy_error_cases ... ok [INFO] [stdout] test test_privacy_salt_generation ... ok [INFO] [stdout] test test_snmp_builder_pattern ... ok [INFO] [stdout] test test_interface_walk ... ok [INFO] [stdout] test test_snmp_error_handling ... ok [INFO] [stdout] test test_snmp_value_utilities ... ok [INFO] [stdout] test test_snmpv1_get_request ... ok [INFO] [stdout] test test_snmpv2c_getbulk_request ... ok [INFO] [stdout] test test_snmp_bulk_decode ... ok [INFO] [stdout] test test_hmac_sha1_authentication ... ok [INFO] [stdout] test test_snmp_value_encoding ... ok [INFO] [stdout] test test_snmpv3_discovery_message ... ok [INFO] [stdout] test test_snmpv3_message_creation ... ok [INFO] [stdout] test test_snmpv3_encoding ... ok [INFO] [stdout] test test_sha1_key_derivation ... ok [INFO] [stdout] test test_system_info_query ... ok [INFO] [stdout] test test_privacy_key_derivation_aes ... ok [INFO] [stdout] test test_snmpv3_authenticated_encoding ... ok [INFO] [stdout] test test_md5_key_derivation ... ok [INFO] [stdout] test test_aes_encryption_decryption ... ok [INFO] [stdout] test test_rfc3414_test_vectors ... ok [INFO] [stdout] test test_privacy_key_derivation_des ... ok [INFO] [stdout] test test_encryption_corner_cases ... FAILED [INFO] [stdout] test test_des_encryption_decryption ... FAILED [INFO] [stdout] test test_snmpwalk_authentication_flow ... ok [INFO] [stdout] test test_complete_snmpv3_flow ... ok [INFO] [stdout] test test_algorithm_combinations ... FAILED [INFO] [stdout] test test_usm_config_builder ... ok [INFO] [stdout] test test_snmpv3_get_request_encoding ... ok [INFO] [stdout] test test_key_derivation_edge_cases ... ok [INFO] [stdout] test test_snmpv3_privacy_encoding ... ok [INFO] [stdout] test test_usm_encoding_context ... ok [INFO] [stdout] test test_key_derivation_performance ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- test_encryption_corner_cases stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'test_encryption_corner_cases' (104) panicked at tests/test_snmp.rs:673:61: [INFO] [stdout] called `Result::unwrap()` on an `Err` value: "Raw decryption didn't produce valid ASN.1 data" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x56376f91fa22 - std[716c9a7a72e5c14e]::backtrace_rs::backtrace::libunwind::trace [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x56376f91fa22 - std[716c9a7a72e5c14e]::backtrace_rs::backtrace::trace_unsynchronized:: [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x56376f91fa22 - std[716c9a7a72e5c14e]::sys::backtrace::_print_fmt [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/sys/backtrace.rs:74:9 [INFO] [stdout] 3: 0x56376f91fa22 - <::print::DisplayBacktrace as core[c5ed12ab89cc536a]::fmt::Display>::fmt [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/sys/backtrace.rs:44:26 [INFO] [stdout] 4: 0x56376f938b5a - ::fmt [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/core/src/fmt/rt.rs:152:76 [INFO] [stdout] 5: 0x56376f938b5a - core[c5ed12ab89cc536a]::fmt::write [INFO] [stdout] 6: 0x56376f925f66 - std[716c9a7a72e5c14e]::io::default_write_fmt::> [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x56376f925f66 - as std[716c9a7a72e5c14e]::io::Write>::write_fmt [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/io/mod.rs:1994:13 [INFO] [stdout] 8: 0x56376f8fdd4f - ::print [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/sys/backtrace.rs:47:9 [INFO] [stdout] 9: 0x56376f8fdd4f - std[716c9a7a72e5c14e]::panicking::default_hook::{closure#0} [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panicking.rs:292:27 [INFO] [stdout] 10: 0x56376f917b69 - std[716c9a7a72e5c14e]::panicking::default_hook [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panicking.rs:316:9 [INFO] [stdout] 11: 0x56376f05d2ae - core[c5ed12ab89cc536a]::ops::function::Fn<(&'a std[716c9a7a72e5c14e]::panic::PanicHookInfo<'b>,), Output = ()> + core[c5ed12ab89cc536a]::marker::Sync + core[c5ed12ab89cc536a]::marker::Send> as core[c5ed12ab89cc536a]::ops::function::Fn<(&std[716c9a7a72e5c14e]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/alloc/src/boxed.rs:2220:9 [INFO] [stdout] 12: 0x56376f05d2ae - test[64760d2bdea328cc]::test_main_with_exit_callback::::{closure#0} [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x56376f917d22 - core[c5ed12ab89cc536a]::ops::function::Fn<(&'a std[716c9a7a72e5c14e]::panic::PanicHookInfo<'b>,), Output = ()> + core[c5ed12ab89cc536a]::marker::Sync + core[c5ed12ab89cc536a]::marker::Send> as core[c5ed12ab89cc536a]::ops::function::Fn<(&std[716c9a7a72e5c14e]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/alloc/src/boxed.rs:2220:9 [INFO] [stdout] 14: 0x56376f917d22 - std[716c9a7a72e5c14e]::panicking::panic_with_hook [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panicking.rs:833:13 [INFO] [stdout] 15: 0x56376f8fde08 - std[716c9a7a72e5c14e]::panicking::panic_handler::{closure#0} [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panicking.rs:698:13 [INFO] [stdout] 16: 0x56376f8f57a9 - std[716c9a7a72e5c14e]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/sys/backtrace.rs:182:18 [INFO] [stdout] 17: 0x56376f8fec5d - __rustc[4f0b026143eab78e]::rust_begin_unwind [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panicking.rs:689:5 [INFO] [stdout] 18: 0x56376f93934c - core[c5ed12ab89cc536a]::panicking::panic_fmt [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/core/src/panicking.rs:80:14 [INFO] [stdout] 19: 0x56376f939092 - core[c5ed12ab89cc536a]::result::unwrap_failed [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/core/src/result.rs:1867:5 [INFO] [stdout] 20: 0x56376edaaca0 - , alloc[9c68fdf4f4f29218]::string::String>>::unwrap [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/core/src/result.rs:1233:23 [INFO] [stdout] 21: 0x56376edaaca0 - test_snmp[2f9f67c7916f5115]::test_encryption_corner_cases [INFO] [stdout] at /opt/rustwide/workdir/tests/test_snmp.rs:673:61 [INFO] [stdout] 22: 0x56376ed9fca7 - test_snmp[2f9f67c7916f5115]::test_encryption_corner_cases::{closure#0} [INFO] [stdout] at /opt/rustwide/workdir/tests/test_snmp.rs:665:34 [INFO] [stdout] 23: 0x56376edb7116 - >::call_once [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x56376f05165b - core[c5ed12ab89cc536a]::result::Result<(), alloc[9c68fdf4f4f29218]::string::String> as core[c5ed12ab89cc536a]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x56376f05165b - test[64760d2bdea328cc]::__rust_begin_short_backtrace::, fn() -> core[c5ed12ab89cc536a]::result::Result<(), alloc[9c68fdf4f4f29218]::string::String>> [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/test/src/lib.rs:663:18 [INFO] [stdout] 26: 0x56376f05deba - test[64760d2bdea328cc]::run_test_in_process::{closure#0} [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/test/src/lib.rs:686:74 [INFO] [stdout] 27: 0x56376f05deba - as core[c5ed12ab89cc536a]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 28: 0x56376f05deba - std[716c9a7a72e5c14e]::panicking::catch_unwind::do_call::, core[c5ed12ab89cc536a]::result::Result<(), alloc[9c68fdf4f4f29218]::string::String>> [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panicking.rs:581:40 [INFO] [stdout] 29: 0x56376f05deba - std[716c9a7a72e5c14e]::panicking::catch_unwind::, core[c5ed12ab89cc536a]::panic::unwind_safe::AssertUnwindSafe> [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panicking.rs:544:19 [INFO] [stdout] 30: 0x56376f05deba - std[716c9a7a72e5c14e]::panic::catch_unwind::, core[c5ed12ab89cc536a]::result::Result<(), alloc[9c68fdf4f4f29218]::string::String>> [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x56376f05deba - test[64760d2bdea328cc]::run_test_in_process [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/test/src/lib.rs:686:27 [INFO] [stdout] 32: 0x56376f05deba - test[64760d2bdea328cc]::run_test::{closure#0} [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/test/src/lib.rs:607:43 [INFO] [stdout] 33: 0x56376f058384 - test[64760d2bdea328cc]::run_test::{closure#1} [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/test/src/lib.rs:637:41 [INFO] [stdout] 34: 0x56376f058384 - std[716c9a7a72e5c14e]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/sys/backtrace.rs:166:18 [INFO] [stdout] 35: 0x56376f0609b2 - std[716c9a7a72e5c14e]::thread::lifecycle::spawn_unchecked::::{closure#1}::{closure#0} [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/thread/lifecycle.rs:91:13 [INFO] [stdout] 36: 0x56376f0609b2 - ::{closure#1}::{closure#0}> as core[c5ed12ab89cc536a]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 37: 0x56376f0609b2 - std[716c9a7a72e5c14e]::panicking::catch_unwind::do_call::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panicking.rs:581:40 [INFO] [stdout] 38: 0x56376f0609b2 - std[716c9a7a72e5c14e]::panicking::catch_unwind::<(), core[c5ed12ab89cc536a]::panic::unwind_safe::AssertUnwindSafe::{closure#1}::{closure#0}>> [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panicking.rs:544:19 [INFO] [stdout] 39: 0x56376f0609b2 - std[716c9a7a72e5c14e]::panic::catch_unwind::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x56376f0609b2 - std[716c9a7a72e5c14e]::thread::lifecycle::spawn_unchecked::::{closure#1} [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/thread/lifecycle.rs:89:26 [INFO] [stdout] 41: 0x56376f0609b2 - ::{closure#1} as core[c5ed12ab89cc536a]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 42: 0x56376f91f12f - + core[c5ed12ab89cc536a]::marker::Send> as core[c5ed12ab89cc536a]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/alloc/src/boxed.rs:2206:9 [INFO] [stdout] 43: 0x56376f91f12f - ::new::thread_start [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/sys/thread/unix.rs:119:17 [INFO] [stdout] 44: 0x72431666daa4 - [INFO] [stdout] 45: 0x7243166faa64 - clone [INFO] [stdout] 46: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test_des_encryption_decryption stdout ---- [INFO] [stdout] DES test - Salt: [00, 00, 00, 01, 00, 00, 30, 39] [INFO] [stdout] DES test - IV: [3b, df, fe, eb, 4f, 51, 1f, 30] [INFO] [stdout] DES test - Privacy key: [23, 6d, f4, 50, be, 80, 3e, 40, 3b, df, fe, ea, 4f, 51, 2f, 09] [INFO] [stdout] DES test - Ciphertext length: 88 [INFO] [stdout] [INFO] [stdout] thread 'test_des_encryption_decryption' (103) panicked at tests/test_snmp.rs:272:67: [INFO] [stdout] called `Result::unwrap()` on an `Err` value: "Raw decryption didn't produce valid ASN.1 data" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x56376f91fa22 - std[716c9a7a72e5c14e]::backtrace_rs::backtrace::libunwind::trace [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x56376f91fa22 - std[716c9a7a72e5c14e]::backtrace_rs::backtrace::trace_unsynchronized:: [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x56376f91fa22 - std[716c9a7a72e5c14e]::sys::backtrace::_print_fmt [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/sys/backtrace.rs:74:9 [INFO] [stdout] 3: 0x56376f91fa22 - <::print::DisplayBacktrace as core[c5ed12ab89cc536a]::fmt::Display>::fmt [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/sys/backtrace.rs:44:26 [INFO] [stdout] 4: 0x56376f938b5a - ::fmt [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/core/src/fmt/rt.rs:152:76 [INFO] [stdout] 5: 0x56376f938b5a - core[c5ed12ab89cc536a]::fmt::write [INFO] [stdout] 6: 0x56376f925f66 - std[716c9a7a72e5c14e]::io::default_write_fmt::> [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x56376f925f66 - as std[716c9a7a72e5c14e]::io::Write>::write_fmt [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/io/mod.rs:1994:13 [INFO] [stdout] 8: 0x56376f8fdd4f - ::print [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/sys/backtrace.rs:47:9 [INFO] [stdout] 9: 0x56376f8fdd4f - std[716c9a7a72e5c14e]::panicking::default_hook::{closure#0} [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panicking.rs:292:27 [INFO] [stdout] 10: 0x56376f917b69 - std[716c9a7a72e5c14e]::panicking::default_hook [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panicking.rs:316:9 [INFO] [stdout] 11: 0x56376f05d2ae - core[c5ed12ab89cc536a]::ops::function::Fn<(&'a std[716c9a7a72e5c14e]::panic::PanicHookInfo<'b>,), Output = ()> + core[c5ed12ab89cc536a]::marker::Sync + core[c5ed12ab89cc536a]::marker::Send> as core[c5ed12ab89cc536a]::ops::function::Fn<(&std[716c9a7a72e5c14e]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/alloc/src/boxed.rs:2220:9 [INFO] [stdout] 12: 0x56376f05d2ae - test[64760d2bdea328cc]::test_main_with_exit_callback::::{closure#0} [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x56376f917d22 - core[c5ed12ab89cc536a]::ops::function::Fn<(&'a std[716c9a7a72e5c14e]::panic::PanicHookInfo<'b>,), Output = ()> + core[c5ed12ab89cc536a]::marker::Sync + core[c5ed12ab89cc536a]::marker::Send> as core[c5ed12ab89cc536a]::ops::function::Fn<(&std[716c9a7a72e5c14e]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/alloc/src/boxed.rs:2220:9 [INFO] [stdout] 14: 0x56376f917d22 - std[716c9a7a72e5c14e]::panicking::panic_with_hook [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panicking.rs:833:13 [INFO] [stdout] 15: 0x56376f8fde08 - std[716c9a7a72e5c14e]::panicking::panic_handler::{closure#0} [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panicking.rs:698:13 [INFO] [stdout] 16: 0x56376f8f57a9 - std[716c9a7a72e5c14e]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/sys/backtrace.rs:182:18 [INFO] [stdout] 17: 0x56376f8fec5d - __rustc[4f0b026143eab78e]::rust_begin_unwind [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panicking.rs:689:5 [INFO] [stdout] 18: 0x56376f93934c - core[c5ed12ab89cc536a]::panicking::panic_fmt [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/core/src/panicking.rs:80:14 [INFO] [stdout] 19: 0x56376f939092 - core[c5ed12ab89cc536a]::result::unwrap_failed [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/core/src/result.rs:1867:5 [INFO] [stdout] 20: 0x56376edaf751 - , alloc[9c68fdf4f4f29218]::string::String>>::unwrap [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/core/src/result.rs:1233:23 [INFO] [stdout] 21: 0x56376edaf751 - test_snmp[2f9f67c7916f5115]::test_des_encryption_decryption [INFO] [stdout] at /opt/rustwide/workdir/tests/test_snmp.rs:272:67 [INFO] [stdout] 22: 0x56376ed9fe87 - test_snmp[2f9f67c7916f5115]::test_des_encryption_decryption::{closure#0} [INFO] [stdout] at /opt/rustwide/workdir/tests/test_snmp.rs:233:36 [INFO] [stdout] 23: 0x56376edb7396 - >::call_once [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x56376f05165b - core[c5ed12ab89cc536a]::result::Result<(), alloc[9c68fdf4f4f29218]::string::String> as core[c5ed12ab89cc536a]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x56376f05165b - test[64760d2bdea328cc]::__rust_begin_short_backtrace::, fn() -> core[c5ed12ab89cc536a]::result::Result<(), alloc[9c68fdf4f4f29218]::string::String>> [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/test/src/lib.rs:663:18 [INFO] [stdout] 26: 0x56376f05deba - test[64760d2bdea328cc]::run_test_in_process::{closure#0} [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/test/src/lib.rs:686:74 [INFO] [stdout] 27: 0x56376f05deba - as core[c5ed12ab89cc536a]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 28: 0x56376f05deba - std[716c9a7a72e5c14e]::panicking::catch_unwind::do_call::, core[c5ed12ab89cc536a]::result::Result<(), alloc[9c68fdf4f4f29218]::string::String>> [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panicking.rs:581:40 [INFO] [stdout] 29: 0x56376f05deba - std[716c9a7a72e5c14e]::panicking::catch_unwind::, core[c5ed12ab89cc536a]::panic::unwind_safe::AssertUnwindSafe> [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panicking.rs:544:19 [INFO] [stdout] 30: 0x56376f05deba - std[716c9a7a72e5c14e]::panic::catch_unwind::, core[c5ed12ab89cc536a]::result::Result<(), alloc[9c68fdf4f4f29218]::string::String>> [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x56376f05deba - test[64760d2bdea328cc]::run_test_in_process [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/test/src/lib.rs:686:27 [INFO] [stdout] 32: 0x56376f05deba - test[64760d2bdea328cc]::run_test::{closure#0} [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/test/src/lib.rs:607:43 [INFO] [stdout] 33: 0x56376f058384 - test[64760d2bdea328cc]::run_test::{closure#1} [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/test/src/lib.rs:637:41 [INFO] [stdout] 34: 0x56376f058384 - std[716c9a7a72e5c14e]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/sys/backtrace.rs:166:18 [INFO] [stdout] 35: 0x56376f0609b2 - std[716c9a7a72e5c14e]::thread::lifecycle::spawn_unchecked::::{closure#1}::{closure#0} [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/thread/lifecycle.rs:91:13 [INFO] [stdout] 36: 0x56376f0609b2 - ::{closure#1}::{closure#0}> as core[c5ed12ab89cc536a]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 37: 0x56376f0609b2 - std[716c9a7a72e5c14e]::panicking::catch_unwind::do_call::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panicking.rs:581:40 [INFO] [stdout] 38: 0x56376f0609b2 - std[716c9a7a72e5c14e]::panicking::catch_unwind::<(), core[c5ed12ab89cc536a]::panic::unwind_safe::AssertUnwindSafe::{closure#1}::{closure#0}>> [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panicking.rs:544:19 [INFO] [stdout] 39: 0x56376f0609b2 - std[716c9a7a72e5c14e]::panic::catch_unwind::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x56376f0609b2 - std[716c9a7a72e5c14e]::thread::lifecycle::spawn_unchecked::::{closure#1} [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/thread/lifecycle.rs:89:26 [INFO] [stdout] 41: 0x56376f0609b2 - ::{closure#1} as core[c5ed12ab89cc536a]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 42: 0x56376f91f12f - + core[c5ed12ab89cc536a]::marker::Send> as core[c5ed12ab89cc536a]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/alloc/src/boxed.rs:2206:9 [INFO] [stdout] 43: 0x56376f91f12f - ::new::thread_start [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/sys/thread/unix.rs:119:17 [INFO] [stdout] 44: 0x72431666daa4 - [INFO] [stdout] 45: 0x7243166faa64 - clone [INFO] [stdout] 46: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test_algorithm_combinations stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'test_algorithm_combinations' (97) panicked at tests/test_snmp.rs:824:70: [INFO] [stdout] called `Result::unwrap()` on an `Err` value: "Raw decryption didn't produce valid ASN.1 data" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x56376f91fa22 - std[716c9a7a72e5c14e]::backtrace_rs::backtrace::libunwind::trace [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x56376f91fa22 - std[716c9a7a72e5c14e]::backtrace_rs::backtrace::trace_unsynchronized:: [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x56376f91fa22 - std[716c9a7a72e5c14e]::sys::backtrace::_print_fmt [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/sys/backtrace.rs:74:9 [INFO] [stdout] 3: 0x56376f91fa22 - <::print::DisplayBacktrace as core[c5ed12ab89cc536a]::fmt::Display>::fmt [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/sys/backtrace.rs:44:26 [INFO] [stdout] 4: 0x56376f938b5a - ::fmt [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/core/src/fmt/rt.rs:152:76 [INFO] [stdout] 5: 0x56376f938b5a - core[c5ed12ab89cc536a]::fmt::write [INFO] [stdout] 6: 0x56376f925f66 - std[716c9a7a72e5c14e]::io::default_write_fmt::> [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x56376f925f66 - as std[716c9a7a72e5c14e]::io::Write>::write_fmt [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/io/mod.rs:1994:13 [INFO] [stdout] 8: 0x56376f8fdd4f - ::print [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/sys/backtrace.rs:47:9 [INFO] [stdout] 9: 0x56376f8fdd4f - std[716c9a7a72e5c14e]::panicking::default_hook::{closure#0} [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panicking.rs:292:27 [INFO] [stdout] 10: 0x56376f917b69 - std[716c9a7a72e5c14e]::panicking::default_hook [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panicking.rs:316:9 [INFO] [stdout] 11: 0x56376f05d2ae - core[c5ed12ab89cc536a]::ops::function::Fn<(&'a std[716c9a7a72e5c14e]::panic::PanicHookInfo<'b>,), Output = ()> + core[c5ed12ab89cc536a]::marker::Sync + core[c5ed12ab89cc536a]::marker::Send> as core[c5ed12ab89cc536a]::ops::function::Fn<(&std[716c9a7a72e5c14e]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/alloc/src/boxed.rs:2220:9 [INFO] [stdout] 12: 0x56376f05d2ae - test[64760d2bdea328cc]::test_main_with_exit_callback::::{closure#0} [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x56376f917d22 - core[c5ed12ab89cc536a]::ops::function::Fn<(&'a std[716c9a7a72e5c14e]::panic::PanicHookInfo<'b>,), Output = ()> + core[c5ed12ab89cc536a]::marker::Sync + core[c5ed12ab89cc536a]::marker::Send> as core[c5ed12ab89cc536a]::ops::function::Fn<(&std[716c9a7a72e5c14e]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/alloc/src/boxed.rs:2220:9 [INFO] [stdout] 14: 0x56376f917d22 - std[716c9a7a72e5c14e]::panicking::panic_with_hook [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panicking.rs:833:13 [INFO] [stdout] 15: 0x56376f8fde08 - std[716c9a7a72e5c14e]::panicking::panic_handler::{closure#0} [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panicking.rs:698:13 [INFO] [stdout] 16: 0x56376f8f57a9 - std[716c9a7a72e5c14e]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/sys/backtrace.rs:182:18 [INFO] [stdout] 17: 0x56376f8fec5d - __rustc[4f0b026143eab78e]::rust_begin_unwind [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panicking.rs:689:5 [INFO] [stdout] 18: 0x56376f93934c - core[c5ed12ab89cc536a]::panicking::panic_fmt [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/core/src/panicking.rs:80:14 [INFO] [stdout] 19: 0x56376f939092 - core[c5ed12ab89cc536a]::result::unwrap_failed [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/core/src/result.rs:1867:5 [INFO] [stdout] 20: 0x56376edaa038 - , alloc[9c68fdf4f4f29218]::string::String>>::unwrap [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/core/src/result.rs:1233:23 [INFO] [stdout] 21: 0x56376edaa038 - test_snmp[2f9f67c7916f5115]::test_algorithm_combinations [INFO] [stdout] at /opt/rustwide/workdir/tests/test_snmp.rs:824:70 [INFO] [stdout] 22: 0x56376ed9fc47 - test_snmp[2f9f67c7916f5115]::test_algorithm_combinations::{closure#0} [INFO] [stdout] at /opt/rustwide/workdir/tests/test_snmp.rs:785:33 [INFO] [stdout] 23: 0x56376edb7096 - >::call_once [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x56376f05165b - core[c5ed12ab89cc536a]::result::Result<(), alloc[9c68fdf4f4f29218]::string::String> as core[c5ed12ab89cc536a]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x56376f05165b - test[64760d2bdea328cc]::__rust_begin_short_backtrace::, fn() -> core[c5ed12ab89cc536a]::result::Result<(), alloc[9c68fdf4f4f29218]::string::String>> [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/test/src/lib.rs:663:18 [INFO] [stdout] 26: 0x56376f05deba - test[64760d2bdea328cc]::run_test_in_process::{closure#0} [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/test/src/lib.rs:686:74 [INFO] [stdout] 27: 0x56376f05deba - as core[c5ed12ab89cc536a]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 28: 0x56376f05deba - std[716c9a7a72e5c14e]::panicking::catch_unwind::do_call::, core[c5ed12ab89cc536a]::result::Result<(), alloc[9c68fdf4f4f29218]::string::String>> [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panicking.rs:581:40 [INFO] [stdout] 29: 0x56376f05deba - std[716c9a7a72e5c14e]::panicking::catch_unwind::, core[c5ed12ab89cc536a]::panic::unwind_safe::AssertUnwindSafe> [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panicking.rs:544:19 [INFO] [stdout] 30: 0x56376f05deba - std[716c9a7a72e5c14e]::panic::catch_unwind::, core[c5ed12ab89cc536a]::result::Result<(), alloc[9c68fdf4f4f29218]::string::String>> [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x56376f05deba - test[64760d2bdea328cc]::run_test_in_process [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/test/src/lib.rs:686:27 [INFO] [stdout] 32: 0x56376f05deba - test[64760d2bdea328cc]::run_test::{closure#0} [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/test/src/lib.rs:607:43 [INFO] [stdout] 33: 0x56376f058384 - test[64760d2bdea328cc]::run_test::{closure#1} [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/test/src/lib.rs:637:41 [INFO] [stdout] 34: 0x56376f058384 - std[716c9a7a72e5c14e]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/sys/backtrace.rs:166:18 [INFO] [stdout] 35: 0x56376f0609b2 - std[716c9a7a72e5c14e]::thread::lifecycle::spawn_unchecked::::{closure#1}::{closure#0} [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/thread/lifecycle.rs:91:13 [INFO] [stdout] 36: 0x56376f0609b2 - ::{closure#1}::{closure#0}> as core[c5ed12ab89cc536a]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 37: 0x56376f0609b2 - std[716c9a7a72e5c14e]::panicking::catch_unwind::do_call::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panicking.rs:581:40 [INFO] [stdout] 38: 0x56376f0609b2 - std[716c9a7a72e5c14e]::panicking::catch_unwind::<(), core[c5ed12ab89cc536a]::panic::unwind_safe::AssertUnwindSafe::{closure#1}::{closure#0}>> [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panicking.rs:544:19 [INFO] [stdout] 39: 0x56376f0609b2 - std[716c9a7a72e5c14e]::panic::catch_unwind::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x56376f0609b2 - std[716c9a7a72e5c14e]::thread::lifecycle::spawn_unchecked::::{closure#1} [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/thread/lifecycle.rs:89:26 [INFO] [stdout] 41: 0x56376f0609b2 - ::{closure#1} as core[c5ed12ab89cc536a]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 42: 0x56376f91f12f - + core[c5ed12ab89cc536a]::marker::Send> as core[c5ed12ab89cc536a]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/alloc/src/boxed.rs:2206:9 [INFO] [stdout] 43: 0x56376f91f12f - ::new::thread_start [INFO] [stdout] at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/sys/thread/unix.rs:119:17 [INFO] [stdout] 44: 0x72431666daa4 - [INFO] [stdout] 45: 0x7243166faa64 - clone [INFO] [stdout] 46: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] test_algorithm_combinations [INFO] [stdout] test_des_encryption_decryption [INFO] [stdout] test_encryption_corner_cases [INFO] [stdout] [INFO] [stdout] test result: FAILED. 37 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.84s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--test test_snmp` [INFO] running `Command { std: "docker" "inspect" "2424aea4614fe0bc95554d03f49cd1120aa287c283f479bb1a57878307fdab12", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2424aea4614fe0bc95554d03f49cd1120aa287c283f479bb1a57878307fdab12", kill_on_drop: false }` [INFO] [stdout] 2424aea4614fe0bc95554d03f49cd1120aa287c283f479bb1a57878307fdab12