[INFO] fetching crate snmp2 0.4.10... [INFO] testing snmp2-0.4.10 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-8 [INFO] extracting crate snmp2 0.4.10 into /workspace/builds/worker-3-tc1/source [INFO] removed /workspace/builds/worker-3-tc1/source/rust-toolchain.toml [INFO] started tweaking crates.io crate snmp2 0.4.10 [INFO] finished tweaking crates.io crate snmp2 0.4.10 [INFO] tweaked toml for crates.io crate snmp2 0.4.10 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate snmp2 0.4.10 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 69 packages to latest compatible versions [INFO] [stderr] Adding asn1-rs v0.6.2 (available: v0.7.1) [INFO] [stderr] Adding tokio v1.47.2 (available: v1.48.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded asn1-rs-impl v0.2.0 [INFO] [stderr] Downloaded snmptools v0.1.3 [INFO] [stderr] Downloaded asn1-rs-derive v0.5.1 [INFO] [stderr] Downloaded io-uring v0.7.11 [INFO] [stderr] Downloaded rusticata-macros v4.1.0 [INFO] [stderr] Downloaded netsnmp-sys-nocrypto v0.1.3 [INFO] [stderr] Downloaded asn1-rs v0.6.2 [INFO] [stderr] Downloaded tokio v1.47.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b35ab5b09d83652fd46dea78e3472ae62e4ecf88511fea4a7dc2fd0455e52abc [INFO] running `Command { std: "docker" "start" "-a" "b35ab5b09d83652fd46dea78e3472ae62e4ecf88511fea4a7dc2fd0455e52abc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b35ab5b09d83652fd46dea78e3472ae62e4ecf88511fea4a7dc2fd0455e52abc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b35ab5b09d83652fd46dea78e3472ae62e4ecf88511fea4a7dc2fd0455e52abc", kill_on_drop: false }` [INFO] [stdout] b35ab5b09d83652fd46dea78e3472ae62e4ecf88511fea4a7dc2fd0455e52abc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 18e9dec9f1b9c73e2359eb8cfb17707f65ada188b824b5cf498aae67ae8664ff [INFO] running `Command { std: "docker" "start" "-a" "18e9dec9f1b9c73e2359eb8cfb17707f65ada188b824b5cf498aae67ae8664ff", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling asn1-rs-impl v0.2.0 [INFO] [stderr] Compiling asn1-rs-derive v0.5.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling rusticata-macros v4.1.0 [INFO] [stderr] Compiling asn1-rs v0.6.2 [INFO] [stderr] Compiling snmp2 v0.4.10 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/asn1.rs:51:30 [INFO] [stdout] | [INFO] [stdout] 51 | 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] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 51 | pub fn from_bytes(bytes: &[u8]) -> AsnReader<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/asn1.rs:100:30 [INFO] [stdout] | [INFO] [stdout] 100 | 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] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/asn1.rs:263:28 [INFO] [stdout] | [INFO] [stdout] 263 | 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] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/syncsession.rs:183:16 [INFO] [stdout] | [INFO] [stdout] 183 | pub fn get(&mut self, oid: &Oid) -> Result { [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] 183 | pub fn get(&mut self, oid: &Oid) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/syncsession.rs:205:21 [INFO] [stdout] | [INFO] [stdout] 205 | pub fn get_many(&mut self, oids: &[&Oid<'_>]) -> Result { [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] 205 | pub fn get_many(&mut self, oids: &[&Oid<'_>]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/syncsession.rs:227:20 [INFO] [stdout] | [INFO] [stdout] 227 | pub fn getnext(&mut self, oid: &Oid) -> Result { [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] 227 | pub fn getnext(&mut self, oid: &Oid) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/syncsession.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 250 | &mut self, [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here [INFO] [stdout] ... [INFO] [stdout] 254 | ) -> Result { [INFO] [stdout] | ^^^ 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] 254 | ) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/syncsession.rs:278:16 [INFO] [stdout] | [INFO] [stdout] 278 | pub fn set(&mut self, values: &[(&Oid, Value)]) -> Result { [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] 278 | pub fn set(&mut self, values: &[(&Oid, Value)]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.58s [INFO] running `Command { std: "docker" "inspect" "18e9dec9f1b9c73e2359eb8cfb17707f65ada188b824b5cf498aae67ae8664ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18e9dec9f1b9c73e2359eb8cfb17707f65ada188b824b5cf498aae67ae8664ff", kill_on_drop: false }` [INFO] [stdout] 18e9dec9f1b9c73e2359eb8cfb17707f65ada188b824b5cf498aae67ae8664ff [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d43ed65dbbe77c5556c0ce0b5cce1d5917371be9b72a8b964dbcd40f627da482 [INFO] running `Command { std: "docker" "start" "-a" "d43ed65dbbe77c5556c0ce0b5cce1d5917371be9b72a8b964dbcd40f627da482", kill_on_drop: false }` [INFO] [stderr] Compiling tokio v1.47.2 [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/asn1.rs:51:30 [INFO] [stdout] | [INFO] [stdout] 51 | 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] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 51 | pub fn from_bytes(bytes: &[u8]) -> AsnReader<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/asn1.rs:100:30 [INFO] [stdout] | [INFO] [stdout] 100 | 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] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/asn1.rs:263:28 [INFO] [stdout] | [INFO] [stdout] 263 | 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] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/syncsession.rs:183:16 [INFO] [stdout] | [INFO] [stdout] 183 | pub fn get(&mut self, oid: &Oid) -> Result { [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] 183 | pub fn get(&mut self, oid: &Oid) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/syncsession.rs:205:21 [INFO] [stdout] | [INFO] [stdout] 205 | pub fn get_many(&mut self, oids: &[&Oid<'_>]) -> Result { [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] 205 | pub fn get_many(&mut self, oids: &[&Oid<'_>]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/syncsession.rs:227:20 [INFO] [stdout] | [INFO] [stdout] 227 | pub fn getnext(&mut self, oid: &Oid) -> Result { [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] 227 | pub fn getnext(&mut self, oid: &Oid) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/syncsession.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 250 | &mut self, [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here [INFO] [stdout] ... [INFO] [stdout] 254 | ) -> Result { [INFO] [stdout] | ^^^ 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] 254 | ) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/syncsession.rs:278:16 [INFO] [stdout] | [INFO] [stdout] 278 | pub fn set(&mut self, values: &[(&Oid, Value)]) -> Result { [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] 278 | pub fn set(&mut self, values: &[(&Oid, Value)]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling snmp2 v0.4.10 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/asn1.rs:51:30 [INFO] [stdout] | [INFO] [stdout] 51 | 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] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 51 | pub fn from_bytes(bytes: &[u8]) -> AsnReader<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/asn1.rs:100:30 [INFO] [stdout] | [INFO] [stdout] 100 | 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] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/asn1.rs:263:28 [INFO] [stdout] | [INFO] [stdout] 263 | 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] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/syncsession.rs:183:16 [INFO] [stdout] | [INFO] [stdout] 183 | pub fn get(&mut self, oid: &Oid) -> Result { [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] 183 | pub fn get(&mut self, oid: &Oid) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/syncsession.rs:205:21 [INFO] [stdout] | [INFO] [stdout] 205 | pub fn get_many(&mut self, oids: &[&Oid<'_>]) -> Result { [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] 205 | pub fn get_many(&mut self, oids: &[&Oid<'_>]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/syncsession.rs:227:20 [INFO] [stdout] | [INFO] [stdout] 227 | pub fn getnext(&mut self, oid: &Oid) -> Result { [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] 227 | pub fn getnext(&mut self, oid: &Oid) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/syncsession.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 250 | &mut self, [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here [INFO] [stdout] ... [INFO] [stdout] 254 | ) -> Result { [INFO] [stdout] | ^^^ 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] 254 | ) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/syncsession.rs:278:16 [INFO] [stdout] | [INFO] [stdout] 278 | pub fn set(&mut self, values: &[(&Oid, Value)]) -> Result { [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] 278 | pub fn set(&mut self, values: &[(&Oid, Value)]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.58s [INFO] running `Command { std: "docker" "inspect" "d43ed65dbbe77c5556c0ce0b5cce1d5917371be9b72a8b964dbcd40f627da482", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d43ed65dbbe77c5556c0ce0b5cce1d5917371be9b72a8b964dbcd40f627da482", kill_on_drop: false }` [INFO] [stdout] d43ed65dbbe77c5556c0ce0b5cce1d5917371be9b72a8b964dbcd40f627da482 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 36ba4869418ceb99df08650b03f95e3bfcd52fc0e403db5ca97f31e4fe464c02 [INFO] running `Command { std: "docker" "start" "-a" "36ba4869418ceb99df08650b03f95e3bfcd52fc0e403db5ca97f31e4fe464c02", kill_on_drop: false }` [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/asn1.rs:51:30 [INFO] [stderr] | [INFO] [stderr] 51 | 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] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 51 | pub fn from_bytes(bytes: &[u8]) -> AsnReader<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/asn1.rs:100:30 [INFO] [stderr] | [INFO] [stderr] 100 | 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] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/asn1.rs:263:28 [INFO] [stderr] | [INFO] [stderr] 263 | 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] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/syncsession.rs:183:16 [INFO] [stderr] | [INFO] [stderr] 183 | pub fn get(&mut self, oid: &Oid) -> Result { [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] 183 | pub fn get(&mut self, oid: &Oid) -> Result> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/syncsession.rs:205:21 [INFO] [stderr] | [INFO] [stderr] 205 | pub fn get_many(&mut self, oids: &[&Oid<'_>]) -> Result { [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] 205 | pub fn get_many(&mut self, oids: &[&Oid<'_>]) -> Result> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/syncsession.rs:227:20 [INFO] [stderr] | [INFO] [stderr] 227 | pub fn getnext(&mut self, oid: &Oid) -> Result { [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] 227 | pub fn getnext(&mut self, oid: &Oid) -> Result> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/syncsession.rs:250:9 [INFO] [stderr] | [INFO] [stderr] 250 | &mut self, [INFO] [stderr] | ^^^^^^^^^ the lifetime is elided here [INFO] [stderr] ... [INFO] [stderr] 254 | ) -> Result { [INFO] [stderr] | ^^^ 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] 254 | ) -> Result> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/syncsession.rs:278:16 [INFO] [stderr] | [INFO] [stderr] 278 | pub fn set(&mut self, values: &[(&Oid, Value)]) -> Result { [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] 278 | pub fn set(&mut self, values: &[(&Oid, Value)]) -> Result> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `snmp2` (lib) generated 8 warnings (run `cargo fix --lib -p snmp2` to apply 8 suggestions) [INFO] [stderr] warning: `snmp2` (lib test) generated 8 warnings (8 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.10s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/snmp2-8035f1e02b659545) [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test tests::asn_parse_getnext_pdu ... ok [INFO] [stdout] test tests::build_get_many_pdu ... ok [INFO] [stdout] test tests::build_getbulk_pdu ... ok [INFO] [stdout] test tests::build_getnext_pdu ... ok [INFO] [stdout] test tests::build_reply_pdu ... ok [INFO] [stderr] Doc-tests snmp2 [INFO] [stdout] test tests::test_varbinds_no_such_object_no_such_instance_end_of_mib_view ... ok [INFO] [stdout] test tests::asn_read_byte ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test src/lib.rs - (line 150) ... ignored [INFO] [stdout] test src/lib.rs - (line 182) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 105) - compile ... ok [INFO] [stdout] test src/lib.rs - (line 63) - compile ... ok [INFO] [stdout] test src/lib.rs - (line 125) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 45) - compile ... ok [INFO] [stdout] test src/lib.rs - (line 84) - compile ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 182) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `snmp2::v3` [INFO] [stdout] --> src/lib.rs:184:26 [INFO] [stdout] | [INFO] [stdout] 184 | use snmp2::{SyncSession, v3, Oid}; [INFO] [stdout] | ^^ no `v3` in the root [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | #[cfg(feature = "v3")] [INFO] [stdout] | -------------- the item is gated behind the `v3` feature [INFO] [stdout] 14 | pub mod v3; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new_v3` found for struct `SyncSession` in the current scope [INFO] [stdout] --> src/lib.rs:196:18 [INFO] [stdout] | [INFO] [stdout] 196 | SyncSession::new_v3("192.168.1.1:161", Some(Duration::from_secs(2)), 0, security).unwrap(); [INFO] [stdout] | ^^^^^^ function or associated item not found in `SyncSession` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `SyncSession` consider using one of the following associated functions: [INFO] [stdout] SyncSession::new_v1 [INFO] [stdout] SyncSession::new_v2c [INFO] [stdout] --> /opt/rustwide/workdir/src/syncsession.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | / pub fn new_v1( [INFO] [stdout] 30 | | destination: SA, [INFO] [stdout] 31 | | community: &[u8], [INFO] [stdout] 32 | | timeout: Option, [INFO] [stdout] ... | [INFO] [stdout] 35 | | where [INFO] [stdout] 36 | | SA: ToSocketAddrs, [INFO] [stdout] | |__________________________^ [INFO] [stdout] ... [INFO] [stdout] 47 | / pub fn new_v2c( [INFO] [stdout] 48 | | destination: SA, [INFO] [stdout] 49 | | community: &[u8], [INFO] [stdout] 50 | | timeout: Option, [INFO] [stdout] ... | [INFO] [stdout] 53 | | where [INFO] [stdout] 54 | | SA: ToSocketAddrs, [INFO] [stdout] | |__________________________^ [INFO] [stdout] help: there is an associated function `new_v1` with a similar name [INFO] [stdout] | [INFO] [stdout] 196 - SyncSession::new_v3("192.168.1.1:161", Some(Duration::from_secs(2)), 0, security).unwrap(); [INFO] [stdout] 196 + SyncSession::new_v1("192.168.1.1:161", Some(Duration::from_secs(2)), 0, security).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `AuthUpdated` found for enum `snmp2::Error` in the current scope [INFO] [stdout] --> src/lib.rs:208:27 [INFO] [stdout] | [INFO] [stdout] 208 | Err(snmp2::Error::AuthUpdated) => continue, [INFO] [stdout] | ^^^^^^^^^^^ variant or associated item not found in `snmp2::Error` [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:202:9 [INFO] [stdout] | [INFO] [stdout] 202 | let res = match sess.get(&Oid::from(&[1, 3, 6, 1, 2, 1, 1, 3, 0]).unwrap()) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 211 | println!("{} {:?}", res.version().unwrap(), res.varbinds); [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `res` an explicit type [INFO] [stdout] | [INFO] [stdout] 202 | let res: /* Type */ = match sess.get(&Oid::from(&[1, 3, 6, 1, 2, 1, 1, 3, 0]).unwrap()) { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 125) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `snmp2::AsyncSession` [INFO] [stdout] --> src/lib.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | use snmp2::{AsyncSession, Value, Oid}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | no `AsyncSession` in the root [INFO] [stdout] | help: a similar name exists in the module: `syncsession` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:19:23 [INFO] [stdout] | [INFO] [stdout] 18 | #[cfg(feature = "tokio")] [INFO] [stdout] | ----------------- the item is gated behind the `tokio` feature [INFO] [stdout] 19 | pub use asyncsession::AsyncSession; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:135:20 [INFO] [stdout] | [INFO] [stdout] 135 | let mut sess = AsyncSession::new_v2c(agent_addr, community, 0).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:136:24 [INFO] [stdout] | [INFO] [stdout] 136 | let mut response = sess.getnext(&sys_descr_oid).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 125) [INFO] [stdout] src/lib.rs - (line 182) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 4 passed; 2 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.36s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "36ba4869418ceb99df08650b03f95e3bfcd52fc0e403db5ca97f31e4fe464c02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "36ba4869418ceb99df08650b03f95e3bfcd52fc0e403db5ca97f31e4fe464c02", kill_on_drop: false }` [INFO] [stdout] 36ba4869418ceb99df08650b03f95e3bfcd52fc0e403db5ca97f31e4fe464c02