[INFO] cloning repository https://github.com/Shika-B/math-utils [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Shika-B/math-utils" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShika-B%2Fmath-utils", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShika-B%2Fmath-utils'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f1776f946da0998b2bd8348c156bfc6d404d0fc3 [INFO] checking Shika-B/math-utils/f1776f946da0998b2bd8348c156bfc6d404d0fc3 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShika-B%2Fmath-utils" "/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/Shika-B/math-utils 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/Shika-B/math-utils [INFO] finished tweaking git repo https://github.com/Shika-B/math-utils [INFO] tweaked toml for git repo https://github.com/Shika-B/math-utils written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Shika-B/math-utils 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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ba16beff9f51d49677ef97f273920b9e98fea3cbb14217b478eea8ad7db8514c [INFO] running `Command { std: "docker" "start" "-a" "ba16beff9f51d49677ef97f273920b9e98fea3cbb14217b478eea8ad7db8514c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ba16beff9f51d49677ef97f273920b9e98fea3cbb14217b478eea8ad7db8514c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba16beff9f51d49677ef97f273920b9e98fea3cbb14217b478eea8ad7db8514c", kill_on_drop: false }` [INFO] [stdout] ba16beff9f51d49677ef97f273920b9e98fea3cbb14217b478eea8ad7db8514c [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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a433d583270bb53c95dcb03b37224c235a07a922c1cda91957c64cf55132d4b4 [INFO] running `Command { std: "docker" "start" "-a" "a433d583270bb53c95dcb03b37224c235a07a922c1cda91957c64cf55132d4b4", 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 num-traits v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Checking num-complex v0.4.2 [INFO] [stderr] Checking num v0.4.0 [INFO] [stderr] Checking crypto-maths v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/ring/mod_int/mod.rs (1 fix) [INFO] [stderr] Fixed src/ring/mod.rs (3 fixes) [INFO] [stderr] Fixed src/ring/arithmetic/mod.rs (1 fix) [INFO] [stdout] warning: struct `Matrix` is never constructed [INFO] [stdout] --> src/matrix/matrix.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Matrix<'a, R: Ring<'a>> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_field` is never used [INFO] [stdout] --> src/ring/mod.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub trait Ring<'a>: [INFO] [stdout] | ---- method in this trait [INFO] [stdout] ... [INFO] [stdout] 31 | fn is_field(&self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gcd` is never used [INFO] [stdout] --> src/ring/arithmetic/mod.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn gcd(n1: &N, n2: &N) -> N { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lcm` is never used [INFO] [stdout] --> src/ring/arithmetic/mod.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn lcm(n1: &N, n2: &N) -> N { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_field` is never used [INFO] [stdout] --> src/ring/mod_int/mod_int.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl ModInt { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn new_field(value: i128, modulus: i128) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `dim` is never used [INFO] [stdout] --> src/ring/polynomial/mod.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait Polynomial<'a>: Ring<'a> { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] 11 | type CoefRing: Ring<'a>; [INFO] [stdout] 12 | fn dim(&self) -> usize; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `eval` is never used [INFO] [stdout] --> src/ring/polynomial/univar_polynomial.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl<'a, R: Ring<'a>> UPolynomial<'a, R> { [INFO] [stdout] | ---------------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn eval(&self, point: R) -> R { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/ring/mod_int/mod_int.rs (2 fixes) [INFO] [stdout] warning: unused import: `mod_int::*` [INFO] [stdout] --> src/ring/mod_int/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use mod_int::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Matrix` is never constructed [INFO] [stdout] --> src/matrix/matrix.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Matrix<'a, R: Ring<'a>> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_field`, `is_commutative`, and `inverse` are never used [INFO] [stdout] --> src/ring/mod.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub trait Ring<'a>: [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 31 | fn is_field(&self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | fn is_commutative(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn inverse(&self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gcd` is never used [INFO] [stdout] --> src/ring/arithmetic/mod.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn gcd(n1: &N, n2: &N) -> N { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lcm` is never used [INFO] [stdout] --> src/ring/arithmetic/mod.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn lcm(n1: &N, n2: &N) -> N { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_field` and `mod_pow` are never used [INFO] [stdout] --> src/ring/mod_int/mod_int.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl ModInt { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn new_field(value: i128, modulus: i128) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn mod_pow(&self, exp: i128) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `dim` is never used [INFO] [stdout] --> src/ring/polynomial/mod.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait Polynomial<'a>: Ring<'a> { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] 11 | type CoefRing: Ring<'a>; [INFO] [stdout] 12 | fn dim(&self) -> usize; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `eval` are never used [INFO] [stdout] --> src/ring/polynomial/univar_polynomial.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl<'a, R: Ring<'a>> UPolynomial<'a, R> { [INFO] [stdout] | ---------------------------------------- associated items in this implementation [INFO] [stdout] 18 | pub fn new(coefficients: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn eval(&self, point: R) -> R { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.44s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking crypto-maths v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: unused import: `mod_int::*` [INFO] [stdout] --> src/ring/mod_int/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use mod_int::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ModInt` [INFO] [stdout] --> src/ring/mod_int/mod_int.rs:223:17 [INFO] [stdout] | [INFO] [stdout] 223 | let x = ModInt::new(2, 29); [INFO] [stdout] | ^^^^^^ use of undeclared type `ModInt` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 221 + use crate::ring::mod_int::ModInt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ModInt` [INFO] [stdout] --> src/ring/mod_int/mod_int.rs:224:17 [INFO] [stdout] | [INFO] [stdout] 224 | let y = ModInt::new(-27, 29); [INFO] [stdout] | ^^^^^^ use of undeclared type `ModInt` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 221 + use crate::ring::mod_int::ModInt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ModInt` [INFO] [stdout] --> src/ring/mod_int/mod_int.rs:225:17 [INFO] [stdout] | [INFO] [stdout] 225 | let z = ModInt::new(31, 29); [INFO] [stdout] | ^^^^^^ use of undeclared type `ModInt` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 221 + use crate::ring::mod_int::ModInt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ModInt` [INFO] [stdout] --> src/ring/mod_int/mod_int.rs:233:26 [INFO] [stdout] | [INFO] [stdout] 233 | let (x, y, z) = (ModInt::new(3, 21), ModInt::new(5, 21), ModInt::new(23, 21)); [INFO] [stdout] | ^^^^^^ use of undeclared type `ModInt` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 221 + use crate::ring::mod_int::ModInt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ModInt` [INFO] [stdout] --> src/ring/mod_int/mod_int.rs:233:46 [INFO] [stdout] | [INFO] [stdout] 233 | let (x, y, z) = (ModInt::new(3, 21), ModInt::new(5, 21), ModInt::new(23, 21)); [INFO] [stdout] | ^^^^^^ use of undeclared type `ModInt` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 221 + use crate::ring::mod_int::ModInt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ModInt` [INFO] [stdout] --> src/ring/mod_int/mod_int.rs:233:66 [INFO] [stdout] | [INFO] [stdout] 233 | let (x, y, z) = (ModInt::new(3, 21), ModInt::new(5, 21), ModInt::new(23, 21)); [INFO] [stdout] | ^^^^^^ use of undeclared type `ModInt` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 221 + use crate::ring::mod_int::ModInt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ModInt` [INFO] [stdout] --> src/ring/mod_int/mod_int.rs:234:24 [INFO] [stdout] | [INFO] [stdout] 234 | let expected = ModInt::new(15, 21); [INFO] [stdout] | ^^^^^^ use of undeclared type `ModInt` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 221 + use crate::ring::mod_int::ModInt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ModInt` [INFO] [stdout] --> src/ring/mod_int/mod_int.rs:235:34 [INFO] [stdout] | [INFO] [stdout] 235 | assert_eq!(x * (y - z) + ModInt::new(3, 21) * z, expected); [INFO] [stdout] | ^^^^^^ use of undeclared type `ModInt` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 221 + use crate::ring::mod_int::ModInt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ModInt` [INFO] [stdout] --> src/ring/mod_int/mod_int.rs:240:17 [INFO] [stdout] | [INFO] [stdout] 240 | let x = ModInt::new(5, 7); [INFO] [stdout] | ^^^^^^ use of undeclared type `ModInt` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 221 + use crate::ring::mod_int::ModInt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ModInt` [INFO] [stdout] --> src/ring/mod_int/mod_int.rs:241:38 [INFO] [stdout] | [INFO] [stdout] 241 | assert_eq!(x.inverse(), Some(ModInt::new(3, 7))) [INFO] [stdout] | ^^^^^^ use of undeclared type `ModInt` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 221 + use crate::ring::mod_int::ModInt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ModInt` [INFO] [stdout] --> src/ring/mod_int/mod_int.rs:246:17 [INFO] [stdout] | [INFO] [stdout] 246 | let x = ModInt::new(5, 7); [INFO] [stdout] | ^^^^^^ use of undeclared type `ModInt` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 221 + use crate::ring::mod_int::ModInt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ModInt` [INFO] [stdout] --> src/ring/mod_int/mod_int.rs:248:24 [INFO] [stdout] | [INFO] [stdout] 248 | let expected = ModInt::new(4, 7); [INFO] [stdout] | ^^^^^^ use of undeclared type `ModInt` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 221 + use crate::ring::mod_int::ModInt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ModInt` [INFO] [stdout] --> src/ring/mod_int/mod_int.rs:251:24 [INFO] [stdout] | [INFO] [stdout] 251 | let expected = ModInt::new(2, 7); [INFO] [stdout] | ^^^^^^ use of undeclared type `ModInt` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 221 + use crate::ring::mod_int::ModInt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mod_int::*` [INFO] [stdout] --> src/ring/mod_int/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use mod_int::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Matrix` is never constructed [INFO] [stdout] --> src/matrix/matrix.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Matrix<'a, R: Ring<'a>> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_field`, `is_commutative`, and `inverse` are never used [INFO] [stdout] --> src/ring/mod.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub trait Ring<'a>: [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 31 | fn is_field(&self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | fn is_commutative(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn inverse(&self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gcd` is never used [INFO] [stdout] --> src/ring/arithmetic/mod.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn gcd(n1: &N, n2: &N) -> N { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lcm` is never used [INFO] [stdout] --> src/ring/arithmetic/mod.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn lcm(n1: &N, n2: &N) -> N { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_field` and `mod_pow` are never used [INFO] [stdout] --> src/ring/mod_int/mod_int.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl ModInt { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn new_field(value: i128, modulus: i128) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn mod_pow(&self, exp: i128) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `dim` is never used [INFO] [stdout] --> src/ring/polynomial/mod.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait Polynomial<'a>: Ring<'a> { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] 11 | type CoefRing: Ring<'a>; [INFO] [stdout] 12 | fn dim(&self) -> usize; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `eval` are never used [INFO] [stdout] --> src/ring/polynomial/univar_polynomial.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl<'a, R: Ring<'a>> UPolynomial<'a, R> { [INFO] [stdout] | ---------------------------------------- associated items in this implementation [INFO] [stdout] 18 | pub fn new(coefficients: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn eval(&self, point: R) -> R { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 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 `crypto-maths` (bin "crypto-maths" test) due to 14 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" "a433d583270bb53c95dcb03b37224c235a07a922c1cda91957c64cf55132d4b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a433d583270bb53c95dcb03b37224c235a07a922c1cda91957c64cf55132d4b4", kill_on_drop: false }` [INFO] [stdout] a433d583270bb53c95dcb03b37224c235a07a922c1cda91957c64cf55132d4b4