[INFO] fetching crate libdvb 0.3.1... [INFO] checking libdvb-0.3.1 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate libdvb 0.3.1 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate libdvb 0.3.1 [INFO] finished tweaking crates.io crate libdvb 0.3.1 [INFO] tweaked toml for crates.io crate libdvb 0.3.1 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate libdvb 0.3.1 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] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 11 packages to latest compatible versions [INFO] [stderr] Adding nix v0.29.0 (available: v0.30.1) [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.16) [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-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] eb7a1d2e7dc4ef8747aa71d2de65e66b5d331deccb6beea336209dc164e29506 [INFO] running `Command { std: "docker" "start" "-a" "eb7a1d2e7dc4ef8747aa71d2de65e66b5d331deccb6beea336209dc164e29506", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "eb7a1d2e7dc4ef8747aa71d2de65e66b5d331deccb6beea336209dc164e29506", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb7a1d2e7dc4ef8747aa71d2de65e66b5d331deccb6beea336209dc164e29506", kill_on_drop: false }` [INFO] [stdout] eb7a1d2e7dc4ef8747aa71d2de65e66b5d331deccb6beea336209dc164e29506 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 41cf0be31da184c70fbab6e0db6ce4b04e09577a7648996447a7b864f0854cc6 [INFO] running `Command { std: "docker" "start" "-a" "41cf0be31da184c70fbab6e0db6ce4b04e09577a7648996447a7b864f0854cc6", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling cfg_aliases v0.2.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking bitflags v2.9.3 [INFO] [stderr] Checking cfg-if v1.0.3 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking libdvb v0.3.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `adapter` and `device` are never read [INFO] [stdout] --> src/ca/mod.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct CaDevice { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 39 | adapter: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 40 | device: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CaDevice` 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: methods `poll_timer` and `poll_event` are never used [INFO] [stdout] --> src/ca/mod.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 53 | impl CaDevice { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 140 | fn poll_timer(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | fn poll_event(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIZE_INDICATOR` is never used [INFO] [stdout] --> src/ca/asn1.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | const SIZE_INDICATOR: u8 = 0x80; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode` is never used [INFO] [stdout] --> src/ca/asn1.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn encode(value: u16, out: &mut Vec) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TPDU_SIZE_MAX` is never used [INFO] [stdout] --> src/ca/tpdu.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | pub const TPDU_SIZE_MAX: usize = 2048; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send` is never used [INFO] [stdout] --> src/ca/tpdu.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn send(ca: &CaDevice, slot_id: u8, tag: u8, data: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init` is never used [INFO] [stdout] --> src/ca/tpdu.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn init(ca: &CaDevice, slot_id: u8) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TT_SB` is never used [INFO] [stdout] --> src/ca/tpdu.rs:45:15 [INFO] [stdout] | [INFO] [stdout] 45 | pub const TT_SB: u8 = 0x80; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TT_RCV` is never used [INFO] [stdout] --> src/ca/tpdu.rs:46:15 [INFO] [stdout] | [INFO] [stdout] 46 | pub const TT_RCV: u8 = 0x81; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TT_CREATE_TC` is never used [INFO] [stdout] --> src/ca/tpdu.rs:47:15 [INFO] [stdout] | [INFO] [stdout] 47 | pub const TT_CREATE_TC: u8 = 0x82; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TT_CTC_REPLY` is never used [INFO] [stdout] --> src/ca/tpdu.rs:48:15 [INFO] [stdout] | [INFO] [stdout] 48 | pub const TT_CTC_REPLY: u8 = 0x83; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TT_DELETE_TC` is never used [INFO] [stdout] --> src/ca/tpdu.rs:49:15 [INFO] [stdout] | [INFO] [stdout] 49 | pub const TT_DELETE_TC: u8 = 0x84; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TT_DTC_REPLY` is never used [INFO] [stdout] --> src/ca/tpdu.rs:50:15 [INFO] [stdout] | [INFO] [stdout] 50 | pub const TT_DTC_REPLY: u8 = 0x85; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TT_REQUEST_TC` is never used [INFO] [stdout] --> src/ca/tpdu.rs:51:15 [INFO] [stdout] | [INFO] [stdout] 51 | pub const TT_REQUEST_TC: u8 = 0x86; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TT_NEW_TC` is never used [INFO] [stdout] --> src/ca/tpdu.rs:52:15 [INFO] [stdout] | [INFO] [stdout] 52 | pub const TT_NEW_TC: u8 = 0x87; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TT_TC_ERROR` is never used [INFO] [stdout] --> src/ca/tpdu.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 53 | pub const TT_TC_ERROR: u8 = 0x88; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TT_DATA_LAST` is never used [INFO] [stdout] --> src/ca/tpdu.rs:54:15 [INFO] [stdout] | [INFO] [stdout] 54 | pub const TT_DATA_LAST: u8 = 0xA0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TT_DATA_MORE` is never used [INFO] [stdout] --> src/ca/tpdu.rs:55:15 [INFO] [stdout] | [INFO] [stdout] 55 | pub const TT_DATA_MORE: u8 = 0xA1; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SPDU_HEADER_SIZE` is never used [INFO] [stdout] --> src/ca/spdu.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | pub const SPDU_HEADER_SIZE: usize = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_size` is never used [INFO] [stdout] --> src/ca/spdu.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn assert_size(spdu: &[u8], size: usize) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_session_number` is never used [INFO] [stdout] --> src/ca/spdu.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn handle_session_number(ca: &mut CaDevice, _slot_id: u8, spdu: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_open_session_request` is never used [INFO] [stdout] --> src/ca/spdu.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn handle_open_session_request(ca: &mut CaDevice, slot_id: u8, spdu: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_close_session_request` is never used [INFO] [stdout] --> src/ca/spdu.rs:90:4 [INFO] [stdout] | [INFO] [stdout] 90 | fn handle_close_session_request(ca: &mut CaDevice, slot_id: u8, spdu: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_create_session_response` is never used [INFO] [stdout] --> src/ca/spdu.rs:108:4 [INFO] [stdout] | [INFO] [stdout] 108 | fn handle_create_session_response(ca: &mut CaDevice, _slot_id: u8, spdu: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_close_session_response` is never used [INFO] [stdout] --> src/ca/spdu.rs:122:4 [INFO] [stdout] | [INFO] [stdout] 122 | fn handle_close_session_response(ca: &mut CaDevice, _slot_id: u8, spdu: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle` is never used [INFO] [stdout] --> src/ca/spdu.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn handle(ca: &mut CaDevice, slot_id: u8, spdu: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ST_SESSION_NUMBER` is never used [INFO] [stdout] --> src/ca/spdu.rs:36:15 [INFO] [stdout] | [INFO] [stdout] 36 | pub const ST_SESSION_NUMBER: u8 = 0x90; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ST_OPEN_SESSION_REQUEST` is never used [INFO] [stdout] --> src/ca/spdu.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 37 | pub const ST_OPEN_SESSION_REQUEST: u8 = 0x91; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ST_OPEN_SESSION_RESPONSE` is never used [INFO] [stdout] --> src/ca/spdu.rs:38:15 [INFO] [stdout] | [INFO] [stdout] 38 | pub const ST_OPEN_SESSION_RESPONSE: u8 = 0x92; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ST_CREATE_SESSION` is never used [INFO] [stdout] --> src/ca/spdu.rs:39:15 [INFO] [stdout] | [INFO] [stdout] 39 | pub const ST_CREATE_SESSION: u8 = 0x93; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ST_CREATE_SESSION_RESPONSE` is never used [INFO] [stdout] --> src/ca/spdu.rs:40:15 [INFO] [stdout] | [INFO] [stdout] 40 | pub const ST_CREATE_SESSION_RESPONSE: u8 = 0x94; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ST_CLOSE_SESSION_REQUEST` is never used [INFO] [stdout] --> src/ca/spdu.rs:41:15 [INFO] [stdout] | [INFO] [stdout] 41 | pub const ST_CLOSE_SESSION_REQUEST: u8 = 0x95; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ST_CLOSE_SESSION_RESPONSE` is never used [INFO] [stdout] --> src/ca/spdu.rs:42:15 [INFO] [stdout] | [INFO] [stdout] 42 | pub const ST_CLOSE_SESSION_RESPONSE: u8 = 0x96; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SS_OK` is never used [INFO] [stdout] --> src/ca/spdu.rs:48:15 [INFO] [stdout] | [INFO] [stdout] 48 | pub const SS_OK: u8 = 0x00; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SS_NOT_ALLOCATED` is never used [INFO] [stdout] --> src/ca/spdu.rs:49:15 [INFO] [stdout] | [INFO] [stdout] 49 | pub const SS_NOT_ALLOCATED: u8 = 0xF0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `APDU_TAG_SIZE` is never used [INFO] [stdout] --> src/ca/apdu.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | pub const APDU_TAG_SIZE: usize = 3; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init` is never used [INFO] [stdout] --> src/ca/apdu.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn init(_ca: &mut CaDevice, _resource_id: u32) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `open` is never used [INFO] [stdout] --> src/ca/apdu.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn open(_ca: &mut CaDevice, _session_id: u16) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `close` is never used [INFO] [stdout] --> src/ca/apdu.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn close(_ca: &mut CaDevice, _session_id: u16) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle` is never used [INFO] [stdout] --> src/ca/apdu.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn handle(_ca: &mut CaDevice, _session_id: u16, _msg: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `manage` is never used [INFO] [stdout] --> src/ca/apdu.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn manage(_ca: &mut CaDevice, _session_id: u16) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/net/mod.rs:69:19 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn add_if(&self, pid: u16, feedtype: u8) -> 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] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 69 | pub fn add_if(&self, pid: u16, feedtype: u8) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `adapter` and `device` are never read [INFO] [stdout] --> src/ca/mod.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct CaDevice { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 39 | adapter: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 40 | device: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CaDevice` 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: methods `poll_timer` and `poll_event` are never used [INFO] [stdout] --> src/ca/mod.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 53 | impl CaDevice { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 140 | fn poll_timer(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | fn poll_event(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIZE_INDICATOR` is never used [INFO] [stdout] --> src/ca/asn1.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | const SIZE_INDICATOR: u8 = 0x80; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode` is never used [INFO] [stdout] --> src/ca/asn1.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn encode(value: u16, out: &mut Vec) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TPDU_SIZE_MAX` is never used [INFO] [stdout] --> src/ca/tpdu.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | pub const TPDU_SIZE_MAX: usize = 2048; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send` is never used [INFO] [stdout] --> src/ca/tpdu.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn send(ca: &CaDevice, slot_id: u8, tag: u8, data: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init` is never used [INFO] [stdout] --> src/ca/tpdu.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn init(ca: &CaDevice, slot_id: u8) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TT_SB` is never used [INFO] [stdout] --> src/ca/tpdu.rs:45:15 [INFO] [stdout] | [INFO] [stdout] 45 | pub const TT_SB: u8 = 0x80; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TT_RCV` is never used [INFO] [stdout] --> src/ca/tpdu.rs:46:15 [INFO] [stdout] | [INFO] [stdout] 46 | pub const TT_RCV: u8 = 0x81; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TT_CREATE_TC` is never used [INFO] [stdout] --> src/ca/tpdu.rs:47:15 [INFO] [stdout] | [INFO] [stdout] 47 | pub const TT_CREATE_TC: u8 = 0x82; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TT_CTC_REPLY` is never used [INFO] [stdout] --> src/ca/tpdu.rs:48:15 [INFO] [stdout] | [INFO] [stdout] 48 | pub const TT_CTC_REPLY: u8 = 0x83; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TT_DELETE_TC` is never used [INFO] [stdout] --> src/ca/tpdu.rs:49:15 [INFO] [stdout] | [INFO] [stdout] 49 | pub const TT_DELETE_TC: u8 = 0x84; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TT_DTC_REPLY` is never used [INFO] [stdout] --> src/ca/tpdu.rs:50:15 [INFO] [stdout] | [INFO] [stdout] 50 | pub const TT_DTC_REPLY: u8 = 0x85; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TT_REQUEST_TC` is never used [INFO] [stdout] --> src/ca/tpdu.rs:51:15 [INFO] [stdout] | [INFO] [stdout] 51 | pub const TT_REQUEST_TC: u8 = 0x86; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TT_NEW_TC` is never used [INFO] [stdout] --> src/ca/tpdu.rs:52:15 [INFO] [stdout] | [INFO] [stdout] 52 | pub const TT_NEW_TC: u8 = 0x87; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TT_TC_ERROR` is never used [INFO] [stdout] --> src/ca/tpdu.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 53 | pub const TT_TC_ERROR: u8 = 0x88; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TT_DATA_LAST` is never used [INFO] [stdout] --> src/ca/tpdu.rs:54:15 [INFO] [stdout] | [INFO] [stdout] 54 | pub const TT_DATA_LAST: u8 = 0xA0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TT_DATA_MORE` is never used [INFO] [stdout] --> src/ca/tpdu.rs:55:15 [INFO] [stdout] | [INFO] [stdout] 55 | pub const TT_DATA_MORE: u8 = 0xA1; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SPDU_HEADER_SIZE` is never used [INFO] [stdout] --> src/ca/spdu.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | pub const SPDU_HEADER_SIZE: usize = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_size` is never used [INFO] [stdout] --> src/ca/spdu.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn assert_size(spdu: &[u8], size: usize) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_session_number` is never used [INFO] [stdout] --> src/ca/spdu.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn handle_session_number(ca: &mut CaDevice, _slot_id: u8, spdu: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_open_session_request` is never used [INFO] [stdout] --> src/ca/spdu.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn handle_open_session_request(ca: &mut CaDevice, slot_id: u8, spdu: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_close_session_request` is never used [INFO] [stdout] --> src/ca/spdu.rs:90:4 [INFO] [stdout] | [INFO] [stdout] 90 | fn handle_close_session_request(ca: &mut CaDevice, slot_id: u8, spdu: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_create_session_response` is never used [INFO] [stdout] --> src/ca/spdu.rs:108:4 [INFO] [stdout] | [INFO] [stdout] 108 | fn handle_create_session_response(ca: &mut CaDevice, _slot_id: u8, spdu: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_close_session_response` is never used [INFO] [stdout] --> src/ca/spdu.rs:122:4 [INFO] [stdout] | [INFO] [stdout] 122 | fn handle_close_session_response(ca: &mut CaDevice, _slot_id: u8, spdu: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle` is never used [INFO] [stdout] --> src/ca/spdu.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn handle(ca: &mut CaDevice, slot_id: u8, spdu: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ST_SESSION_NUMBER` is never used [INFO] [stdout] --> src/ca/spdu.rs:36:15 [INFO] [stdout] | [INFO] [stdout] 36 | pub const ST_SESSION_NUMBER: u8 = 0x90; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ST_OPEN_SESSION_REQUEST` is never used [INFO] [stdout] --> src/ca/spdu.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 37 | pub const ST_OPEN_SESSION_REQUEST: u8 = 0x91; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ST_OPEN_SESSION_RESPONSE` is never used [INFO] [stdout] --> src/ca/spdu.rs:38:15 [INFO] [stdout] | [INFO] [stdout] 38 | pub const ST_OPEN_SESSION_RESPONSE: u8 = 0x92; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ST_CREATE_SESSION` is never used [INFO] [stdout] --> src/ca/spdu.rs:39:15 [INFO] [stdout] | [INFO] [stdout] 39 | pub const ST_CREATE_SESSION: u8 = 0x93; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ST_CREATE_SESSION_RESPONSE` is never used [INFO] [stdout] --> src/ca/spdu.rs:40:15 [INFO] [stdout] | [INFO] [stdout] 40 | pub const ST_CREATE_SESSION_RESPONSE: u8 = 0x94; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ST_CLOSE_SESSION_REQUEST` is never used [INFO] [stdout] --> src/ca/spdu.rs:41:15 [INFO] [stdout] | [INFO] [stdout] 41 | pub const ST_CLOSE_SESSION_REQUEST: u8 = 0x95; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ST_CLOSE_SESSION_RESPONSE` is never used [INFO] [stdout] --> src/ca/spdu.rs:42:15 [INFO] [stdout] | [INFO] [stdout] 42 | pub const ST_CLOSE_SESSION_RESPONSE: u8 = 0x96; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SS_OK` is never used [INFO] [stdout] --> src/ca/spdu.rs:48:15 [INFO] [stdout] | [INFO] [stdout] 48 | pub const SS_OK: u8 = 0x00; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SS_NOT_ALLOCATED` is never used [INFO] [stdout] --> src/ca/spdu.rs:49:15 [INFO] [stdout] | [INFO] [stdout] 49 | pub const SS_NOT_ALLOCATED: u8 = 0xF0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `APDU_TAG_SIZE` is never used [INFO] [stdout] --> src/ca/apdu.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | pub const APDU_TAG_SIZE: usize = 3; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init` is never used [INFO] [stdout] --> src/ca/apdu.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn init(_ca: &mut CaDevice, _resource_id: u32) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `open` is never used [INFO] [stdout] --> src/ca/apdu.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn open(_ca: &mut CaDevice, _session_id: u16) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `close` is never used [INFO] [stdout] --> src/ca/apdu.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn close(_ca: &mut CaDevice, _session_id: u16) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle` is never used [INFO] [stdout] --> src/ca/apdu.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn handle(_ca: &mut CaDevice, _session_id: u16, _msg: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `manage` is never used [INFO] [stdout] --> src/ca/apdu.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn manage(_ca: &mut CaDevice, _session_id: u16) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/net/mod.rs:69:19 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn add_if(&self, pid: u16, feedtype: u8) -> 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] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 69 | pub fn add_if(&self, pid: u16, feedtype: u8) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.48s [INFO] running `Command { std: "docker" "inspect" "41cf0be31da184c70fbab6e0db6ce4b04e09577a7648996447a7b864f0854cc6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41cf0be31da184c70fbab6e0db6ce4b04e09577a7648996447a7b864f0854cc6", kill_on_drop: false }` [INFO] [stdout] 41cf0be31da184c70fbab6e0db6ce4b04e09577a7648996447a7b864f0854cc6