[INFO] cloning repository https://github.com/Aminstelo/co-lovekeqing [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Aminstelo/co-lovekeqing" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAminstelo%2Fco-lovekeqing", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAminstelo%2Fco-lovekeqing'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4ca802098a610638ce3b193196adf8d4586605f4 [INFO] checking Aminstelo/co-lovekeqing/4ca802098a610638ce3b193196adf8d4586605f4 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAminstelo%2Fco-lovekeqing" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Aminstelo/co-lovekeqing on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Aminstelo/co-lovekeqing [INFO] finished tweaking git repo https://github.com/Aminstelo/co-lovekeqing [INFO] tweaked toml for git repo https://github.com/Aminstelo/co-lovekeqing written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Aminstelo/co-lovekeqing 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dd581ea1a0ab5121667a2a507c44ef5fa674d159685407bc8a92aed50494e922 [INFO] running `Command { std: "docker" "start" "-a" "dd581ea1a0ab5121667a2a507c44ef5fa674d159685407bc8a92aed50494e922", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dd581ea1a0ab5121667a2a507c44ef5fa674d159685407bc8a92aed50494e922", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd581ea1a0ab5121667a2a507c44ef5fa674d159685407bc8a92aed50494e922", kill_on_drop: false }` [INFO] [stdout] dd581ea1a0ab5121667a2a507c44ef5fa674d159685407bc8a92aed50494e922 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bdadf9c5a8b4a88d1b5e7a1743c898ad7835d9a19241365595debede27e3f121 [INFO] running `Command { std: "docker" "start" "-a" "bdadf9c5a8b4a88d1b5e7a1743c898ad7835d9a19241365595debede27e3f121", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling libc v0.2.154 [INFO] [stderr] Checking const-oid v0.10.0-pre.2 [INFO] [stderr] Checking keccak v0.2.0-pre.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Checking getrandom v0.2.14 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking hybrid-array v0.2.0-rc.8 [INFO] [stderr] Checking crypto-common v0.2.0-pre.5 [INFO] [stderr] Checking block-buffer v0.11.0-pre.5 [INFO] [stderr] Checking digest v0.11.0-pre.8 [INFO] [stderr] Checking sha3 v0.11.0-pre.3 [INFO] [stderr] Checking cofunc v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/rand_sha3.rs (1 fix) [INFO] [stderr] Fixed src/lib.rs (3 fixes) [INFO] [stderr] Fixed src/processing.rs (1 fix) [INFO] [stderr] Fixed src/validate.rs (3 fixes) [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rand_sha3.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | for i in 0..1{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Wu8` is never used [INFO] [stdout] --> src/cofunc.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | type Wu8 = u8; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash` is never used [INFO] [stdout] --> src/cofunc.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn hash(x: Wu8, d: Wu8) -> Wu8{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `co` is never used [INFO] [stdout] --> src/cofunc.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn co(x: Wu8, f: Wu8) -> Wu8{ [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `aco` is never used [INFO] [stdout] --> src/cofunc.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn aco(x: Wu8, f: Wu8) -> Wu8{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_co` is never used [INFO] [stdout] --> src/cofunc.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn hash_co(cov: Wu8, d: Wu8) -> Wu8{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Дешифриране` should have a snake case name [INFO] [stdout] --> src/lib.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn Дешифриране(cov: &Data,key: Key) -> RawData { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `дешифриране` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/encryption.rs (1 fix) [INFO] [stderr] Fixed src/lib.rs (1 fix) [INFO] [stdout] warning: function `new_key` is never used [INFO] [stdout] --> src/lib.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn new_key(hash_modulus: types::HashModulus,slice_size_random_range:(u64,u64)) -> Key { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `مشفرة` is never used [INFO] [stdout] --> src/lib.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn مشفرة(raw_data: &RawData,key: Key) -> Data { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Дешифриране` is never used [INFO] [stdout] --> src/lib.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn Дешифриране(cov: &Data,key: Key) -> RawData { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash` is never used [INFO] [stdout] --> src/cofunc_bigint.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) fn hash(x: BigIntRef, d: BigIntRef) -> BigInt { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `co` is never used [INFO] [stdout] --> src/cofunc_bigint.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) fn co(x: BigIntRef, f: BigIntRef) -> BigInt { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `aco` is never used [INFO] [stdout] --> src/cofunc_bigint.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | pub(crate) fn aco(x: BigIntRef, f: BigIntRef) -> BigInt { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_co` is never used [INFO] [stdout] --> src/cofunc_bigint.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) fn hash_co(cov: BigIntRef, d: BigIntRef) -> BigInt { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_aco` is never used [INFO] [stdout] --> src/cofunc_bigint.rs:25:15 [INFO] [stdout] | [INFO] [stdout] 25 | pub(crate) fn hash_aco(x_hash:BigIntRef,d:BigIntRef ,f:BigIntRef) -> BigInt { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Wu8` is never used [INFO] [stdout] --> src/cofunc.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | type Wu8 = u8; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash` is never used [INFO] [stdout] --> src/cofunc.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn hash(x: Wu8, d: Wu8) -> Wu8{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `co` is never used [INFO] [stdout] --> src/cofunc.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn co(x: Wu8, f: Wu8) -> Wu8{ [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `aco` is never used [INFO] [stdout] --> src/cofunc.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn aco(x: Wu8, f: Wu8) -> Wu8{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_co` is never used [INFO] [stdout] --> src/cofunc.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn hash_co(cov: Wu8, d: Wu8) -> Wu8{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash` is never used [INFO] [stdout] --> src/rand_sha3.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) fn hash(t: &T) -> u64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_func` is never used [INFO] [stdout] --> src/rand_sha3.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) fn get_func(key : &HashFuncKey, hash_m : HashModulus) -> impl Fn(&Vec) -> BigInt + use<> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_random_hash_key` is never used [INFO] [stdout] --> src/rand_sha3.rs:31:15 [INFO] [stdout] | [INFO] [stdout] 31 | pub(crate) fn generate_random_hash_key() -> [u8;32]{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `slice_vec` is never used [INFO] [stdout] --> src/processing.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) fn slice_vec(data: &[T], chunk_size: usize) -> Vec<(&[T], usize)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `data_to_vec` is never used [INFO] [stdout] --> src/processing.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | pub(crate) fn data_to_vec(data:Data) -> Vec>{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec_u8_to_bigint` is never used [INFO] [stdout] --> src/processing.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | pub(crate) fn vec_u8_to_bigint(data:&[u8]) -> BigInt { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `co` is never used [INFO] [stdout] --> src/encryption.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) fn co(data:&Data, key:Key) -> Data { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `aco` is never used [INFO] [stdout] --> src/encryption.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) fn aco(cov :&Data,key:Key) -> Data { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `data_hash` is never used [INFO] [stdout] --> src/validate.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) fn data_hash(data : &RawData, chunk_size: ShardSize, co_func_d: VerificationHashModulus) -> Data{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `aco_hash` is never used [INFO] [stdout] --> src/validate.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) fn aco_hash(_data_hash:Data, key:Key, verification_hash_modulus:VerificationHashModulus) -> u64{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `co_hash` is never used [INFO] [stdout] --> src/validate.rs:27:15 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) fn co_hash(cov :&Data, co_func_d: VerificationHashModulus) -> u64{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `HashFuncKey` is never used [INFO] [stdout] --> src/types.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) type HashFuncKey = [u8;32]; // 生成 cofunc_bigint.rs 中的函数的f参数使用的hash函数的Key [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `HashModulus` is never used [INFO] [stdout] --> src/types.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) type HashModulus = u64; // 生成 cofunc_bigint.rs 中函数 f 参数使用的hash函数的模数,The modulus of the hash function that generate ... [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ShardSize` is never used [INFO] [stdout] --> src/types.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) type ShardSize = u8; // 数据加密时使用分片大小 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Key` is never used [INFO] [stdout] --> src/types.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub type Key = (HashFuncKey,HashModulus,ShardSize); // HashFuncKey and HashModulus(不是验证hash函数的) and ShardSize (加密函数秘钥) ... [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `BigIntRef` is never used [INFO] [stdout] --> src/types.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) type BigIntRef<'a> = &'a BigInt; // cofunc_bigint.rs 中函数传入类型 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Data` is never used [INFO] [stdout] --> src/types.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub type Data = Vec; // 加密函数参数原始数据 [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `RawData` is never used [INFO] [stdout] --> src/types.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub type RawData = Vec; // 未经过预处理的原始数据 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `VerificationHashModulus` is never used [INFO] [stdout] --> src/types.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub type VerificationHashModulus = u64; // validate.rs 中hash函数的模数 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Дешифриране` should have a snake case name [INFO] [stdout] --> src/lib.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn Дешифриране(cov: &Data,key: Key) -> RawData { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `дешифриране` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.64s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking cofunc v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Sign` [INFO] [stdout] --> src/encryption.rs:44:45 [INFO] [stdout] | [INFO] [stdout] 44 | let mut big_int = BigInt::from_bytes_be(Sign::Plus, &original_bytes); [INFO] [stdout] | ^^^^ use of undeclared type `Sign` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use num_bigint::Sign; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VerificationHashModulus` [INFO] [stdout] --> src/lib.rs:64:37 [INFO] [stdout] | [INFO] [stdout] 64 | let verification_hash_modulus = VerificationHashModulus::from_be(114); // 创建验证hash模数 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `VerificationHashModulus` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 1 + use crate::types::VerificationHashModulus; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_key` is never used [INFO] [stdout] --> src/lib.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn new_key(hash_modulus: types::HashModulus,slice_size_random_range:(u64,u64)) -> Key { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `مشفرة` is never used [INFO] [stdout] --> src/lib.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn مشفرة(raw_data: &RawData,key: Key) -> Data { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Дешифриране` is never used [INFO] [stdout] --> src/lib.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn Дешифриране(cov: &Data,key: Key) -> RawData { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash` is never used [INFO] [stdout] --> src/cofunc_bigint.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) fn hash(x: BigIntRef, d: BigIntRef) -> BigInt { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `co` is never used [INFO] [stdout] --> src/cofunc_bigint.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) fn co(x: BigIntRef, f: BigIntRef) -> BigInt { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `aco` is never used [INFO] [stdout] --> src/cofunc_bigint.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | pub(crate) fn aco(x: BigIntRef, f: BigIntRef) -> BigInt { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_co` is never used [INFO] [stdout] --> src/cofunc_bigint.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) fn hash_co(cov: BigIntRef, d: BigIntRef) -> BigInt { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_aco` is never used [INFO] [stdout] --> src/cofunc_bigint.rs:25:15 [INFO] [stdout] | [INFO] [stdout] 25 | pub(crate) fn hash_aco(x_hash:BigIntRef,d:BigIntRef ,f:BigIntRef) -> BigInt { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Wu8` is never used [INFO] [stdout] --> src/cofunc.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | type Wu8 = u8; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash` is never used [INFO] [stdout] --> src/cofunc.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn hash(x: Wu8, d: Wu8) -> Wu8{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `co` is never used [INFO] [stdout] --> src/cofunc.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn co(x: Wu8, f: Wu8) -> Wu8{ [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `aco` is never used [INFO] [stdout] --> src/cofunc.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn aco(x: Wu8, f: Wu8) -> Wu8{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_co` is never used [INFO] [stdout] --> src/cofunc.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn hash_co(cov: Wu8, d: Wu8) -> Wu8{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash` is never used [INFO] [stdout] --> src/rand_sha3.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) fn hash(t: &T) -> u64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_func` is never used [INFO] [stdout] --> src/rand_sha3.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) fn get_func(key : &HashFuncKey, hash_m : HashModulus) -> impl Fn(&Vec) -> BigInt + use<> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_random_hash_key` is never used [INFO] [stdout] --> src/rand_sha3.rs:31:15 [INFO] [stdout] | [INFO] [stdout] 31 | pub(crate) fn generate_random_hash_key() -> [u8;32]{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `slice_vec` is never used [INFO] [stdout] --> src/processing.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) fn slice_vec(data: &[T], chunk_size: usize) -> Vec<(&[T], usize)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `data_to_vec` is never used [INFO] [stdout] --> src/processing.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | pub(crate) fn data_to_vec(data:Data) -> Vec>{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec_u8_to_bigint` is never used [INFO] [stdout] --> src/processing.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | pub(crate) fn vec_u8_to_bigint(data:&[u8]) -> BigInt { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `co` is never used [INFO] [stdout] --> src/encryption.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) fn co(data:&Data, key:Key) -> Data { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `aco` is never used [INFO] [stdout] --> src/encryption.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) fn aco(cov :&Data,key:Key) -> Data { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `data_hash` is never used [INFO] [stdout] --> src/validate.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) fn data_hash(data : &RawData, chunk_size: ShardSize, co_func_d: VerificationHashModulus) -> Data{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `aco_hash` is never used [INFO] [stdout] --> src/validate.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) fn aco_hash(_data_hash:Data, key:Key, verification_hash_modulus:VerificationHashModulus) -> u64{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `co_hash` is never used [INFO] [stdout] --> src/validate.rs:27:15 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) fn co_hash(cov :&Data, co_func_d: VerificationHashModulus) -> u64{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `HashFuncKey` is never used [INFO] [stdout] --> src/types.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) type HashFuncKey = [u8;32]; // 生成 cofunc_bigint.rs 中的函数的f参数使用的hash函数的Key [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `HashModulus` is never used [INFO] [stdout] --> src/types.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) type HashModulus = u64; // 生成 cofunc_bigint.rs 中函数 f 参数使用的hash函数的模数,The modulus of the hash function that generate ... [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ShardSize` is never used [INFO] [stdout] --> src/types.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) type ShardSize = u8; // 数据加密时使用分片大小 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Key` is never used [INFO] [stdout] --> src/types.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub type Key = (HashFuncKey,HashModulus,ShardSize); // HashFuncKey and HashModulus(不是验证hash函数的) and ShardSize (加密函数秘钥) ... [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `BigIntRef` is never used [INFO] [stdout] --> src/types.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) type BigIntRef<'a> = &'a BigInt; // cofunc_bigint.rs 中函数传入类型 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Data` is never used [INFO] [stdout] --> src/types.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub type Data = Vec; // 加密函数参数原始数据 [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `RawData` is never used [INFO] [stdout] --> src/types.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub type RawData = Vec; // 未经过预处理的原始数据 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `VerificationHashModulus` is never used [INFO] [stdout] --> src/types.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub type VerificationHashModulus = u64; // validate.rs 中hash函数的模数 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Дешифриране` should have a snake case name [INFO] [stdout] --> src/lib.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn Дешифриране(cov: &Data,key: Key) -> RawData { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `дешифриране` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rand_sha3.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | for i in 0..1{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cofunc` (lib test) due to 3 previous errors; 1 warning emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "bdadf9c5a8b4a88d1b5e7a1743c898ad7835d9a19241365595debede27e3f121", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bdadf9c5a8b4a88d1b5e7a1743c898ad7835d9a19241365595debede27e3f121", kill_on_drop: false }` [INFO] [stdout] bdadf9c5a8b4a88d1b5e7a1743c898ad7835d9a19241365595debede27e3f121