[INFO] cloning repository https://github.com/duanbing/xchain-rust-crypto [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/duanbing/xchain-rust-crypto" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fduanbing%2Fxchain-rust-crypto", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fduanbing%2Fxchain-rust-crypto'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a0fe47d2f10c9c7b886e38163dfe57be794f9021 [INFO] checking duanbing/xchain-rust-crypto against master#b359ccf1b0b7b2d2c1c4932344b806e68bd053a9 for pr-105483 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fduanbing%2Fxchain-rust-crypto" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/duanbing/xchain-rust-crypto on toolchain b359ccf1b0b7b2d2c1c4932344b806e68bd053a9 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b359ccf1b0b7b2d2c1c4932344b806e68bd053a9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/duanbing/xchain-rust-crypto [INFO] finished tweaking git repo https://github.com/duanbing/xchain-rust-crypto [INFO] tweaked toml for git repo https://github.com/duanbing/xchain-rust-crypto written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/duanbing/xchain-rust-crypto already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b359ccf1b0b7b2d2c1c4932344b806e68bd053a9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded untrusted v0.7.0 [INFO] [stderr] Downloaded cc v1.0.50 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.60 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.60 [INFO] [stderr] Downloaded ryu v1.0.3 [INFO] [stderr] Downloaded aho-corasick v0.7.10 [INFO] [stderr] Downloaded base58 v0.1.0 [INFO] [stderr] Downloaded hex v0.4.2 [INFO] [stderr] Downloaded num-bigint v0.2.6 [INFO] [stderr] Downloaded serde_derive v1.0.106 [INFO] [stderr] Downloaded base64 v0.12.1 [INFO] [stderr] Downloaded num-integer v0.1.42 [INFO] [stderr] Downloaded num-traits v0.2.11 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.60 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.60 [INFO] [stderr] Downloaded wasm-bindgen v0.2.60 [INFO] [stderr] Downloaded quote v1.0.3 [INFO] [stderr] Downloaded syn v1.0.17 [INFO] [stderr] Downloaded web-sys v0.3.37 [INFO] [stderr] Downloaded serde_json v1.0.51 [INFO] [stderr] Downloaded proc-macro2 v1.0.10 [INFO] [stderr] Downloaded regex v1.3.9 [INFO] [stderr] Downloaded js-sys v0.3.37 [INFO] [stderr] Downloaded regex-syntax v0.6.18 [INFO] [stderr] Downloaded ring v0.16.12 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:bb5b0feb4f87116a4ea905b7ff5bf5b85913db05e9f0fbc1abdd3168928d9075" "/opt/rustwide/cargo-home/bin/cargo" "+b359ccf1b0b7b2d2c1c4932344b806e68bd053a9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e900f45655965a89b0468bfefb6c66fe3b602224e845b07507c773777f9c1dca [INFO] running `Command { std: "docker" "start" "-a" "e900f45655965a89b0468bfefb6c66fe3b602224e845b07507c773777f9c1dca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e900f45655965a89b0468bfefb6c66fe3b602224e845b07507c773777f9c1dca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e900f45655965a89b0468bfefb6c66fe3b602224e845b07507c773777f9c1dca", kill_on_drop: false }` [INFO] [stdout] e900f45655965a89b0468bfefb6c66fe3b602224e845b07507c773777f9c1dca [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:bb5b0feb4f87116a4ea905b7ff5bf5b85913db05e9f0fbc1abdd3168928d9075" "/opt/rustwide/cargo-home/bin/cargo" "+b359ccf1b0b7b2d2c1c4932344b806e68bd053a9" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ce9ba30fc50b4e546469d9fdda20f7416b9cf34ecf24aaad16a5a10a270f43d5 [INFO] running `Command { std: "docker" "start" "-a" "ce9ba30fc50b4e546469d9fdda20f7416b9cf34ecf24aaad16a5a10a270f43d5", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.69 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.10 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.17 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling serde v1.0.106 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling cc v1.0.50 [INFO] [stderr] Compiling ryu v1.0.3 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Checking ppv-lite86 v0.2.6 [INFO] [stderr] Checking rustc-serialize v0.3.24 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking itoa v0.4.5 [INFO] [stderr] Checking regex-syntax v0.6.18 [INFO] [stderr] Checking untrusted v0.7.0 [INFO] [stderr] Checking base58 v0.1.0 [INFO] [stderr] Checking hex v0.4.2 [INFO] [stderr] Checking base64 v0.12.1 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Checking aho-corasick v0.7.10 [INFO] [stderr] Compiling rust-crypto v0.2.36 [INFO] [stderr] Compiling ring v0.16.12 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking regex v1.3.9 [INFO] [stderr] Compiling serde_derive v1.0.106 [INFO] [stderr] Checking serde_json v1.0.51 [INFO] [stderr] Checking xchain-rust-crypto v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `int` should have an upper camel case name [INFO] [stdout] --> src/c.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | pub(crate) type int = i32; [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `Int` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `uint` should have an upper camel case name [INFO] [stdout] --> src/c.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) type uint = u32; [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Uint` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `size_t` should have an upper camel case name [INFO] [stdout] --> src/c.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) type size_t = usize; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `SizeT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/hdwallet/languages.rs:10:41 [INFO] [stdout] | [INFO] [stdout] 10 | static ref WORDLIST_S_CH: WordMap = { load_wordlist(include_str!("langs/simplified_chinese.txt")) }; [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 10 - static ref WORDLIST_S_CH: WordMap = { load_wordlist(include_str!("langs/simplified_chinese.txt")) }; [INFO] [stdout] 10 + static ref WORDLIST_S_CH: WordMap = load_wordlist(include_str!("langs/simplified_chinese.txt")); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/hdwallet/languages.rs:11:39 [INFO] [stdout] | [INFO] [stdout] 11 | static ref WORDLIST_EN: WordMap = { load_wordlist(include_str!("langs/english.txt")) }; [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 11 - static ref WORDLIST_EN: WordMap = { load_wordlist(include_str!("langs/english.txt")) }; [INFO] [stdout] 11 + static ref WORDLIST_EN: WordMap = load_wordlist(include_str!("langs/english.txt")); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/hdwallet/rand.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | { num_bigint::BigInt::from_i32(2048).unwrap() }; [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 11 - { num_bigint::BigInt::from_i32(2048).unwrap() }; [INFO] [stdout] 11 + num_bigint::BigInt::from_i32(2048).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/hdwallet/rand.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | { num_bigint::BigInt::from_i32(2047).unwrap() }; [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 13 - { num_bigint::BigInt::from_i32(2047).unwrap() }; [INFO] [stdout] 13 + num_bigint::BigInt::from_i32(2047).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/hdwallet/rand.rs:14:54 [INFO] [stdout] | [INFO] [stdout] 14 | pub static ref BIGINT_ZERO: num_bigint::BigInt = { num_traits::Zero::zero() }; [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 14 - pub static ref BIGINT_ZERO: num_bigint::BigInt = { num_traits::Zero::zero() }; [INFO] [stdout] 14 + pub static ref BIGINT_ZERO: num_bigint::BigInt = num_traits::Zero::zero(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/hdwallet/rand.rs:15:53 [INFO] [stdout] | [INFO] [stdout] 15 | pub static ref BIGINT_ONE: num_bigint::BigInt = { num_traits::One::one() }; [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 15 - pub static ref BIGINT_ONE: num_bigint::BigInt = { num_traits::One::one() }; [INFO] [stdout] 15 + pub static ref BIGINT_ONE: num_bigint::BigInt = num_traits::One::one(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/hdwallet/rand.rs:16:53 [INFO] [stdout] | [INFO] [stdout] 16 | pub static ref BIGINT_TWO: num_bigint::BigInt = { num_bigint::BigInt::from_i32(2).unwrap() }; [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 16 - pub static ref BIGINT_TWO: num_bigint::BigInt = { num_bigint::BigInt::from_i32(2).unwrap() }; [INFO] [stdout] 16 + pub static ref BIGINT_TWO: num_bigint::BigInt = num_bigint::BigInt::from_i32(2).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ECDSA_P256_SHA256_ASN1_SIGNING` should have an upper camel case name [INFO] [stdout] --> src/ec/suite_b/ecdsa/signing.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | ECDSA_P256_SHA256_ASN1_SIGNING, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `EcdsaP256Sha256Asn1Signing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ECDSA_P256_SHA256_ASN1` should have an upper camel case name [INFO] [stdout] --> src/ec/suite_b/ecdsa/verification.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | ECDSA_P256_SHA256_ASN1, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `EcdsaP256Sha256Asn1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::arithmetic::montgomery::R` [INFO] [stdout] --> src/ec/suite_b/ecies.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::arithmetic::montgomery::R; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/errors.rs:81:44 [INFO] [stdout] | [INFO] [stdout] 81 | ErrorKind::ErrInvalidEntropyLength => ("Entropy length must within [128, 256] and be multiples of 32"), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 81 - ErrorKind::ErrInvalidEntropyLength => ("Entropy length must within [128, 256] and be multiples of 32"), [INFO] [stdout] 81 + ErrorKind::ErrInvalidEntropyLength => "Entropy length must within [128, 256] and be multiples of 32", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/errors.rs:84:44 [INFO] [stdout] | [INFO] [stdout] 84 | ErrorKind::ErrStrengthNotSupported => ("This strength has not been supported yet."), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 84 - ErrorKind::ErrStrengthNotSupported => ("This strength has not been supported yet."), [INFO] [stdout] 84 + ErrorKind::ErrStrengthNotSupported => "This strength has not been supported yet.", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/errors.rs:88:44 [INFO] [stdout] | [INFO] [stdout] 88 | ErrorKind::ErrLanguageNotSupported => ("This language has not been supported yet."), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 88 - ErrorKind::ErrLanguageNotSupported => ("This language has not been supported yet."), [INFO] [stdout] 88 + ErrorKind::ErrLanguageNotSupported => "This language has not been supported yet.", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/errors.rs:90:43 [INFO] [stdout] | [INFO] [stdout] 90 | ...cNumNotValid => ("The number of words in the Mnemonic sentence is not valid. It must be within [12, 15, 18, 21, 24]"), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 90 - ErrorKind::ErrMnemonicNumNotValid => ("The number of words in the Mnemonic sentence is not valid. It must be within [12, 15, 18, 21, 24]"), [INFO] [stdout] 90 + ErrorKind::ErrMnemonicNumNotValid => "The number of words in the Mnemonic sentence is not valid. It must be within [12, 15, 18, 21, 24]", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/errors.rs:92:49 [INFO] [stdout] | [INFO] [stdout] 92 | ErrorKind::ErrMnemonicChecksumIncorrect => ("The checksum within the Mnemonic sentence incorrect"), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 92 - ErrorKind::ErrMnemonicChecksumIncorrect => ("The checksum within the Mnemonic sentence incorrect"), [INFO] [stdout] 92 + ErrorKind::ErrMnemonicChecksumIncorrect => "The checksum within the Mnemonic sentence incorrect", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `int` should have an upper camel case name [INFO] [stdout] --> src/c.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | pub(crate) type int = i32; [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `Int` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `uint` should have an upper camel case name [INFO] [stdout] --> src/c.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) type uint = u32; [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Uint` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `size_t` should have an upper camel case name [INFO] [stdout] --> src/c.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) type size_t = usize; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `SizeT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/hdwallet/languages.rs:10:41 [INFO] [stdout] | [INFO] [stdout] 10 | static ref WORDLIST_S_CH: WordMap = { load_wordlist(include_str!("langs/simplified_chinese.txt")) }; [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 10 - static ref WORDLIST_S_CH: WordMap = { load_wordlist(include_str!("langs/simplified_chinese.txt")) }; [INFO] [stdout] 10 + static ref WORDLIST_S_CH: WordMap = load_wordlist(include_str!("langs/simplified_chinese.txt")); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/hdwallet/languages.rs:11:39 [INFO] [stdout] | [INFO] [stdout] 11 | static ref WORDLIST_EN: WordMap = { load_wordlist(include_str!("langs/english.txt")) }; [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 11 - static ref WORDLIST_EN: WordMap = { load_wordlist(include_str!("langs/english.txt")) }; [INFO] [stdout] 11 + static ref WORDLIST_EN: WordMap = load_wordlist(include_str!("langs/english.txt")); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/hdwallet/rand.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | { num_bigint::BigInt::from_i32(2048).unwrap() }; [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 11 - { num_bigint::BigInt::from_i32(2048).unwrap() }; [INFO] [stdout] 11 + num_bigint::BigInt::from_i32(2048).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/hdwallet/rand.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | { num_bigint::BigInt::from_i32(2047).unwrap() }; [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 13 - { num_bigint::BigInt::from_i32(2047).unwrap() }; [INFO] [stdout] 13 + num_bigint::BigInt::from_i32(2047).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/hdwallet/rand.rs:14:54 [INFO] [stdout] | [INFO] [stdout] 14 | pub static ref BIGINT_ZERO: num_bigint::BigInt = { num_traits::Zero::zero() }; [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 14 - pub static ref BIGINT_ZERO: num_bigint::BigInt = { num_traits::Zero::zero() }; [INFO] [stdout] 14 + pub static ref BIGINT_ZERO: num_bigint::BigInt = num_traits::Zero::zero(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/hdwallet/rand.rs:15:53 [INFO] [stdout] | [INFO] [stdout] 15 | pub static ref BIGINT_ONE: num_bigint::BigInt = { num_traits::One::one() }; [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 15 - pub static ref BIGINT_ONE: num_bigint::BigInt = { num_traits::One::one() }; [INFO] [stdout] 15 + pub static ref BIGINT_ONE: num_bigint::BigInt = num_traits::One::one(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/hdwallet/rand.rs:16:53 [INFO] [stdout] | [INFO] [stdout] 16 | pub static ref BIGINT_TWO: num_bigint::BigInt = { num_bigint::BigInt::from_i32(2).unwrap() }; [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 16 - pub static ref BIGINT_TWO: num_bigint::BigInt = { num_bigint::BigInt::from_i32(2).unwrap() }; [INFO] [stdout] 16 + pub static ref BIGINT_TWO: num_bigint::BigInt = num_bigint::BigInt::from_i32(2).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/sign/ecdsa.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: duplicated attribute [INFO] [stdout] --> src/arithmetic/bigint.rs:1309:5 [INFO] [stdout] | [INFO] [stdout] 1309 | #[test] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(duplicate_macro_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ECDSA_P256_SHA256_ASN1_SIGNING` should have an upper camel case name [INFO] [stdout] --> src/ec/suite_b/ecdsa/signing.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | ECDSA_P256_SHA256_ASN1_SIGNING, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `EcdsaP256Sha256Asn1Signing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ECDSA_P256_SHA256_ASN1` should have an upper camel case name [INFO] [stdout] --> src/ec/suite_b/ecdsa/verification.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | ECDSA_P256_SHA256_ASN1, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `EcdsaP256Sha256Asn1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::arithmetic::montgomery::R` [INFO] [stdout] --> src/ec/suite_b/ecies.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::arithmetic::montgomery::R; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/ec/suite_b/ecies.rs:229:9 [INFO] [stdout] | [INFO] [stdout] 229 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/errors.rs:81:44 [INFO] [stdout] | [INFO] [stdout] 81 | ErrorKind::ErrInvalidEntropyLength => ("Entropy length must within [128, 256] and be multiples of 32"), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 81 - ErrorKind::ErrInvalidEntropyLength => ("Entropy length must within [128, 256] and be multiples of 32"), [INFO] [stdout] 81 + ErrorKind::ErrInvalidEntropyLength => "Entropy length must within [128, 256] and be multiples of 32", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/errors.rs:84:44 [INFO] [stdout] | [INFO] [stdout] 84 | ErrorKind::ErrStrengthNotSupported => ("This strength has not been supported yet."), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 84 - ErrorKind::ErrStrengthNotSupported => ("This strength has not been supported yet."), [INFO] [stdout] 84 + ErrorKind::ErrStrengthNotSupported => "This strength has not been supported yet.", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/errors.rs:88:44 [INFO] [stdout] | [INFO] [stdout] 88 | ErrorKind::ErrLanguageNotSupported => ("This language has not been supported yet."), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 88 - ErrorKind::ErrLanguageNotSupported => ("This language has not been supported yet."), [INFO] [stdout] 88 + ErrorKind::ErrLanguageNotSupported => "This language has not been supported yet.", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/errors.rs:90:43 [INFO] [stdout] | [INFO] [stdout] 90 | ...cNumNotValid => ("The number of words in the Mnemonic sentence is not valid. It must be within [12, 15, 18, 21, 24]"), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 90 - ErrorKind::ErrMnemonicNumNotValid => ("The number of words in the Mnemonic sentence is not valid. It must be within [12, 15, 18, 21, 24]"), [INFO] [stdout] 90 + ErrorKind::ErrMnemonicNumNotValid => "The number of words in the Mnemonic sentence is not valid. It must be within [12, 15, 18, 21, 24]", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/errors.rs:92:49 [INFO] [stdout] | [INFO] [stdout] 92 | ErrorKind::ErrMnemonicChecksumIncorrect => ("The checksum within the Mnemonic sentence incorrect"), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 92 - ErrorKind::ErrMnemonicChecksumIncorrect => ("The checksum within the Mnemonic sentence incorrect"), [INFO] [stdout] 92 + ErrorKind::ErrMnemonicChecksumIncorrect => "The checksum within the Mnemonic sentence incorrect", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `entropy` is never read [INFO] [stdout] --> src/account/account.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ECDSAAccount { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 18 | entropy: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ECDSAAccount` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `uint` is never used [INFO] [stdout] --> src/c.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) type uint = u32; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `generate_private_key` is never read [INFO] [stdout] --> src/ec.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Curve { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 28 | generate_private_key: fn(rng: &[u8], &mut [u8]) -> Result<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `generate` is never used [INFO] [stdout] --> src/ec/keys.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 29 | pub(crate) fn generate(curve: &'static Curve, rng: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unary_op_from_binary_op_assign` is never used [INFO] [stdout] --> src/ec/suite_b/ops/elem.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn unary_op_from_binary_op_assign( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `PUBLIC_KEY_OPS` is never used [INFO] [stdout] --> src/ec/suite_b/ops/p384.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub static PUBLIC_KEY_OPS: PublicKeyOps = PublicKeyOps { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `SCALAR_OPS` is never used [INFO] [stdout] --> src/ec/suite_b/ops/p384.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | pub static SCALAR_OPS: ScalarOps = ScalarOps { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `PUBLIC_SCALAR_OPS` is never used [INFO] [stdout] --> src/ec/suite_b/ops/p384.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | pub static PUBLIC_SCALAR_OPS: PublicScalarOps = PublicScalarOps { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `PRIVATE_SCALAR_OPS` is never used [INFO] [stdout] --> src/ec/suite_b/ops/p384.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | pub static PRIVATE_SCALAR_OPS: PrivateScalarOps = PrivateScalarOps { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `p384_scalar_inv_to_mont` is never used [INFO] [stdout] --> src/ec/suite_b/ops/p384.rs:193:4 [INFO] [stdout] | [INFO] [stdout] 193 | fn p384_scalar_inv_to_mont(a: &Scalar) -> Scalar { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `N_RR_LIMBS` is never used [INFO] [stdout] --> src/ec/suite_b/ops/p384.rs:336:7 [INFO] [stdout] | [INFO] [stdout] 336 | const N_RR_LIMBS: [Limb; MAX_LIMBS] = p384_limbs![ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `GFp_p384_scalar_mul_mont` is never used [INFO] [stdout] --> src/ec/suite_b/ops/p384.rs:365:8 [INFO] [stdout] | [INFO] [stdout] 365 | fn GFp_p384_scalar_mul_mont( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_copy` is never used [INFO] [stdout] --> src/io/writer.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn write_copy(accumulator: &mut dyn Accumulator, to_copy: untrusted::Input) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `zero` is never used [INFO] [stdout] --> src/io/writer.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn zero() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `with_capacity` is never used [INFO] [stdout] --> src/io/writer.rs:53:19 [INFO] [stdout] | [INFO] [stdout] 53 | pub(super) fn with_capacity(capacity: LengthMeasurement) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_positive_integer` is never used [INFO] [stdout] --> src/io/der_writer.rs:18:15 [INFO] [stdout] | [INFO] [stdout] 18 | pub(crate) fn write_positive_integer(output: &mut dyn Accumulator, value: &Positive) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_all` is never used [INFO] [stdout] --> src/io/der_writer.rs:29:15 [INFO] [stdout] | [INFO] [stdout] 29 | pub(crate) fn write_all(tag: Tag, write_value: &dyn Fn(&mut dyn Accumulator)) -> Box<[u8]> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_tlv` is never used [INFO] [stdout] --> src/io/der_writer.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn write_tlv(output: &mut dyn Accumulator, tag: Tag, write_value: F) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bounds on generic parameters are not enforced in type aliases [INFO] [stdout] --> src/account/address.rs:31:27 [INFO] [stdout] | [INFO] [stdout] 31 | pub type PublicKey<'a, B: AsRef<[u8]>> = crate::sign::ecdsa::UnparsedPublicKey<&'a B>; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(type_alias_bounds)]` on by default [INFO] [stdout] help: the bound will not be checked when the type alias is used, and should be removed [INFO] [stdout] | [INFO] [stdout] 31 - pub type PublicKey<'a, B: AsRef<[u8]>> = crate::sign::ecdsa::UnparsedPublicKey<&'a B>; [INFO] [stdout] 31 + pub type PublicKey<'a, B> = crate::sign::ecdsa::UnparsedPublicKey<&'a B>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `oneRR` should have a snake case name [INFO] [stdout] --> src/arithmetic/bigint.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 217 | oneRR: One, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `one_rr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `oneRR` should have a snake case name [INFO] [stdout] --> src/arithmetic/bigint.rs:278:13 [INFO] [stdout] | [INFO] [stdout] 278 | let oneRR = { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `one_rr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `oneRR` should have a snake case name [INFO] [stdout] --> src/arithmetic/bigint.rs:317:12 [INFO] [stdout] | [INFO] [stdout] 317 | pub fn oneRR(&self) -> &One { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `one_rr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `newRR` should have a snake case name [INFO] [stdout] --> src/arithmetic/bigint.rs:622:8 [INFO] [stdout] | [INFO] [stdout] 622 | fn newRR(m: &PartialModulus, m_bits: bits::BitLength) -> Self { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `new_rr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RR` should have a snake case name [INFO] [stdout] --> src/arithmetic/bigint.rs:652:13 [INFO] [stdout] | [INFO] [stdout] 652 | let RR = elem_exp_vartime_(base, exponent, m); [INFO] [stdout] | ^^ help: convert the identifier to snake case: `rr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dP` should have a snake case name [INFO] [stdout] --> src/arithmetic/bigint.rs:785:13 [INFO] [stdout] | [INFO] [stdout] 785 | let dP = BoxedLimbs::from_be_bytes_padded_less_than(input, p)?; [INFO] [stdout] | ^^ help: convert the identifier to snake case: `d_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `GFp_p384_elem_sqr_mont` should have a snake case name [INFO] [stdout] --> src/ec/suite_b/ops/p384.rs:328:22 [INFO] [stdout] | [INFO] [stdout] 328 | unsafe extern "C" fn GFp_p384_elem_sqr_mont( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `gfp_p384_elem_sqr_mont` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 44 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `entropy` is never read [INFO] [stdout] --> src/account/account.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ECDSAAccount { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 18 | entropy: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ECDSAAccount` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `generate_private_key` is never read [INFO] [stdout] --> src/ec.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Curve { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 28 | generate_private_key: fn(rng: &[u8], &mut [u8]) -> Result<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `generate` is never used [INFO] [stdout] --> src/ec/keys.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 29 | pub(crate) fn generate(curve: &'static Curve, rng: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `PRIVATE_SCALAR_OPS` is never used [INFO] [stdout] --> src/ec/suite_b/ops/p384.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | pub static PRIVATE_SCALAR_OPS: PrivateScalarOps = PrivateScalarOps { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_copy` is never used [INFO] [stdout] --> src/io/writer.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn write_copy(accumulator: &mut dyn Accumulator, to_copy: untrusted::Input) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `zero` is never used [INFO] [stdout] --> src/io/writer.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn zero() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `with_capacity` is never used [INFO] [stdout] --> src/io/writer.rs:53:19 [INFO] [stdout] | [INFO] [stdout] 53 | pub(super) fn with_capacity(capacity: LengthMeasurement) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_positive_integer` is never used [INFO] [stdout] --> src/io/der_writer.rs:18:15 [INFO] [stdout] | [INFO] [stdout] 18 | pub(crate) fn write_positive_integer(output: &mut dyn Accumulator, value: &Positive) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_all` is never used [INFO] [stdout] --> src/io/der_writer.rs:29:15 [INFO] [stdout] | [INFO] [stdout] 29 | pub(crate) fn write_all(tag: Tag, write_value: &dyn Fn(&mut dyn Accumulator)) -> Box<[u8]> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_tlv` is never used [INFO] [stdout] --> src/io/der_writer.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn write_tlv(output: &mut dyn Accumulator, tag: Tag, write_value: F) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bounds on generic parameters are not enforced in type aliases [INFO] [stdout] --> src/account/address.rs:31:27 [INFO] [stdout] | [INFO] [stdout] 31 | pub type PublicKey<'a, B: AsRef<[u8]>> = crate::sign::ecdsa::UnparsedPublicKey<&'a B>; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(type_alias_bounds)]` on by default [INFO] [stdout] help: the bound will not be checked when the type alias is used, and should be removed [INFO] [stdout] | [INFO] [stdout] 31 - pub type PublicKey<'a, B: AsRef<[u8]>> = crate::sign::ecdsa::UnparsedPublicKey<&'a B>; [INFO] [stdout] 31 + pub type PublicKey<'a, B> = crate::sign::ecdsa::UnparsedPublicKey<&'a B>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `oneRR` should have a snake case name [INFO] [stdout] --> src/arithmetic/bigint.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 217 | oneRR: One, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `one_rr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `oneRR` should have a snake case name [INFO] [stdout] --> src/arithmetic/bigint.rs:278:13 [INFO] [stdout] | [INFO] [stdout] 278 | let oneRR = { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `one_rr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `oneRR` should have a snake case name [INFO] [stdout] --> src/arithmetic/bigint.rs:317:12 [INFO] [stdout] | [INFO] [stdout] 317 | pub fn oneRR(&self) -> &One { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `one_rr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `newRR` should have a snake case name [INFO] [stdout] --> src/arithmetic/bigint.rs:622:8 [INFO] [stdout] | [INFO] [stdout] 622 | fn newRR(m: &PartialModulus, m_bits: bits::BitLength) -> Self { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `new_rr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RR` should have a snake case name [INFO] [stdout] --> src/arithmetic/bigint.rs:652:13 [INFO] [stdout] | [INFO] [stdout] 652 | let RR = elem_exp_vartime_(base, exponent, m); [INFO] [stdout] | ^^ help: convert the identifier to snake case: `rr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dP` should have a snake case name [INFO] [stdout] --> src/arithmetic/bigint.rs:785:13 [INFO] [stdout] | [INFO] [stdout] 785 | let dP = BoxedLimbs::from_be_bytes_padded_less_than(input, p)?; [INFO] [stdout] | ^^ help: convert the identifier to snake case: `d_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `oneRR` should have a snake case name [INFO] [stdout] --> src/arithmetic/bigint.rs:1370:21 [INFO] [stdout] | [INFO] [stdout] 1370 | let oneRR = m.oneRR(); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `one_rr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `GFp_p384_elem_sqr_mont` should have a snake case name [INFO] [stdout] --> src/ec/suite_b/ops/p384.rs:328:22 [INFO] [stdout] | [INFO] [stdout] 328 | unsafe extern "C" fn GFp_p384_elem_sqr_mont( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `gfp_p384_elem_sqr_mont` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 16.30s [INFO] running `Command { std: "docker" "inspect" "ce9ba30fc50b4e546469d9fdda20f7416b9cf34ecf24aaad16a5a10a270f43d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ce9ba30fc50b4e546469d9fdda20f7416b9cf34ecf24aaad16a5a10a270f43d5", kill_on_drop: false }` [INFO] [stdout] ce9ba30fc50b4e546469d9fdda20f7416b9cf34ecf24aaad16a5a10a270f43d5