[INFO] fetching crate snmp 0.2.2... [INFO] testing snmp-0.2.2 against 1.90.0 for beta-1.91-3 [INFO] extracting crate snmp 0.2.2 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate snmp 0.2.2 [INFO] finished tweaking crates.io crate snmp 0.2.2 [INFO] tweaked toml for crates.io crate snmp 0.2.2 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate snmp 0.2.2 on toolchain 1.90.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.90.0" "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" "+1.90.0" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.90.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c8bd6e2f592db53f9e6f9f594d78f5568cf2b392328089de9f1c97bdee15a863 [INFO] running `Command { std: "docker" "start" "-a" "c8bd6e2f592db53f9e6f9f594d78f5568cf2b392328089de9f1c97bdee15a863", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c8bd6e2f592db53f9e6f9f594d78f5568cf2b392328089de9f1c97bdee15a863", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c8bd6e2f592db53f9e6f9f594d78f5568cf2b392328089de9f1c97bdee15a863", kill_on_drop: false }` [INFO] [stdout] c8bd6e2f592db53f9e6f9f594d78f5568cf2b392328089de9f1c97bdee15a863 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 72f38dfed3322edfde00830a6a71c70c1866a322cfd4ead8abecd63392c612e6 [INFO] running `Command { std: "docker" "start" "-a" "72f38dfed3322edfde00830a6a71c70c1866a322cfd4ead8abecd63392c612e6", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling snmp v0.2.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `private-tests` [INFO] [stdout] --> src/lib.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | #![cfg_attr(feature = "private-tests", feature(test))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `private-tests` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/lib.rs:573:47 [INFO] [stdout] | [INFO] [stdout] 573 | let mut buf: ObjIdBuf = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/lib.rs:594:47 [INFO] [stdout] | [INFO] [stdout] 594 | let mut buf: ObjIdBuf = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/lib.rs:222:36 [INFO] [stdout] | [INFO] [stdout] 222 | buf: unsafe { mem::uninitialized() }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:348:21 [INFO] [stdout] | [INFO] [stdout] 348 | let mut wbuf = self.available(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `version` is never read [INFO] [stdout] --> src/lib.rs:1169:5 [INFO] [stdout] | [INFO] [stdout] 1168 | pub struct SnmpPdu<'a> { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 1169 | version: i64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SnmpPdu` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:548:28 [INFO] [stdout] | [INFO] [stdout] 548 | let mut ret = unsafe { mem::transmute::<[u8; 8], i64>(bytes).to_be()}; [INFO] [stdout] | ------------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i64::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `[u32; 128]` does not permit being left uninitialized [INFO] [stdout] --> src/lib.rs:573:42 [INFO] [stdout] | [INFO] [stdout] 573 | let mut buf: ObjIdBuf = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `[u32; 128]` does not permit being left uninitialized [INFO] [stdout] --> src/lib.rs:594:42 [INFO] [stdout] | [INFO] [stdout] 594 | let mut buf: ObjIdBuf = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:610:26 [INFO] [stdout] | [INFO] [stdout] 610 | fn from_bytes(bytes: &[u8]) -> ObjectIdentifier { [INFO] [stdout] | ^^^^^ ---------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 610 | fn from_bytes(bytes: &[u8]) -> ObjectIdentifier<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:688:30 [INFO] [stdout] | [INFO] [stdout] 688 | pub fn from_bytes(bytes: &[u8]) -> AsnReader { [INFO] [stdout] | ^^^^^ --------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 688 | pub fn from_bytes(bytes: &[u8]) -> AsnReader<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:732:30 [INFO] [stdout] | [INFO] [stdout] 732 | o = unsafe { mem::transmute::<[u8; USIZE_LEN], usize>(bytes).to_be()}; [INFO] [stdout] | ----------------------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `usize::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:1078:16 [INFO] [stdout] | [INFO] [stdout] 1078 | pub fn get(&mut self, name: &[u32]) -> SnmpResult { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1078 | pub fn get(&mut self, name: &[u32]) -> SnmpResult> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:1097:20 [INFO] [stdout] | [INFO] [stdout] 1097 | pub fn getnext(&mut self, name: &[u32]) -> SnmpResult { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1097 | pub fn getnext(&mut self, name: &[u32]) -> SnmpResult> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:1116:20 [INFO] [stdout] | [INFO] [stdout] 1116 | pub fn getbulk(&mut self, names: &[&[u32]], non_repeaters: u32, max_repetitions: u32) -> SnmpResult { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1116 | pub fn getbulk(&mut self, names: &[&[u32]], non_repeaters: u32, max_repetitions: u32) -> SnmpResult> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:1147:16 [INFO] [stdout] | [INFO] [stdout] 1147 | pub fn set(&mut self, values: &[(&[u32], Value)]) -> SnmpResult { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1147 | pub fn set(&mut self, values: &[(&[u32], Value)]) -> SnmpResult> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `[u8; 4096]` does not permit being left uninitialized [INFO] [stdout] --> src/lib.rs:222:31 [INFO] [stdout] | [INFO] [stdout] 222 | buf: unsafe { mem::uninitialized() }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:295:42 [INFO] [stdout] | [INFO] [stdout] 295 | let bytes = unsafe { mem::transmute::(len.to_be()) }; [INFO] [stdout] | ----------------------------------------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `usize::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.44s [INFO] running `Command { std: "docker" "inspect" "72f38dfed3322edfde00830a6a71c70c1866a322cfd4ead8abecd63392c612e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72f38dfed3322edfde00830a6a71c70c1866a322cfd4ead8abecd63392c612e6", kill_on_drop: false }` [INFO] [stdout] 72f38dfed3322edfde00830a6a71c70c1866a322cfd4ead8abecd63392c612e6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b5f842f37012c529b2a5179e596de8fa4a7046d2d6a3f28dff4997eb1b8c54a5 [INFO] running `Command { std: "docker" "start" "-a" "b5f842f37012c529b2a5179e596de8fa4a7046d2d6a3f28dff4997eb1b8c54a5", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stdout] warning: unexpected `cfg` condition value: `private-tests` [INFO] [stdout] --> src/lib.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | #![cfg_attr(feature = "private-tests", feature(test))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `private-tests` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/lib.rs:573:47 [INFO] [stdout] | [INFO] [stdout] 573 | let mut buf: ObjIdBuf = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/lib.rs:594:47 [INFO] [stdout] | [INFO] [stdout] 594 | let mut buf: ObjIdBuf = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/lib.rs:222:36 [INFO] [stdout] | [INFO] [stdout] 222 | buf: unsafe { mem::uninitialized() }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:348:21 [INFO] [stdout] | [INFO] [stdout] 348 | let mut wbuf = self.available(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `version` is never read [INFO] [stdout] --> src/lib.rs:1169:5 [INFO] [stdout] | [INFO] [stdout] 1168 | pub struct SnmpPdu<'a> { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 1169 | version: i64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SnmpPdu` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:548:28 [INFO] [stdout] | [INFO] [stdout] 548 | let mut ret = unsafe { mem::transmute::<[u8; 8], i64>(bytes).to_be()}; [INFO] [stdout] | ------------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i64::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `[u32; 128]` does not permit being left uninitialized [INFO] [stdout] --> src/lib.rs:573:42 [INFO] [stdout] | [INFO] [stdout] 573 | let mut buf: ObjIdBuf = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `[u32; 128]` does not permit being left uninitialized [INFO] [stdout] --> src/lib.rs:594:42 [INFO] [stdout] | [INFO] [stdout] 594 | let mut buf: ObjIdBuf = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:610:26 [INFO] [stdout] | [INFO] [stdout] 610 | fn from_bytes(bytes: &[u8]) -> ObjectIdentifier { [INFO] [stdout] | ^^^^^ ---------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 610 | fn from_bytes(bytes: &[u8]) -> ObjectIdentifier<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:688:30 [INFO] [stdout] | [INFO] [stdout] 688 | pub fn from_bytes(bytes: &[u8]) -> AsnReader { [INFO] [stdout] | ^^^^^ --------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 688 | pub fn from_bytes(bytes: &[u8]) -> AsnReader<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:732:30 [INFO] [stdout] | [INFO] [stdout] 732 | o = unsafe { mem::transmute::<[u8; USIZE_LEN], usize>(bytes).to_be()}; [INFO] [stdout] | ----------------------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `usize::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:1078:16 [INFO] [stdout] | [INFO] [stdout] 1078 | pub fn get(&mut self, name: &[u32]) -> SnmpResult { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1078 | pub fn get(&mut self, name: &[u32]) -> SnmpResult> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:1097:20 [INFO] [stdout] | [INFO] [stdout] 1097 | pub fn getnext(&mut self, name: &[u32]) -> SnmpResult { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1097 | pub fn getnext(&mut self, name: &[u32]) -> SnmpResult> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:1116:20 [INFO] [stdout] | [INFO] [stdout] 1116 | pub fn getbulk(&mut self, names: &[&[u32]], non_repeaters: u32, max_repetitions: u32) -> SnmpResult { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1116 | pub fn getbulk(&mut self, names: &[&[u32]], non_repeaters: u32, max_repetitions: u32) -> SnmpResult> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:1147:16 [INFO] [stdout] | [INFO] [stdout] 1147 | pub fn set(&mut self, values: &[(&[u32], Value)]) -> SnmpResult { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1147 | pub fn set(&mut self, values: &[(&[u32], Value)]) -> SnmpResult> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `[u8; 4096]` does not permit being left uninitialized [INFO] [stdout] --> src/lib.rs:222:31 [INFO] [stdout] | [INFO] [stdout] 222 | buf: unsafe { mem::uninitialized() }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:295:42 [INFO] [stdout] | [INFO] [stdout] 295 | let bytes = unsafe { mem::transmute::(len.to_be()) }; [INFO] [stdout] | ----------------------------------------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `usize::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling snmp v0.2.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `private-tests` [INFO] [stdout] --> src/lib.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | #![cfg_attr(feature = "private-tests", feature(test))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `private-tests` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/lib.rs:573:47 [INFO] [stdout] | [INFO] [stdout] 573 | let mut buf: ObjIdBuf = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/lib.rs:594:47 [INFO] [stdout] | [INFO] [stdout] 594 | let mut buf: ObjIdBuf = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/lib.rs:222:36 [INFO] [stdout] | [INFO] [stdout] 222 | buf: unsafe { mem::uninitialized() }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:348:21 [INFO] [stdout] | [INFO] [stdout] 348 | let mut wbuf = self.available(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `version` is never read [INFO] [stdout] --> src/lib.rs:1169:5 [INFO] [stdout] | [INFO] [stdout] 1168 | pub struct SnmpPdu<'a> { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 1169 | version: i64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SnmpPdu` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:548:28 [INFO] [stdout] | [INFO] [stdout] 548 | let mut ret = unsafe { mem::transmute::<[u8; 8], i64>(bytes).to_be()}; [INFO] [stdout] | ------------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i64::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `[u32; 128]` does not permit being left uninitialized [INFO] [stdout] --> src/lib.rs:573:42 [INFO] [stdout] | [INFO] [stdout] 573 | let mut buf: ObjIdBuf = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `[u32; 128]` does not permit being left uninitialized [INFO] [stdout] --> src/lib.rs:594:42 [INFO] [stdout] | [INFO] [stdout] 594 | let mut buf: ObjIdBuf = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:610:26 [INFO] [stdout] | [INFO] [stdout] 610 | fn from_bytes(bytes: &[u8]) -> ObjectIdentifier { [INFO] [stdout] | ^^^^^ ---------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 610 | fn from_bytes(bytes: &[u8]) -> ObjectIdentifier<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:688:30 [INFO] [stdout] | [INFO] [stdout] 688 | pub fn from_bytes(bytes: &[u8]) -> AsnReader { [INFO] [stdout] | ^^^^^ --------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 688 | pub fn from_bytes(bytes: &[u8]) -> AsnReader<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:732:30 [INFO] [stdout] | [INFO] [stdout] 732 | o = unsafe { mem::transmute::<[u8; USIZE_LEN], usize>(bytes).to_be()}; [INFO] [stdout] | ----------------------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `usize::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:1078:16 [INFO] [stdout] | [INFO] [stdout] 1078 | pub fn get(&mut self, name: &[u32]) -> SnmpResult { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1078 | pub fn get(&mut self, name: &[u32]) -> SnmpResult> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:1097:20 [INFO] [stdout] | [INFO] [stdout] 1097 | pub fn getnext(&mut self, name: &[u32]) -> SnmpResult { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1097 | pub fn getnext(&mut self, name: &[u32]) -> SnmpResult> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:1116:20 [INFO] [stdout] | [INFO] [stdout] 1116 | pub fn getbulk(&mut self, names: &[&[u32]], non_repeaters: u32, max_repetitions: u32) -> SnmpResult { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1116 | pub fn getbulk(&mut self, names: &[&[u32]], non_repeaters: u32, max_repetitions: u32) -> SnmpResult> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:1147:16 [INFO] [stdout] | [INFO] [stdout] 1147 | pub fn set(&mut self, values: &[(&[u32], Value)]) -> SnmpResult { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1147 | pub fn set(&mut self, values: &[(&[u32], Value)]) -> SnmpResult> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `[u8; 4096]` does not permit being left uninitialized [INFO] [stdout] --> src/lib.rs:222:31 [INFO] [stdout] | [INFO] [stdout] 222 | buf: unsafe { mem::uninitialized() }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:295:42 [INFO] [stdout] | [INFO] [stdout] 295 | let bytes = unsafe { mem::transmute::(len.to_be()) }; [INFO] [stdout] | ----------------------------------------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `usize::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.64s [INFO] running `Command { std: "docker" "inspect" "b5f842f37012c529b2a5179e596de8fa4a7046d2d6a3f28dff4997eb1b8c54a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b5f842f37012c529b2a5179e596de8fa4a7046d2d6a3f28dff4997eb1b8c54a5", kill_on_drop: false }` [INFO] [stdout] b5f842f37012c529b2a5179e596de8fa4a7046d2d6a3f28dff4997eb1b8c54a5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e3aea8eeb069c2baa6ed2760a01dfc4963edcaa198d254428c310c1cde5c68a0 [INFO] running `Command { std: "docker" "start" "-a" "e3aea8eeb069c2baa6ed2760a01dfc4963edcaa198d254428c310c1cde5c68a0", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] warning: unexpected `cfg` condition value: `private-tests` [INFO] [stderr] --> src/lib.rs:95:13 [INFO] [stderr] | [INFO] [stderr] 95 | #![cfg_attr(feature = "private-tests", feature(test))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `private-tests` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stderr] --> src/lib.rs:573:47 [INFO] [stderr] | [INFO] [stderr] 573 | let mut buf: ObjIdBuf = unsafe { mem::uninitialized() }; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stderr] --> src/lib.rs:594:47 [INFO] [stderr] | [INFO] [stderr] 594 | let mut buf: ObjIdBuf = unsafe { mem::uninitialized() }; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stderr] --> src/lib.rs:222:36 [INFO] [stderr] | [INFO] [stderr] 222 | buf: unsafe { mem::uninitialized() }, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/lib.rs:348:21 [INFO] [stderr] | [INFO] [stderr] 348 | let mut wbuf = self.available(); [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `version` is never read [INFO] [stderr] --> src/lib.rs:1169:5 [INFO] [stderr] | [INFO] [stderr] 1168 | pub struct SnmpPdu<'a> { [INFO] [stderr] | ------- field in this struct [INFO] [stderr] 1169 | version: i64, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `SnmpPdu` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/lib.rs:548:28 [INFO] [stderr] | [INFO] [stderr] 548 | let mut ret = unsafe { mem::transmute::<[u8; 8], i64>(bytes).to_be()}; [INFO] [stderr] | ------------------------------^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `i64::from_ne_bytes` [INFO] [stderr] | [INFO] [stderr] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stderr] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stderr] [INFO] [stderr] warning: the type `[u32; 128]` does not permit being left uninitialized [INFO] [stderr] --> src/lib.rs:573:42 [INFO] [stderr] | [INFO] [stderr] 573 | let mut buf: ObjIdBuf = unsafe { mem::uninitialized() }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | this code causes undefined behavior when executed [INFO] [stderr] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stderr] | [INFO] [stderr] = note: integers must be initialized [INFO] [stderr] = note: `#[warn(invalid_value)]` on by default [INFO] [stderr] [INFO] [stderr] warning: the type `[u32; 128]` does not permit being left uninitialized [INFO] [stderr] --> src/lib.rs:594:42 [INFO] [stderr] | [INFO] [stderr] 594 | let mut buf: ObjIdBuf = unsafe { mem::uninitialized() }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | this code causes undefined behavior when executed [INFO] [stderr] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stderr] | [INFO] [stderr] = note: integers must be initialized [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/lib.rs:610:26 [INFO] [stderr] | [INFO] [stderr] 610 | fn from_bytes(bytes: &[u8]) -> ObjectIdentifier { [INFO] [stderr] | ^^^^^ ---------------- the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 610 | fn from_bytes(bytes: &[u8]) -> ObjectIdentifier<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/lib.rs:688:30 [INFO] [stderr] | [INFO] [stderr] 688 | pub fn from_bytes(bytes: &[u8]) -> AsnReader { [INFO] [stderr] | ^^^^^ --------- the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 688 | pub fn from_bytes(bytes: &[u8]) -> AsnReader<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/lib.rs:732:30 [INFO] [stderr] | [INFO] [stderr] 732 | o = unsafe { mem::transmute::<[u8; USIZE_LEN], usize>(bytes).to_be()}; [INFO] [stderr] | ----------------------------------------^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `usize::from_ne_bytes` [INFO] [stderr] | [INFO] [stderr] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/lib.rs:1078:16 [INFO] [stderr] | [INFO] [stderr] 1078 | pub fn get(&mut self, name: &[u32]) -> SnmpResult { [INFO] [stderr] | ^^^^^^^^^ the lifetime is elided here ------- the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 1078 | pub fn get(&mut self, name: &[u32]) -> SnmpResult> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/lib.rs:1097:20 [INFO] [stderr] | [INFO] [stderr] 1097 | pub fn getnext(&mut self, name: &[u32]) -> SnmpResult { [INFO] [stderr] | ^^^^^^^^^ the lifetime is elided here ------- the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 1097 | pub fn getnext(&mut self, name: &[u32]) -> SnmpResult> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/lib.rs:1116:20 [INFO] [stderr] | [INFO] [stderr] 1116 | pub fn getbulk(&mut self, names: &[&[u32]], non_repeaters: u32, max_repetitions: u32) -> SnmpResult { [INFO] [stderr] | ^^^^^^^^^ the lifetime is elided here ------- the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 1116 | pub fn getbulk(&mut self, names: &[&[u32]], non_repeaters: u32, max_repetitions: u32) -> SnmpResult> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/lib.rs:1147:16 [INFO] [stderr] | [INFO] [stderr] 1147 | pub fn set(&mut self, values: &[(&[u32], Value)]) -> SnmpResult { [INFO] [stderr] | ^^^^^^^^^ the lifetime is elided here ------- the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 1147 | pub fn set(&mut self, values: &[(&[u32], Value)]) -> SnmpResult> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: the type `[u8; 4096]` does not permit being left uninitialized [INFO] [stderr] --> src/lib.rs:222:31 [INFO] [stderr] | [INFO] [stderr] 222 | buf: unsafe { mem::uninitialized() }, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | this code causes undefined behavior when executed [INFO] [stderr] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stderr] | [INFO] [stderr] = note: integers must be initialized [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/lib.rs:295:42 [INFO] [stderr] | [INFO] [stderr] 295 | let bytes = unsafe { mem::transmute::(len.to_be()) }; [INFO] [stderr] | ----------------------------------------^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `usize::to_ne_bytes` [INFO] [stderr] | [INFO] [stderr] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stderr] [INFO] [stderr] warning: `snmp` (lib) generated 18 warnings (run `cargo fix --lib -p snmp` to apply 4 suggestions) [INFO] [stderr] warning: `snmp` (lib test) generated 18 warnings (18 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/snmp-b5c473e2cf2cadd0) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test tests::asn_read_byte ... ok [INFO] [stdout] test tests::asn_parse_getnext_pdu ... ok [INFO] [stdout] test tests::build_getnext_pdu ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests snmp [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test src/lib.rs - (line 56) - compile ... ok [INFO] [stdout] test src/lib.rs - (line 75) - compile ... ok [INFO] [stdout] test src/lib.rs - (line 40) - compile ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.13s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "e3aea8eeb069c2baa6ed2760a01dfc4963edcaa198d254428c310c1cde5c68a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e3aea8eeb069c2baa6ed2760a01dfc4963edcaa198d254428c310c1cde5c68a0", kill_on_drop: false }` [INFO] [stdout] e3aea8eeb069c2baa6ed2760a01dfc4963edcaa198d254428c310c1cde5c68a0