[INFO] fetching crate icao-9303 0.1.0... [INFO] checking icao-9303-0.1.0 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate icao-9303 0.1.0 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate icao-9303 0.1.0 [INFO] finished tweaking crates.io crate icao-9303 0.1.0 [INFO] tweaked toml for crates.io crate icao-9303 0.1.0 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate icao-9303 0.1.0 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate icao-9303 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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d67aa0e241e300a6801df4aa24db98e729fbebd424a79d4a3422155257d06e49 [INFO] running `Command { std: "docker" "start" "-a" "d67aa0e241e300a6801df4aa24db98e729fbebd424a79d4a3422155257d06e49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d67aa0e241e300a6801df4aa24db98e729fbebd424a79d4a3422155257d06e49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d67aa0e241e300a6801df4aa24db98e729fbebd424a79d4a3422155257d06e49", kill_on_drop: false }` [INFO] [stdout] d67aa0e241e300a6801df4aa24db98e729fbebd424a79d4a3422155257d06e49 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d1eb84a53ebe0577f5dd343ef8a9a5b632be185486eb01694d7d2c4ef2f0a4cd [INFO] running `Command { std: "docker" "start" "-a" "d1eb84a53ebe0577f5dd343ef8a9a5b632be185486eb01694d7d2c4ef2f0a4cd", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Checking base64ct v1.6.0 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Checking flagset v0.4.6 [INFO] [stderr] Checking const-oid v0.9.6 [INFO] [stderr] Compiling winnow v0.6.20 [INFO] [stderr] Checking cpufeatures v0.2.14 [INFO] [stderr] Compiling cc v1.1.21 [INFO] [stderr] Compiling rusb v0.9.4 [INFO] [stderr] Compiling anyhow v1.0.89 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Checking pem-rfc7468 v0.7.0 [INFO] [stderr] Checking arrayref v0.3.9 [INFO] [stderr] Checking constant_time_eq v0.3.1 [INFO] [stderr] Compiling ruint-macro v1.2.1 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking crc-catalog v2.4.0 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking crc v3.2.1 [INFO] [stderr] Checking bytes v1.7.2 [INFO] [stderr] Checking glob v0.3.1 [INFO] [stderr] Checking hex-literal v0.4.1 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling indexmap v2.5.0 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling libusb1-sys v0.7.0 [INFO] [stderr] Compiling blake3 v1.5.4 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling toml_edit v0.22.22 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-padding v0.3.3 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking dbl v0.3.2 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking inout v0.1.3 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking cmac v0.7.2 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking des v0.8.1 [INFO] [stderr] Checking cbc-mac v0.1.1 [INFO] [stderr] Checking cbc v0.1.2 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling der_derive v0.7.3 [INFO] [stderr] Compiling proc-macro-crate v3.2.0 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling num_enum_derive v0.7.3 [INFO] [stderr] Checking der v0.7.9 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking spki v0.7.3 [INFO] [stderr] Checking x509-cert v0.2.5 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking num_enum v0.7.3 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking ruint v1.12.3 [INFO] [stderr] Checking cms v0.2.3 [INFO] [stderr] Checking argh_shared v0.1.12 [INFO] [stderr] Compiling argh_derive v0.1.12 [INFO] [stderr] Checking argh v0.1.12 [INFO] [stderr] Checking icao-9303 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `hex_literal::hex` [INFO] [stdout] --> src/crypto/named_curves.rs:1:42 [INFO] [stdout] | [INFO] [stdout] 1 | use {der::asn1::ObjectIdentifier as Oid, hex_literal::hex}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hex_literal::hex` [INFO] [stdout] --> src/crypto/named_curves.rs:1:42 [INFO] [stdout] | [INFO] [stdout] 1 | use {der::asn1::ObjectIdentifier as Oid, hex_literal::hex}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/emrtd/chip_authentication.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 34 | let ec_params = todo!(); [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 40 | let curve = EllipticCurve::from_parameters(&ec_params)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/emrtd/chip_authentication.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 34 | let ec_params = todo!(); [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 40 | let curve = EllipticCurve::from_parameters(&ec_params)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ec_params` [INFO] [stdout] --> src/emrtd/chip_authentication.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let ec_params = todo!(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ec_params` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/emrtd/chip_authentication.rs:17:41 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn chip_authenticate(&mut self, rng: impl CryptoRng + RngCore) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k_pi` [INFO] [stdout] --> src/emrtd/pace.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let k_pi = kdf_128(&k[..], KDF_PACE); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_k_pi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/emrtd/pace.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn pace(&mut self, rng: impl CryptoRng + RngCore, mrz: &str) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/nfc/proxmark3/mod.rs:225:27 [INFO] [stdout] | [INFO] [stdout] 225 | let (status, cmd, mut response) = self.receive_response()?; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_SEC_P192R1` is never used [INFO] [stdout] --> src/crypto/named_curves.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const ID_SEC_P192R1: Oid = Oid::new_unwrap("1.2.840.10045.3.1.1"); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_SEC_P224R1` is never used [INFO] [stdout] --> src/crypto/named_curves.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const ID_SEC_P224R1: Oid = Oid::new_unwrap("1.3.132.0.33"); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_SEC_P256R1` is never used [INFO] [stdout] --> src/crypto/named_curves.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub const ID_SEC_P256R1: Oid = Oid::new_unwrap("1.2.840.10045.3.1.7"); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_SEC_P384R1` is never used [INFO] [stdout] --> src/crypto/named_curves.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub const ID_SEC_P384R1: Oid = Oid::new_unwrap("1.3.132.0.34"); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_SEC_P521R1` is never used [INFO] [stdout] --> src/crypto/named_curves.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const ID_SEC_P521R1: Oid = Oid::new_unwrap("1.3.132.0.35"); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_BRAINPOOL_P192R1` is never used [INFO] [stdout] --> src/crypto/named_curves.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub const ID_BRAINPOOL_P192R1: Oid = Oid::new_unwrap("1.3.36.3.3.2.8.1.1.3"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_BRAINPOOL_P224R1` is never used [INFO] [stdout] --> src/crypto/named_curves.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub const ID_BRAINPOOL_P224R1: Oid = Oid::new_unwrap("1.3.36.3.3.2.8.1.1.5"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_BRAINPOOL_P256R1` is never used [INFO] [stdout] --> src/crypto/named_curves.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | pub const ID_BRAINPOOL_P256R1: Oid = Oid::new_unwrap("1.3.36.3.3.2.8.1.1.7"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_BRAINPOOL_P320R1` is never used [INFO] [stdout] --> src/crypto/named_curves.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | pub const ID_BRAINPOOL_P320R1: Oid = Oid::new_unwrap("1.3.36.3.3.2.8.1.1.9"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_BRAINPOOL_P384R1` is never used [INFO] [stdout] --> src/crypto/named_curves.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | pub const ID_BRAINPOOL_P384R1: Oid = Oid::new_unwrap("1.3.36.3.3.2.8.1.1.11"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_BRAINPOOL_P512R1` is never used [INFO] [stdout] --> src/crypto/named_curves.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | pub const ID_BRAINPOOL_P512R1: Oid = Oid::new_unwrap("1.3.36.3.3.2.8.1.1.13"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EMRTD_TRAVEL_AID` is never used [INFO] [stdout] --> src/emrtd/files/file_id.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const EMRTD_TRAVEL_AID: &[u8] = &[0xA0, 0x00, 0x00, 0x02, 0x47, 0x20, 0x01]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EMRTD_VISA_AID` is never used [INFO] [stdout] --> src/emrtd/files/file_id.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub const EMRTD_VISA_AID: &[u8] = &[0xA0, 0x00, 0x00, 0x02, 0x47, 0x20, 0x02]; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EMRTD_BIOMETRICS_AID` is never used [INFO] [stdout] --> src/emrtd/files/file_id.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub const EMRTD_BIOMETRICS_AID: &[u8] = &[0xA0, 0x00, 0x00, 0x02, 0x47, 0x20, 0x03]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `standardized_parameters` is never used [INFO] [stdout] --> src/emrtd/pace.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn standardized_parameters(id: u64) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DebugPrintString`, `NotAck`, and `QuitSession` are never constructed [INFO] [stdout] --> src/nfc/proxmark3/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum Command { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 20 | DebugPrintString = 0x0100, // Used for error responses. [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | [INFO] [stdout] 22 | NotAck = 0x00FE, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | QuitSession = 0x0113, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `UndefinedError` and `InvalidArgument` are never constructed [INFO] [stdout] --> src/nfc/proxmark3/mod.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 35 | pub enum Status { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 36 | Success = 0, [INFO] [stdout] 37 | UndefinedError = -1, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 38 | InvalidArgument = -2, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `close` is never used [INFO] [stdout] --> src/nfc/proxmark3/mod.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 50 | trait Connection { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 53 | fn close(self) -> Result<()>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `close` is never used [INFO] [stdout] --> src/nfc/proxmark3/mod.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl Proxmark3 { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn close(mut self) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/crypto/elliptic_curve.rs:116:14 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn a(&self) -> PrimeFieldElement { [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] 116 | pub fn a(&self) -> PrimeFieldElement<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/crypto/elliptic_curve.rs:120:14 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn b(&self) -> PrimeFieldElement { [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] 120 | pub fn b(&self) -> PrimeFieldElement<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/crypto/elliptic_curve.rs:124:22 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn generator(&self) -> EllipticCurvePoint { [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] 124 | pub fn generator(&self) -> EllipticCurvePoint<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/crypto/elliptic_curve.rs:128:24 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn pt_infinity(&self) -> EllipticCurvePoint { [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] 128 | pub fn pt_infinity(&self) -> EllipticCurvePoint<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/crypto/elliptic_curve.rs:148:26 [INFO] [stdout] | [INFO] [stdout] 148 | pub fn pt_from_monty(&self, monty: EcMonty) -> 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] 148 | pub fn pt_from_monty(&self, monty: EcMonty) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/crypto/elliptic_curve.rs:159:26 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn pt_from_bytes(&self, bytes: &[u8]) -> 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] 159 | pub fn pt_from_bytes(&self, bytes: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/crypto/elliptic_curve.rs:228:14 [INFO] [stdout] | [INFO] [stdout] 228 | pub fn x(&self) -> Option { [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] 228 | pub fn x(&self) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/crypto/elliptic_curve.rs:235:14 [INFO] [stdout] | [INFO] [stdout] 235 | pub fn y(&self) -> Option { [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] 235 | pub fn y(&self) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/crypto/prime_field.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn zero(&self) -> PrimeFieldElement { [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] 78 | pub fn zero(&self) -> PrimeFieldElement<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/crypto/prime_field.rs:85:16 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn one(&self) -> PrimeFieldElement { [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] 85 | pub fn one(&self) -> PrimeFieldElement<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/crypto/prime_field.rs:93:24 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn el_from_u64(&self, value: u64) -> PrimeFieldElement { [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] 93 | pub fn el_from_u64(&self, value: u64) -> PrimeFieldElement<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/crypto/prime_field.rs:98:25 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn el_from_uint(&self, value: Uint) -> PrimeFieldElement { [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] 98 | pub fn el_from_uint(&self, value: Uint) -> PrimeFieldElement<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/crypto/prime_field.rs:108:26 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn el_from_monty(&self, value: Uint) -> PrimeFieldElement { [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] 108 | pub fn el_from_monty(&self, value: Uint) -> PrimeFieldElement<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/crypto/prime_field.rs:114:27 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn random_nonzero(&self, mut rng: impl CryptoRng + RngCore) -> PrimeFieldElement { [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] 114 | pub fn random_nonzero(&self, mut rng: impl CryptoRng + RngCore) -> PrimeFieldElement<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/crypto/prime_field.rs:135:34 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn os2fe>(&self, os: T) -> PrimeFieldElement { [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] 135 | pub fn os2fe>(&self, os: T) -> PrimeFieldElement<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/iso7816/mod.rs:56:25 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn parse_apdu(apdu: &[u8]) -> 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] 56 | pub fn parse_apdu(apdu: &[u8]) -> Result, Error> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ec_params` [INFO] [stdout] --> src/emrtd/chip_authentication.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let ec_params = todo!(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ec_params` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/emrtd/chip_authentication.rs:17:41 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn chip_authenticate(&mut self, rng: impl CryptoRng + RngCore) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k_pi` [INFO] [stdout] --> src/emrtd/pace.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let k_pi = kdf_128(&k[..], KDF_PACE); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_k_pi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/emrtd/pace.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn pace(&mut self, rng: impl CryptoRng + RngCore, mrz: &str) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `crapdu` [INFO] [stdout] --> src/emrtd/secure_messaging/aes.rs:283:13 [INFO] [stdout] | [INFO] [stdout] 283 | let crapdu = hex!("99 02 90 00 8E 08 EB FF 08 D3 B2 0A 04 14"); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_crapdu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rapdu` [INFO] [stdout] --> src/emrtd/secure_messaging/aes.rs:284:13 [INFO] [stdout] | [INFO] [stdout] 284 | let rapdu = hex!("90 00"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_rapdu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `apdu` [INFO] [stdout] --> src/emrtd/secure_messaging/aes.rs:291:13 [INFO] [stdout] | [INFO] [stdout] 291 | let apdu = hex!("00 22 81 B6 0F 83 0D 44 45 54 45 53 54 44 56 44 45 30 31 39"); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_apdu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `capdu` [INFO] [stdout] --> src/emrtd/secure_messaging/aes.rs:292:13 [INFO] [stdout] | [INFO] [stdout] 292 | let capdu = hex!( [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_capdu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `crapdu` [INFO] [stdout] --> src/emrtd/secure_messaging/aes.rs:298:13 [INFO] [stdout] | [INFO] [stdout] 298 | let crapdu = hex!("99 02 90 00 8E 08 C5 29 A8 ED 4B DC B9 96"); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_crapdu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rapdu` [INFO] [stdout] --> src/emrtd/secure_messaging/aes.rs:299:13 [INFO] [stdout] | [INFO] [stdout] 299 | let rapdu = hex!("90 00"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_rapdu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `apdu` [INFO] [stdout] --> src/emrtd/secure_messaging/aes.rs:302:13 [INFO] [stdout] | [INFO] [stdout] 302 | let apdu = hex!( [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_apdu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `capdu` [INFO] [stdout] --> src/emrtd/secure_messaging/aes.rs:330:13 [INFO] [stdout] | [INFO] [stdout] 330 | let capdu = hex!( [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_capdu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cracpdu` [INFO] [stdout] --> src/emrtd/secure_messaging/aes.rs:358:13 [INFO] [stdout] | [INFO] [stdout] 358 | let cracpdu = hex!("99 02 90 00 8E 08 B9 87 F8 19 0C DE 76 4D "); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cracpdu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rapdu` [INFO] [stdout] --> src/emrtd/secure_messaging/aes.rs:359:13 [INFO] [stdout] | [INFO] [stdout] 359 | let rapdu = hex!("90 00"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_rapdu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SecureMessaging` [INFO] [stdout] --> src/bin/tester.rs:12:63 [INFO] [stdout] | [INFO] [stdout] 12 | emrtd::secure_messaging::{construct_secure_messaging, SecureMessaging}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SecureMessaging` [INFO] [stdout] --> src/bin/tester.rs:12:63 [INFO] [stdout] | [INFO] [stdout] 12 | emrtd::secure_messaging::{construct_secure_messaging, SecureMessaging}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/nfc/proxmark3/mod.rs:225:27 [INFO] [stdout] | [INFO] [stdout] 225 | let (status, cmd, mut response) = self.receive_response()?; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_SEC_P192R1` is never used [INFO] [stdout] --> src/crypto/named_curves.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const ID_SEC_P192R1: Oid = Oid::new_unwrap("1.2.840.10045.3.1.1"); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_SEC_P224R1` is never used [INFO] [stdout] --> src/crypto/named_curves.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const ID_SEC_P224R1: Oid = Oid::new_unwrap("1.3.132.0.33"); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_SEC_P256R1` is never used [INFO] [stdout] --> src/crypto/named_curves.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub const ID_SEC_P256R1: Oid = Oid::new_unwrap("1.2.840.10045.3.1.7"); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_SEC_P384R1` is never used [INFO] [stdout] --> src/crypto/named_curves.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub const ID_SEC_P384R1: Oid = Oid::new_unwrap("1.3.132.0.34"); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_SEC_P521R1` is never used [INFO] [stdout] --> src/crypto/named_curves.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const ID_SEC_P521R1: Oid = Oid::new_unwrap("1.3.132.0.35"); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_BRAINPOOL_P192R1` is never used [INFO] [stdout] --> src/crypto/named_curves.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub const ID_BRAINPOOL_P192R1: Oid = Oid::new_unwrap("1.3.36.3.3.2.8.1.1.3"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_BRAINPOOL_P224R1` is never used [INFO] [stdout] --> src/crypto/named_curves.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub const ID_BRAINPOOL_P224R1: Oid = Oid::new_unwrap("1.3.36.3.3.2.8.1.1.5"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_BRAINPOOL_P256R1` is never used [INFO] [stdout] --> src/crypto/named_curves.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | pub const ID_BRAINPOOL_P256R1: Oid = Oid::new_unwrap("1.3.36.3.3.2.8.1.1.7"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_BRAINPOOL_P320R1` is never used [INFO] [stdout] --> src/crypto/named_curves.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | pub const ID_BRAINPOOL_P320R1: Oid = Oid::new_unwrap("1.3.36.3.3.2.8.1.1.9"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_BRAINPOOL_P384R1` is never used [INFO] [stdout] --> src/crypto/named_curves.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | pub const ID_BRAINPOOL_P384R1: Oid = Oid::new_unwrap("1.3.36.3.3.2.8.1.1.11"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_BRAINPOOL_P512R1` is never used [INFO] [stdout] --> src/crypto/named_curves.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | pub const ID_BRAINPOOL_P512R1: Oid = Oid::new_unwrap("1.3.36.3.3.2.8.1.1.13"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EMRTD_TRAVEL_AID` is never used [INFO] [stdout] --> src/emrtd/files/file_id.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const EMRTD_TRAVEL_AID: &[u8] = &[0xA0, 0x00, 0x00, 0x02, 0x47, 0x20, 0x01]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EMRTD_VISA_AID` is never used [INFO] [stdout] --> src/emrtd/files/file_id.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub const EMRTD_VISA_AID: &[u8] = &[0xA0, 0x00, 0x00, 0x02, 0x47, 0x20, 0x02]; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EMRTD_BIOMETRICS_AID` is never used [INFO] [stdout] --> src/emrtd/files/file_id.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub const EMRTD_BIOMETRICS_AID: &[u8] = &[0xA0, 0x00, 0x00, 0x02, 0x47, 0x20, 0x03]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `standardized_parameters` is never used [INFO] [stdout] --> src/emrtd/pace.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn standardized_parameters(id: u64) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DebugPrintString`, `NotAck`, and `QuitSession` are never constructed [INFO] [stdout] --> src/nfc/proxmark3/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum Command { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 20 | DebugPrintString = 0x0100, // Used for error responses. [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | [INFO] [stdout] 22 | NotAck = 0x00FE, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | QuitSession = 0x0113, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `UndefinedError` and `InvalidArgument` are never constructed [INFO] [stdout] --> src/nfc/proxmark3/mod.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 35 | pub enum Status { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 36 | Success = 0, [INFO] [stdout] 37 | UndefinedError = -1, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 38 | InvalidArgument = -2, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `close` is never used [INFO] [stdout] --> src/nfc/proxmark3/mod.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 50 | trait Connection { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 53 | fn close(self) -> Result<()>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `close` is never used [INFO] [stdout] --> src/nfc/proxmark3/mod.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl Proxmark3 { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn close(mut self) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/crypto/elliptic_curve.rs:116:14 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn a(&self) -> PrimeFieldElement { [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] 116 | pub fn a(&self) -> PrimeFieldElement<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/crypto/elliptic_curve.rs:120:14 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn b(&self) -> PrimeFieldElement { [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] 120 | pub fn b(&self) -> PrimeFieldElement<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/crypto/elliptic_curve.rs:124:22 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn generator(&self) -> EllipticCurvePoint { [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] 124 | pub fn generator(&self) -> EllipticCurvePoint<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/crypto/elliptic_curve.rs:128:24 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn pt_infinity(&self) -> EllipticCurvePoint { [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] 128 | pub fn pt_infinity(&self) -> EllipticCurvePoint<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/crypto/elliptic_curve.rs:148:26 [INFO] [stdout] | [INFO] [stdout] 148 | pub fn pt_from_monty(&self, monty: EcMonty) -> 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] 148 | pub fn pt_from_monty(&self, monty: EcMonty) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `com` is never read [INFO] [stdout] --> src/bin/tester.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 28 | struct Document { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 29 | #[serde(deserialize_with = "deserialize_der")] [INFO] [stdout] 30 | com: der::Any, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Document` 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: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/crypto/elliptic_curve.rs:159:26 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn pt_from_bytes(&self, bytes: &[u8]) -> 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] 159 | pub fn pt_from_bytes(&self, bytes: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/crypto/elliptic_curve.rs:228:14 [INFO] [stdout] | [INFO] [stdout] 228 | pub fn x(&self) -> Option { [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] 228 | pub fn x(&self) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/crypto/elliptic_curve.rs:235:14 [INFO] [stdout] | [INFO] [stdout] 235 | pub fn y(&self) -> Option { [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] 235 | pub fn y(&self) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/crypto/prime_field.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn zero(&self) -> PrimeFieldElement { [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] 78 | pub fn zero(&self) -> PrimeFieldElement<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/crypto/prime_field.rs:85:16 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn one(&self) -> PrimeFieldElement { [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] 85 | pub fn one(&self) -> PrimeFieldElement<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/crypto/prime_field.rs:93:24 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn el_from_u64(&self, value: u64) -> PrimeFieldElement { [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] 93 | pub fn el_from_u64(&self, value: u64) -> PrimeFieldElement<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/crypto/prime_field.rs:98:25 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn el_from_uint(&self, value: Uint) -> PrimeFieldElement { [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] 98 | pub fn el_from_uint(&self, value: Uint) -> PrimeFieldElement<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/crypto/prime_field.rs:108:26 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn el_from_monty(&self, value: Uint) -> PrimeFieldElement { [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] 108 | pub fn el_from_monty(&self, value: Uint) -> PrimeFieldElement<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/crypto/prime_field.rs:114:27 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn random_nonzero(&self, mut rng: impl CryptoRng + RngCore) -> PrimeFieldElement { [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] 114 | pub fn random_nonzero(&self, mut rng: impl CryptoRng + RngCore) -> PrimeFieldElement<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/crypto/prime_field.rs:135:34 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn os2fe>(&self, os: T) -> PrimeFieldElement { [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] 135 | pub fn os2fe>(&self, os: T) -> PrimeFieldElement<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `com` is never read [INFO] [stdout] --> src/bin/tester.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 28 | struct Document { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 29 | #[serde(deserialize_with = "deserialize_der")] [INFO] [stdout] 30 | com: der::Any, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Document` 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: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/iso7816/mod.rs:56:25 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn parse_apdu(apdu: &[u8]) -> 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] 56 | pub fn parse_apdu(apdu: &[u8]) -> Result, Error> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 21.93s [INFO] running `Command { std: "docker" "inspect" "d1eb84a53ebe0577f5dd343ef8a9a5b632be185486eb01694d7d2c4ef2f0a4cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d1eb84a53ebe0577f5dd343ef8a9a5b632be185486eb01694d7d2c4ef2f0a4cd", kill_on_drop: false }` [INFO] [stdout] d1eb84a53ebe0577f5dd343ef8a9a5b632be185486eb01694d7d2c4ef2f0a4cd