[INFO] fetching crate snmp2 0.4.9... [INFO] testing snmp2-0.4.9 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate snmp2 0.4.9 into /workspace/builds/worker-6-tc1/source [INFO] removed /workspace/builds/worker-6-tc1/source/rust-toolchain.toml [INFO] started tweaking crates.io crate snmp2 0.4.9 [INFO] finished tweaking crates.io crate snmp2 0.4.9 [INFO] tweaked toml for crates.io crate snmp2 0.4.9 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate snmp2 0.4.9 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "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" "+caccb4d0368bd918ef6668af8e13834d07040417" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 65 packages to latest compatible versions [INFO] [stderr] Adding asn1-rs v0.6.2 (available: v0.7.1) [INFO] [stderr] Adding tokio v1.36.0 (available: v1.47.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded snmptools v0.1.3 [INFO] [stderr] Downloaded netsnmp-sys-nocrypto v0.1.3 [INFO] [stderr] Downloaded tokio v1.36.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c148772c2eb56f2feb91cec7d5b64899f228bd5e481a72d1b429e0fc2fda7d31 [INFO] running `Command { std: "docker" "start" "-a" "c148772c2eb56f2feb91cec7d5b64899f228bd5e481a72d1b429e0fc2fda7d31", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c148772c2eb56f2feb91cec7d5b64899f228bd5e481a72d1b429e0fc2fda7d31", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c148772c2eb56f2feb91cec7d5b64899f228bd5e481a72d1b429e0fc2fda7d31", kill_on_drop: false }` [INFO] [stdout] c148772c2eb56f2feb91cec7d5b64899f228bd5e481a72d1b429e0fc2fda7d31 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6bd2ae21989b4024cfbfd3cfd317deebf7ffe4f12ef57707fe251b53758f3ac0 [INFO] running `Command { std: "docker" "start" "-a" "6bd2ae21989b4024cfbfd3cfd317deebf7ffe4f12ef57707fe251b53758f3ac0", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling rusticata-macros v4.1.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [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 thiserror v1.0.69 [INFO] [stderr] Compiling asn1-rs v0.6.2 [INFO] [stderr] Compiling snmp2 v0.4.9 (/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:20 [INFO] [stdout] | [INFO] [stdout] 205 | 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] 205 | 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:228:9 [INFO] [stdout] | [INFO] [stdout] 228 | &mut self, [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here [INFO] [stdout] ... [INFO] [stdout] 232 | ) -> 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] 232 | ) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/syncsession.rs:256:16 [INFO] [stdout] | [INFO] [stdout] 256 | 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] 256 | 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 11.68s [INFO] running `Command { std: "docker" "inspect" "6bd2ae21989b4024cfbfd3cfd317deebf7ffe4f12ef57707fe251b53758f3ac0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6bd2ae21989b4024cfbfd3cfd317deebf7ffe4f12ef57707fe251b53758f3ac0", kill_on_drop: false }` [INFO] [stdout] 6bd2ae21989b4024cfbfd3cfd317deebf7ffe4f12ef57707fe251b53758f3ac0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d7536ee0b6b8e7d004a0081367de85a71ca7523087a629342225bff2ad21df3e [INFO] running `Command { std: "docker" "start" "-a" "d7536ee0b6b8e7d004a0081367de85a71ca7523087a629342225bff2ad21df3e", kill_on_drop: false }` [INFO] [stderr] Compiling tokio v1.36.0 [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:20 [INFO] [stdout] | [INFO] [stdout] 205 | 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] 205 | 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:228:9 [INFO] [stdout] | [INFO] [stdout] 228 | &mut self, [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here [INFO] [stdout] ... [INFO] [stdout] 232 | ) -> 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] 232 | ) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/syncsession.rs:256:16 [INFO] [stdout] | [INFO] [stdout] 256 | 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] 256 | pub fn set(&mut self, values: &[(&Oid, Value)]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling snmp2 v0.4.9 (/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:20 [INFO] [stdout] | [INFO] [stdout] 205 | 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] 205 | 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:228:9 [INFO] [stdout] | [INFO] [stdout] 228 | &mut self, [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here [INFO] [stdout] ... [INFO] [stdout] 232 | ) -> 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] 232 | ) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/syncsession.rs:256:16 [INFO] [stdout] | [INFO] [stdout] 256 | 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] 256 | 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.16s [INFO] running `Command { std: "docker" "inspect" "d7536ee0b6b8e7d004a0081367de85a71ca7523087a629342225bff2ad21df3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d7536ee0b6b8e7d004a0081367de85a71ca7523087a629342225bff2ad21df3e", kill_on_drop: false }` [INFO] [stdout] d7536ee0b6b8e7d004a0081367de85a71ca7523087a629342225bff2ad21df3e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 24c3920d0ba41ad9290cf3cde832cae590d958a0b7be231f671c9a5f87b4a22e [INFO] running `Command { std: "docker" "start" "-a" "24c3920d0ba41ad9290cf3cde832cae590d958a0b7be231f671c9a5f87b4a22e", 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:20 [INFO] [stderr] | [INFO] [stderr] 205 | 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] 205 | 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:228:9 [INFO] [stderr] | [INFO] [stderr] 228 | &mut self, [INFO] [stderr] | ^^^^^^^^^ the lifetime is elided here [INFO] [stderr] ... [INFO] [stderr] 232 | ) -> 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] 232 | ) -> Result> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/syncsession.rs:256:16 [INFO] [stderr] | [INFO] [stderr] 256 | 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] 256 | pub fn set(&mut self, values: &[(&Oid, Value)]) -> Result> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `snmp2` (lib) generated 7 warnings (run `cargo fix --lib -p snmp2` to apply 7 suggestions) [INFO] [stderr] warning: `snmp2` (lib test) generated 7 warnings (7 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/snmp2-893764a559aef969) [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test tests::build_getbulk_pdu ... ok [INFO] [stdout] test tests::build_reply_pdu ... ok [INFO] [stdout] test tests::build_getnext_pdu ... ok [INFO] [stdout] test tests::asn_read_byte ... ok [INFO] [stdout] test tests::asn_parse_getnext_pdu ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Doc-tests snmp2 [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test src/lib.rs - (line 150) ... ignored [INFO] [stdout] test src/lib.rs - (line 105) - compile ... ok [INFO] [stdout] test src/lib.rs - (line 182) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 45) - compile ... ok [INFO] [stdout] test src/lib.rs - (line 84) - compile ... ok [INFO] [stdout] test src/lib.rs - (line 125) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 63) - 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] 5 | 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] 17 | 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] 17 - SyncSession::new_v3("192.168.1.1:161", Some(Duration::from_secs(2)), 0, security).unwrap(); [INFO] [stdout] 17 + 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] 29 | Err(snmp2::Error::AuthUpdated) => continue, [INFO] [stdout] | ^^^^^^^^^^^ variant or associated item not found in `snmp2::Error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [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] 6 | 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: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [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.31s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "24c3920d0ba41ad9290cf3cde832cae590d958a0b7be231f671c9a5f87b4a22e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "24c3920d0ba41ad9290cf3cde832cae590d958a0b7be231f671c9a5f87b4a22e", kill_on_drop: false }` [INFO] [stdout] 24c3920d0ba41ad9290cf3cde832cae590d958a0b7be231f671c9a5f87b4a22e