[INFO] fetching crate icao-9303 0.1.0... [INFO] testing icao-9303-0.1.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate icao-9303 0.1.0 into /workspace/builds/worker-3-tc1/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-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate icao-9303 0.1.0 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cbc-mac v0.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 961f6e5fa0677220f83e21d33aa4638dd83ff747608376b278ab2106620f9485 [INFO] running `Command { std: "docker" "start" "-a" "961f6e5fa0677220f83e21d33aa4638dd83ff747608376b278ab2106620f9485", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "961f6e5fa0677220f83e21d33aa4638dd83ff747608376b278ab2106620f9485", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "961f6e5fa0677220f83e21d33aa4638dd83ff747608376b278ab2106620f9485", kill_on_drop: false }` [INFO] [stdout] 961f6e5fa0677220f83e21d33aa4638dd83ff747608376b278ab2106620f9485 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 092e9d6f158ffc5b78e9d5b66533226087a081d6bb6babff956bbbeea0baa255 [INFO] running `Command { std: "docker" "start" "-a" "092e9d6f158ffc5b78e9d5b66533226087a081d6bb6babff956bbbeea0baa255", 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 serde v1.0.210 [INFO] [stderr] Compiling base64ct v1.6.0 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling flagset v0.4.6 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling cc v1.1.21 [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling winnow v0.6.20 [INFO] [stderr] Compiling cpufeatures v0.2.14 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-padding v0.3.3 [INFO] [stderr] Compiling rusb v0.9.4 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling dbl v0.3.2 [INFO] [stderr] Compiling inout v0.1.3 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling arrayref v0.3.9 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling ruint-macro v1.2.1 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling hex-literal v0.4.1 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling cmac v0.7.2 [INFO] [stderr] Compiling cbc v0.1.2 [INFO] [stderr] Compiling des v0.8.1 [INFO] [stderr] Compiling cbc-mac v0.1.1 [INFO] [stderr] Compiling aes v0.8.4 [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] Compiling toml_edit v0.22.22 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling der_derive v0.7.3 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling proc-macro-crate v3.2.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling der v0.7.9 [INFO] [stderr] Compiling num_enum_derive v0.7.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling num_enum v0.7.3 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling x509-cert v0.2.5 [INFO] [stderr] Compiling ruint v1.12.3 [INFO] [stderr] Compiling cms v0.2.3 [INFO] [stderr] Compiling argh_shared v0.1.12 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling argh_derive v0.1.12 [INFO] [stderr] Compiling argh v0.1.12 [INFO] [stderr] Compiling 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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 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)]` (part of `#[warn(unused)]`) on by default [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 22.24s [INFO] running `Command { std: "docker" "inspect" "092e9d6f158ffc5b78e9d5b66533226087a081d6bb6babff956bbbeea0baa255", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "092e9d6f158ffc5b78e9d5b66533226087a081d6bb6babff956bbbeea0baa255", kill_on_drop: false }` [INFO] [stdout] 092e9d6f158ffc5b78e9d5b66533226087a081d6bb6babff956bbbeea0baa255 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7cbdc0b1bf1ae697efc2e58e5bfdb16064d6b7c6f7ed0b0152ea136dc31e5221 [INFO] running `Command { std: "docker" "start" "-a" "7cbdc0b1bf1ae697efc2e58e5bfdb16064d6b7c6f7ed0b0152ea136dc31e5221", 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] [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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] [stderr] Compiling 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) on by default [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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: 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.11s [INFO] running `Command { std: "docker" "inspect" "7cbdc0b1bf1ae697efc2e58e5bfdb16064d6b7c6f7ed0b0152ea136dc31e5221", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7cbdc0b1bf1ae697efc2e58e5bfdb16064d6b7c6f7ed0b0152ea136dc31e5221", kill_on_drop: false }` [INFO] [stdout] 7cbdc0b1bf1ae697efc2e58e5bfdb16064d6b7c6f7ed0b0152ea136dc31e5221 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 7842ae9816e109ae13cf7f21550335f4837fd37fe6b9d1e45cd486fa6e70fe3e [INFO] running `Command { std: "docker" "start" "-a" "7842ae9816e109ae13cf7f21550335f4837fd37fe6b9d1e45cd486fa6e70fe3e", 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] warning: unused import: `hex_literal::hex` [INFO] [stderr] --> src/crypto/named_curves.rs:1:42 [INFO] [stderr] | [INFO] [stderr] 1 | use {der::asn1::ObjectIdentifier as Oid, hex_literal::hex}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unreachable statement [INFO] [stderr] --> src/emrtd/chip_authentication.rs:40:9 [INFO] [stderr] | [INFO] [stderr] 34 | let ec_params = todo!(); [INFO] [stderr] | ------- any code following this expression is unreachable [INFO] [stderr] ... [INFO] [stderr] 40 | let curve = EllipticCurve::from_parameters(&ec_params)?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ec_params` [INFO] [stderr] --> src/emrtd/chip_authentication.rs:34:13 [INFO] [stderr] | [INFO] [stderr] 34 | let ec_params = todo!(); [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ec_params` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rng` [INFO] [stderr] --> src/emrtd/chip_authentication.rs:17:41 [INFO] [stderr] | [INFO] [stderr] 17 | pub fn chip_authenticate(&mut self, rng: impl CryptoRng + RngCore) -> Result<()> { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `k_pi` [INFO] [stderr] --> src/emrtd/pace.rs:15:13 [INFO] [stderr] | [INFO] [stderr] 15 | let k_pi = kdf_128(&k[..], KDF_PACE); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_k_pi` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rng` [INFO] [stderr] --> src/emrtd/pace.rs:12:28 [INFO] [stderr] | [INFO] [stderr] 12 | pub fn pace(&mut self, rng: impl CryptoRng + RngCore, mrz: &str) -> Result<()> { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/nfc/proxmark3/mod.rs:225:27 [INFO] [stderr] | [INFO] [stderr] 225 | let (status, cmd, mut response) = self.receive_response()?; [INFO] [stderr] | ----^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: constant `ID_SEC_P192R1` is never used [INFO] [stderr] --> src/crypto/named_curves.rs:6:11 [INFO] [stderr] | [INFO] [stderr] 6 | pub const ID_SEC_P192R1: Oid = Oid::new_unwrap("1.2.840.10045.3.1.1"); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: constant `ID_SEC_P224R1` is never used [INFO] [stderr] --> src/crypto/named_curves.rs:7:11 [INFO] [stderr] | [INFO] [stderr] 7 | pub const ID_SEC_P224R1: Oid = Oid::new_unwrap("1.3.132.0.33"); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `ID_SEC_P256R1` is never used [INFO] [stderr] --> src/crypto/named_curves.rs:8:11 [INFO] [stderr] | [INFO] [stderr] 8 | pub const ID_SEC_P256R1: Oid = Oid::new_unwrap("1.2.840.10045.3.1.7"); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `ID_SEC_P384R1` is never used [INFO] [stderr] --> src/crypto/named_curves.rs:9:11 [INFO] [stderr] | [INFO] [stderr] 9 | pub const ID_SEC_P384R1: Oid = Oid::new_unwrap("1.3.132.0.34"); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `ID_SEC_P521R1` is never used [INFO] [stderr] --> src/crypto/named_curves.rs:10:11 [INFO] [stderr] | [INFO] [stderr] 10 | pub const ID_SEC_P521R1: Oid = Oid::new_unwrap("1.3.132.0.35"); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `ID_BRAINPOOL_P192R1` is never used [INFO] [stderr] --> src/crypto/named_curves.rs:13:11 [INFO] [stderr] | [INFO] [stderr] 13 | pub const ID_BRAINPOOL_P192R1: Oid = Oid::new_unwrap("1.3.36.3.3.2.8.1.1.3"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `ID_BRAINPOOL_P224R1` is never used [INFO] [stderr] --> src/crypto/named_curves.rs:14:11 [INFO] [stderr] | [INFO] [stderr] 14 | pub const ID_BRAINPOOL_P224R1: Oid = Oid::new_unwrap("1.3.36.3.3.2.8.1.1.5"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `ID_BRAINPOOL_P256R1` is never used [INFO] [stderr] --> src/crypto/named_curves.rs:15:11 [INFO] [stderr] | [INFO] [stderr] 15 | pub const ID_BRAINPOOL_P256R1: Oid = Oid::new_unwrap("1.3.36.3.3.2.8.1.1.7"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `ID_BRAINPOOL_P320R1` is never used [INFO] [stderr] --> src/crypto/named_curves.rs:16:11 [INFO] [stderr] | [INFO] [stderr] 16 | pub const ID_BRAINPOOL_P320R1: Oid = Oid::new_unwrap("1.3.36.3.3.2.8.1.1.9"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `ID_BRAINPOOL_P384R1` is never used [INFO] [stderr] --> src/crypto/named_curves.rs:17:11 [INFO] [stderr] | [INFO] [stderr] 17 | pub const ID_BRAINPOOL_P384R1: Oid = Oid::new_unwrap("1.3.36.3.3.2.8.1.1.11"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `ID_BRAINPOOL_P512R1` is never used [INFO] [stderr] --> src/crypto/named_curves.rs:18:11 [INFO] [stderr] | [INFO] [stderr] 18 | pub const ID_BRAINPOOL_P512R1: Oid = Oid::new_unwrap("1.3.36.3.3.2.8.1.1.13"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `EMRTD_TRAVEL_AID` is never used [INFO] [stderr] --> src/emrtd/files/file_id.rs:11:11 [INFO] [stderr] | [INFO] [stderr] 11 | pub const EMRTD_TRAVEL_AID: &[u8] = &[0xA0, 0x00, 0x00, 0x02, 0x47, 0x20, 0x01]; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `EMRTD_VISA_AID` is never used [INFO] [stderr] --> src/emrtd/files/file_id.rs:12:11 [INFO] [stderr] | [INFO] [stderr] 12 | pub const EMRTD_VISA_AID: &[u8] = &[0xA0, 0x00, 0x00, 0x02, 0x47, 0x20, 0x02]; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `EMRTD_BIOMETRICS_AID` is never used [INFO] [stderr] --> src/emrtd/files/file_id.rs:13:11 [INFO] [stderr] | [INFO] [stderr] 13 | pub const EMRTD_BIOMETRICS_AID: &[u8] = &[0xA0, 0x00, 0x00, 0x02, 0x47, 0x20, 0x03]; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `standardized_parameters` is never used [INFO] [stderr] --> src/emrtd/pace.rs:32:8 [INFO] [stderr] | [INFO] [stderr] 32 | pub fn standardized_parameters(id: u64) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variants `DebugPrintString`, `NotAck`, and `QuitSession` are never constructed [INFO] [stderr] --> src/nfc/proxmark3/mod.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 19 | pub enum Command { [INFO] [stderr] | ------- variants in this enum [INFO] [stderr] 20 | DebugPrintString = 0x0100, // Used for error responses. [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] 21 | [INFO] [stderr] 22 | NotAck = 0x00FE, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 28 | QuitSession = 0x0113, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variants `UndefinedError` and `InvalidArgument` are never constructed [INFO] [stderr] --> src/nfc/proxmark3/mod.rs:37:5 [INFO] [stderr] | [INFO] [stderr] 35 | pub enum Status { [INFO] [stderr] | ------ variants in this enum [INFO] [stderr] 36 | Success = 0, [INFO] [stderr] 37 | UndefinedError = -1, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] 38 | InvalidArgument = -2, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `close` is never used [INFO] [stderr] --> src/nfc/proxmark3/mod.rs:53:8 [INFO] [stderr] | [INFO] [stderr] 50 | trait Connection { [INFO] [stderr] | ---------- method in this trait [INFO] [stderr] ... [INFO] [stderr] 53 | fn close(self) -> Result<()>; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `close` is never used [INFO] [stderr] --> src/nfc/proxmark3/mod.rs:65:12 [INFO] [stderr] | [INFO] [stderr] 56 | impl Proxmark3 { [INFO] [stderr] | -------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 65 | pub fn close(mut self) -> Result<()> { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/crypto/elliptic_curve.rs:116:14 [INFO] [stderr] | [INFO] [stderr] 116 | pub fn a(&self) -> PrimeFieldElement { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 116 | pub fn a(&self) -> PrimeFieldElement<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/crypto/elliptic_curve.rs:120:14 [INFO] [stderr] | [INFO] [stderr] 120 | pub fn b(&self) -> PrimeFieldElement { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 120 | pub fn b(&self) -> PrimeFieldElement<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/crypto/elliptic_curve.rs:124:22 [INFO] [stderr] | [INFO] [stderr] 124 | pub fn generator(&self) -> EllipticCurvePoint { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 124 | pub fn generator(&self) -> EllipticCurvePoint<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/crypto/elliptic_curve.rs:128:24 [INFO] [stderr] | [INFO] [stderr] 128 | pub fn pt_infinity(&self) -> EllipticCurvePoint { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 128 | pub fn pt_infinity(&self) -> EllipticCurvePoint<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/crypto/elliptic_curve.rs:148:26 [INFO] [stderr] | [INFO] [stderr] 148 | pub fn pt_from_monty(&self, monty: EcMonty) -> Result { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 148 | pub fn pt_from_monty(&self, monty: EcMonty) -> Result> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/crypto/elliptic_curve.rs:159:26 [INFO] [stderr] | [INFO] [stderr] 159 | pub fn pt_from_bytes(&self, bytes: &[u8]) -> Result { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 159 | pub fn pt_from_bytes(&self, bytes: &[u8]) -> Result> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/crypto/elliptic_curve.rs:228:14 [INFO] [stderr] | [INFO] [stderr] 228 | pub fn x(&self) -> Option { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 228 | pub fn x(&self) -> Option> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/crypto/elliptic_curve.rs:235:14 [INFO] [stderr] | [INFO] [stderr] 235 | pub fn y(&self) -> Option { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 235 | pub fn y(&self) -> Option> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/crypto/prime_field.rs:78:17 [INFO] [stderr] | [INFO] [stderr] 78 | pub fn zero(&self) -> PrimeFieldElement { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 78 | pub fn zero(&self) -> PrimeFieldElement<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/crypto/prime_field.rs:85:16 [INFO] [stderr] | [INFO] [stderr] 85 | pub fn one(&self) -> PrimeFieldElement { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 85 | pub fn one(&self) -> PrimeFieldElement<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/crypto/prime_field.rs:93:24 [INFO] [stderr] | [INFO] [stderr] 93 | pub fn el_from_u64(&self, value: u64) -> PrimeFieldElement { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 93 | pub fn el_from_u64(&self, value: u64) -> PrimeFieldElement<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/crypto/prime_field.rs:98:25 [INFO] [stderr] | [INFO] [stderr] 98 | pub fn el_from_uint(&self, value: Uint) -> PrimeFieldElement { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 98 | pub fn el_from_uint(&self, value: Uint) -> PrimeFieldElement<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/crypto/prime_field.rs:108:26 [INFO] [stderr] | [INFO] [stderr] 108 | pub fn el_from_monty(&self, value: Uint) -> PrimeFieldElement { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 108 | pub fn el_from_monty(&self, value: Uint) -> PrimeFieldElement<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/crypto/prime_field.rs:114:27 [INFO] [stderr] | [INFO] [stderr] 114 | pub fn random_nonzero(&self, mut rng: impl CryptoRng + RngCore) -> PrimeFieldElement { [INFO] [stderr] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 114 | pub fn random_nonzero(&self, mut rng: impl CryptoRng + RngCore) -> PrimeFieldElement<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/crypto/prime_field.rs:135:34 [INFO] [stderr] | [INFO] [stderr] 135 | pub fn os2fe>(&self, os: T) -> PrimeFieldElement { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 135 | pub fn os2fe>(&self, os: T) -> PrimeFieldElement<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/iso7816/mod.rs:56:25 [INFO] [stderr] | [INFO] [stderr] 56 | pub fn parse_apdu(apdu: &[u8]) -> Result { [INFO] [stderr] | ^^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 56 | pub fn parse_apdu(apdu: &[u8]) -> Result, Error> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `crapdu` [INFO] [stderr] --> src/emrtd/secure_messaging/aes.rs:283:13 [INFO] [stderr] | [INFO] [stderr] 283 | let crapdu = hex!("99 02 90 00 8E 08 EB FF 08 D3 B2 0A 04 14"); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_crapdu` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rapdu` [INFO] [stderr] --> src/emrtd/secure_messaging/aes.rs:284:13 [INFO] [stderr] | [INFO] [stderr] 284 | let rapdu = hex!("90 00"); [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_rapdu` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `apdu` [INFO] [stderr] --> src/emrtd/secure_messaging/aes.rs:291:13 [INFO] [stderr] | [INFO] [stderr] 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] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_apdu` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `capdu` [INFO] [stderr] --> src/emrtd/secure_messaging/aes.rs:292:13 [INFO] [stderr] | [INFO] [stderr] 292 | let capdu = hex!( [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_capdu` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `crapdu` [INFO] [stderr] --> src/emrtd/secure_messaging/aes.rs:298:13 [INFO] [stderr] | [INFO] [stderr] 298 | let crapdu = hex!("99 02 90 00 8E 08 C5 29 A8 ED 4B DC B9 96"); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_crapdu` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rapdu` [INFO] [stderr] --> src/emrtd/secure_messaging/aes.rs:299:13 [INFO] [stderr] | [INFO] [stderr] 299 | let rapdu = hex!("90 00"); [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_rapdu` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `apdu` [INFO] [stderr] --> src/emrtd/secure_messaging/aes.rs:302:13 [INFO] [stderr] | [INFO] [stderr] 302 | let apdu = hex!( [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_apdu` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `capdu` [INFO] [stderr] --> src/emrtd/secure_messaging/aes.rs:330:13 [INFO] [stderr] | [INFO] [stderr] 330 | let capdu = hex!( [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_capdu` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cracpdu` [INFO] [stderr] --> src/emrtd/secure_messaging/aes.rs:358:13 [INFO] [stderr] | [INFO] [stderr] 358 | let cracpdu = hex!("99 02 90 00 8E 08 B9 87 F8 19 0C DE 76 4D "); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cracpdu` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rapdu` [INFO] [stderr] --> src/emrtd/secure_messaging/aes.rs:359:13 [INFO] [stderr] | [INFO] [stderr] 359 | let rapdu = hex!("90 00"); [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_rapdu` [INFO] [stderr] [INFO] [stderr] warning: `icao-9303` (lib) generated 42 warnings (run `cargo fix --lib -p icao-9303` to apply 18 suggestions) [INFO] [stderr] warning: `icao-9303` (lib test) generated 52 warnings (42 duplicates) [INFO] [stderr] warning: unused import: `SecureMessaging` [INFO] [stderr] --> src/bin/tester.rs:12:63 [INFO] [stderr] | [INFO] [stderr] 12 | emrtd::secure_messaging::{construct_secure_messaging, SecureMessaging}, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `com` is never read [INFO] [stderr] --> src/bin/tester.rs:30:5 [INFO] [stderr] | [INFO] [stderr] 28 | struct Document { [INFO] [stderr] | -------- field in this struct [INFO] [stderr] 29 | #[serde(deserialize_with = "deserialize_der")] [INFO] [stderr] 30 | com: der::Any, [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Document` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `icao-9303` (bin "tester" test) generated 2 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.30s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/icao_9303-ade50b5c67658445) [INFO] [stdout] [INFO] [stdout] running 12 tests [INFO] [stdout] test asn1::application_tagged::tests::test_encode_decode ... ok [INFO] [stdout] test emrtd::pace::tests::test_pace_example ... ok [INFO] [stdout] test emrtd::secure_messaging::aes::tests::test_aes128_enc ... ok [INFO] [stdout] test emrtd::secure_messaging::aes::tests::test_cmac_aes128 ... ok [INFO] [stdout] test emrtd::secure_messaging::aes::tests::test_derive_keys ... ok [INFO] [stdout] test emrtd::secure_messaging::tdes::tests::test_bac_example ... ok [INFO] [stdout] test emrtd::secure_messaging::aes::tests::test_derive_keys_2 ... ok [INFO] [stdout] test emrtd::secure_messaging::tdes::tests::test_enc_3des ... ok [INFO] [stdout] test emrtd::secure_messaging::tdes::tests::test_mac_3des ... ok [INFO] [stdout] test emrtd::secure_messaging::tdes::tests::test_tdes_sm ... ok [INFO] [stdout] test emrtd::secure_messaging::tdes::tests::test_derive_keys ... ok [INFO] [stdout] test asn1::content_info::tests::test_encode_decode ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s [INFO] [stdout] [INFO] [stderr] Running unittests src/bin/reader.rs (/opt/rustwide/target/debug/deps/reader-8032e24d420871c6) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/bin/tester.rs (/opt/rustwide/target/debug/deps/tester-05f28cfc439253aa) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests icao_9303 [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "7842ae9816e109ae13cf7f21550335f4837fd37fe6b9d1e45cd486fa6e70fe3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7842ae9816e109ae13cf7f21550335f4837fd37fe6b9d1e45cd486fa6e70fe3e", kill_on_drop: false }` [INFO] [stdout] 7842ae9816e109ae13cf7f21550335f4837fd37fe6b9d1e45cd486fa6e70fe3e