[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 master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShika-B%2Fmath-utils" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Shika-B/math-utils on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "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-0-tc1/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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 12211abfbe901032f214ea4e012395c070c58967fb52b419bce7b0c81cc058be [INFO] running `Command { std: "docker" "start" "-a" "12211abfbe901032f214ea4e012395c070c58967fb52b419bce7b0c81cc058be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "12211abfbe901032f214ea4e012395c070c58967fb52b419bce7b0c81cc058be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "12211abfbe901032f214ea4e012395c070c58967fb52b419bce7b0c81cc058be", kill_on_drop: false }` [INFO] [stdout] 12211abfbe901032f214ea4e012395c070c58967fb52b419bce7b0c81cc058be [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f99d365301cf5669044ff6ffe496b807682d8c0709d6a7817d6d498408bf283a [INFO] running `Command { std: "docker" "start" "-a" "f99d365301cf5669044ff6ffe496b807682d8c0709d6a7817d6d498408bf283a", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [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-iter v0.1.43 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Checking num-complex v0.4.2 [INFO] [stderr] Checking num v0.4.0 [INFO] [stderr] Checking crypto-maths v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `num::pow` [INFO] [stdout] --> src/ring/arithmetic/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub use num::pow; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `big_mod_int::*` [INFO] [stdout] --> src/ring/mod_int/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use big_mod_int::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BitAnd` and `Shl` [INFO] [stdout] --> src/ring/mod.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | ops::{Add, AddAssign, BitAnd, Mul, MulAssign, Neg, Shl, Sub, SubAssign}, [INFO] [stdout] | ^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Integer` [INFO] [stdout] --> src/ring/mod.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | use num::{Integer, One, Zero}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::pow` [INFO] [stdout] --> src/ring/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use num::pow; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::pow` [INFO] [stdout] --> src/ring/arithmetic/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub use num::pow; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ring::Ring` [INFO] [stdout] --> src/ring/mod_int/mod_int.rs:217:9 [INFO] [stdout] | [INFO] [stdout] 217 | use crate::ring::Ring; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ring::mod_int::ModInt` [INFO] [stdout] --> src/ring/mod_int/mod_int.rs:219:9 [INFO] [stdout] | [INFO] [stdout] 219 | use crate::ring::mod_int::ModInt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `big_mod_int::*` [INFO] [stdout] --> src/ring/mod_int/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use big_mod_int::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BitAnd` and `Shl` [INFO] [stdout] --> src/ring/mod.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | ops::{Add, AddAssign, BitAnd, Mul, MulAssign, Neg, Shl, Sub, SubAssign}, [INFO] [stdout] | ^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Integer` [INFO] [stdout] --> src/ring/mod.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | use num::{Integer, One, Zero}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::pow` [INFO] [stdout] --> src/ring/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use num::pow; [INFO] [stdout] | ^^^^^^^^ [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: method `is_field` is never used [INFO] [stdout] --> src/ring/mod.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub trait Ring<'a>: [INFO] [stdout] | ---- method in this trait [INFO] [stdout] ... [INFO] [stdout] 32 | 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:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | 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:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | 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: 12 warnings emitted [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:32:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub trait Ring<'a>: [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 32 | fn is_field(&self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn is_commutative(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | 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:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | 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:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | 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: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.62s [INFO] running `Command { std: "docker" "inspect" "f99d365301cf5669044ff6ffe496b807682d8c0709d6a7817d6d498408bf283a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f99d365301cf5669044ff6ffe496b807682d8c0709d6a7817d6d498408bf283a", kill_on_drop: false }` [INFO] [stdout] f99d365301cf5669044ff6ffe496b807682d8c0709d6a7817d6d498408bf283a