[INFO] fetching crate rlibupnp 0.1.0... [INFO] checking rlibupnp-0.1.0 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate rlibupnp 0.1.0 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate rlibupnp 0.1.0 [INFO] finished tweaking crates.io crate rlibupnp 0.1.0 [INFO] tweaked toml for crates.io crate rlibupnp 0.1.0 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rlibupnp 0.1.0 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate rlibupnp 0.1.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0d7950fa94c34615b891dddaf96fdd9316624ee141c91c1f0968646c9998ebb0 [INFO] running `Command { std: "docker" "start" "-a" "0d7950fa94c34615b891dddaf96fdd9316624ee141c91c1f0968646c9998ebb0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0d7950fa94c34615b891dddaf96fdd9316624ee141c91c1f0968646c9998ebb0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0d7950fa94c34615b891dddaf96fdd9316624ee141c91c1f0968646c9998ebb0", kill_on_drop: false }` [INFO] [stdout] 0d7950fa94c34615b891dddaf96fdd9316624ee141c91c1f0968646c9998ebb0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 05346b57bb702872f52f528adfe9b14c0785c74b149cc63b52d3d3305cfd2162 [INFO] running `Command { std: "docker" "start" "-a" "05346b57bb702872f52f528adfe9b14c0785c74b149cc63b52d3d3305cfd2162", kill_on_drop: false }` [INFO] [stderr] Checking roxmltree v0.20.0 [INFO] [stderr] Checking rlibupnp v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `src_addr` [INFO] [stdout] --> src/upnp/upnp.rs:27:27 [INFO] [stdout] | [INFO] [stdout] 27 | Ok((size, src_addr)) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_src_addr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/upnp/upnp.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REQUESTS` is never used [INFO] [stdout] --> src/upnp/upnp.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const REQUESTS: [&str; 3] = [ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UPnP` is never constructed [INFO] [stdout] --> src/upnp/upnp.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct UPnP { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `open_port`, `close_port`, `is_mapped`, and `get_external_ip` are never used [INFO] [stdout] --> src/upnp/upnp.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl UPnP { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 17 | [INFO] [stdout] 18 | pub fn new(local_addr: IpAddr) -> io::Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn open_port(&self, port: u16, protocol: Protocol) -> io::Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn close_port(&self, port: u16, protocol: Protocol) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn is_mapped(&self, port: u16, protocol: Protocol) -> io::Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn get_external_ip(&self) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Gateway` is never constructed [INFO] [stdout] --> src/upnp/gateway.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Gateway { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `open_port`, `close_port`, `is_mapped`, `get_external_ip`, and `command` are never used [INFO] [stdout] --> src/upnp/gateway.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Gateway { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 16 | [INFO] [stdout] 17 | pub fn new(buf: &[u8], size: usize, address: IpAddr) -> io::Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn open_port(&self, port: u16, protocol: Protocol) -> io::Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn close_port(&self, port: u16, protocol: Protocol) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn is_mapped(&self, port: u16, protocol: Protocol) -> io::Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn get_external_ip(&self) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | fn command(&self, action: &str, params: Option>) -> io::Result> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Protocol` is never used [INFO] [stdout] --> src/upnp/protocol.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Protocol { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_value` and `value` are never used [INFO] [stdout] --> src/upnp/protocol.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Protocol { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 8 | [INFO] [stdout] 9 | pub fn from_value(value: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn value(&self) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Url` is never constructed [INFO] [stdout] --> src/utils/url.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Url { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `to_string` are never used [INFO] [stdout] --> src/utils/url.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Url { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 9 | [INFO] [stdout] 10 | pub fn new(url: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src_addr` [INFO] [stdout] --> src/upnp/upnp.rs:27:27 [INFO] [stdout] | [INFO] [stdout] 27 | Ok((size, src_addr)) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_src_addr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/upnp/upnp.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `open_port` and `close_port` are never used [INFO] [stdout] --> src/upnp/upnp.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl UPnP { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn open_port(&self, port: u16, protocol: Protocol) -> io::Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn close_port(&self, port: u16, protocol: Protocol) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `address` is never read [INFO] [stdout] --> src/upnp/gateway.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Gateway { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 10 | address: IpAddr, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `open_port` and `close_port` are never used [INFO] [stdout] --> src/upnp/gateway.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Gateway { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn open_port(&self, port: u16, protocol: Protocol) -> io::Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn close_port(&self, port: u16, protocol: Protocol) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Udp` is never constructed [INFO] [stdout] --> src/upnp/protocol.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Protocol { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 3 | Udp, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Protocol` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_value` is never used [INFO] [stdout] --> src/upnp/protocol.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Protocol { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 8 | [INFO] [stdout] 9 | pub fn from_value(value: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `scheme` is never read [INFO] [stdout] --> src/utils/url.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Url { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 2 | pub(crate) scheme: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_string` is never used [INFO] [stdout] --> src/utils/url.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Url { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.88s [INFO] running `Command { std: "docker" "inspect" "05346b57bb702872f52f528adfe9b14c0785c74b149cc63b52d3d3305cfd2162", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "05346b57bb702872f52f528adfe9b14c0785c74b149cc63b52d3d3305cfd2162", kill_on_drop: false }` [INFO] [stdout] 05346b57bb702872f52f528adfe9b14c0785c74b149cc63b52d3d3305cfd2162