[INFO] cloning repository https://github.com/vladfdp/math_lib [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vladfdp/math_lib" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvladfdp%2Fmath_lib", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvladfdp%2Fmath_lib'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 38e6c12e5f1dd499c43923420eae567e460d0c56 [INFO] checking vladfdp/math_lib against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvladfdp%2Fmath_lib" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/vladfdp/math_lib on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/vladfdp/math_lib [INFO] finished tweaking git repo https://github.com/vladfdp/math_lib [INFO] tweaked toml for git repo https://github.com/vladfdp/math_lib written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/vladfdp/math_lib 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2c168cf4acfa7eda1fafea7b4ae0b84f640c3c34ec208533dfafcd37b3d6aff4 [INFO] running `Command { std: "docker" "start" "-a" "2c168cf4acfa7eda1fafea7b4ae0b84f640c3c34ec208533dfafcd37b3d6aff4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2c168cf4acfa7eda1fafea7b4ae0b84f640c3c34ec208533dfafcd37b3d6aff4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c168cf4acfa7eda1fafea7b4ae0b84f640c3c34ec208533dfafcd37b3d6aff4", kill_on_drop: false }` [INFO] [stdout] 2c168cf4acfa7eda1fafea7b4ae0b84f640c3c34ec208533dfafcd37b3d6aff4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2616cbdad1fb820bda86ad0b28d3d7f4dd9891e43c51514d71755f4b2e0634c7 [INFO] running `Command { std: "docker" "start" "-a" "2616cbdad1fb820bda86ad0b28d3d7f4dd9891e43c51514d71755f4b2e0634c7", kill_on_drop: false }` [INFO] [stderr] Checking math_lib v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::iter::Sum` [INFO] [stdout] --> src/traits.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::iter::Sum; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Sum` [INFO] [stdout] --> src/traits.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::iter::Sum; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `One` and `Zero` [INFO] [stdout] --> src/lib.rs:478:29 [INFO] [stdout] | [INFO] [stdout] 478 | use crate::traits::{Zero, One}; [INFO] [stdout] | ^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `poly::poly_ff::Polyff` [INFO] [stdout] --> src/lib.rs:721:13 [INFO] [stdout] | [INFO] [stdout] 721 | poly::poly_ff::Polyff}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EllipticCurvePoint` [INFO] [stdout] --> src/lib.rs:813:51 [INFO] [stdout] | [INFO] [stdout] 813 | use crate::elliptic_curve::{EllipticCurve,EllipticCurvePoint,ECPoint}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::poly::poly_ff::Polyff` [INFO] [stdout] --> src/lib.rs:927:9 [INFO] [stdout] | [INFO] [stdout] 927 | use crate::poly::poly_ff::Polyff; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::poly::poly_zx::PolyZx` [INFO] [stdout] --> src/lib.rs:928:9 [INFO] [stdout] | [INFO] [stdout] 928 | use crate::poly::poly_zx::PolyZx; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::zn::Zn` [INFO] [stdout] --> src/lib.rs:929:9 [INFO] [stdout] | [INFO] [stdout] 929 | use crate::zn::Zn; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Inv` and `Pow` [INFO] [stdout] --> src/lib.rs:930:25 [INFO] [stdout] | [INFO] [stdout] 930 | use crate::traits::{Pow,Inv}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::matrix_z::MatrixZ` [INFO] [stdout] --> src/lib.rs:934:9 [INFO] [stdout] | [INFO] [stdout] 934 | use crate::matrix_z::MatrixZ; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::poly::poly_ring::Poly` [INFO] [stdout] --> src/lib.rs:935:13 [INFO] [stdout] | [INFO] [stdout] 935 | use crate::poly::poly_ring::Poly; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Inv` [INFO] [stdout] --> src/poly/poly_ff.rs:3:30 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::traits::{One,Zero,Inv}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_vec`, `into_i32`, `legendre_symbol`, `is_square`, and `sqrt` are never used [INFO] [stdout] --> src/zn.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 127 | impl Zn { [INFO] [stdout] | ------- associated items in this implementation [INFO] [stdout] 128 | [INFO] [stdout] 129 | pub fn from_vec(vec: Vec,n:i32)-> Vec{ // get a vec of Zn from a vec and n [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn into_i32(vec: Vec)-> Vec { // get a vec of int from a vec [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn legendre_symbol(&self)->i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | pub fn is_square(&self) -> bool{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn sqrt(a:Zn)->(Zn,Zn){ //using cipolla's algorithm [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_deg` and `eval` are never used [INFO] [stdout] --> src/poly/poly_zx.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl PolyZx{ [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 14 | pub fn get_deg(&self)->usize{self.coeff.len()-1} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 15 | [INFO] [stdout] 16 | pub fn eval(&self,x:T)-> T { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_deg` and `eval` are never used [INFO] [stdout] --> src/poly/poly_ring.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 11 | / impl Poly [INFO] [stdout] 12 | | where [INFO] [stdout] 13 | | T:Ring [INFO] [stdout] | |__________- methods in this implementation [INFO] [stdout] 14 | { [INFO] [stdout] 15 | pub fn get_deg(&self)->usize{self.coeff.len()-1} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 16 | [INFO] [stdout] 17 | pub fn eval(&self,x:T)-> T { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `eval`, `new_from_vec`, and `GCD` are never used [INFO] [stdout] --> src/poly/poly_ff.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Polyff{ [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn eval(&self,x:T)-> T { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn new_from_vec(coeff:Vec) -> Polyff{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn GCD(f:Polyff, g: Polyff)->Polyff{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_from_vec` and `frobenius_map` are never used [INFO] [stdout] --> src/field_extension.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 130 | impl FieldExtension { [INFO] [stdout] | ------------------------------- associated functions in this implementation [INFO] [stdout] 131 | pub fn new_from_vec(nb:Vec, poly:Vec)->FieldExtension{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | pub fn frobenius_map(x:FieldExtension)->FieldExtension{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `new_point`, `infinity`, and `is_on_curve` are never used [INFO] [stdout] --> src/elliptic_curve.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl EllipticCurve{ [INFO] [stdout] | ------------------------------ associated items in this implementation [INFO] [stdout] 23 | [INFO] [stdout] 24 | pub fn new(a:T,b:T)->EllipticCurve{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn new_point(&self,x:T,y:T)->EllipticCurvePoint{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn infinity(&self)->EllipticCurvePoint{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn is_on_curve(&self,pt:&ECPoint)->bool{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_prime` is never used [INFO] [stdout] --> src/num_theory.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn is_prime(n:i32)->bool{ //this is slow, will implement miller-rabin or something [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gcd` is never used [INFO] [stdout] --> src/num_theory.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn gcd(a:i32,b:i32)->i32{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get` is never used [INFO] [stdout] --> src/vector_z.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl VectorZ{ [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn get(&self, index:usize)->i32{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get` is never used [INFO] [stdout] --> src/vector_ring.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Vector{ [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn get(&self, index:usize)->T{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `GCD` should have a snake case name [INFO] [stdout] --> src/poly/poly_ff.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn GCD(f:Polyff, g: Polyff)->Polyff{ [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `gcd` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Inv` [INFO] [stdout] --> src/poly/poly_ff.rs:3:30 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::traits::{One,Zero,Inv}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_deg` is never used [INFO] [stdout] --> src/poly/poly_zx.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl PolyZx{ [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 14 | pub fn get_deg(&self)->usize{self.coeff.len()-1} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_deg` is never used [INFO] [stdout] --> src/poly/poly_ring.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 11 | / impl Poly [INFO] [stdout] 12 | | where [INFO] [stdout] 13 | | T:Ring [INFO] [stdout] | |__________- method in this implementation [INFO] [stdout] 14 | { [INFO] [stdout] 15 | pub fn get_deg(&self)->usize{self.coeff.len()-1} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `frobenius_map` is never used [INFO] [stdout] --> src/field_extension.rs:136:12 [INFO] [stdout] | [INFO] [stdout] 130 | impl FieldExtension { [INFO] [stdout] | ------------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 136 | pub fn frobenius_map(x:FieldExtension)->FieldExtension{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get` is never used [INFO] [stdout] --> src/vector_z.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl VectorZ{ [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn get(&self, index:usize)->i32{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get` is never used [INFO] [stdout] --> src/vector_ring.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Vector{ [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn get(&self, index:usize)->T{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `GCD` should have a snake case name [INFO] [stdout] --> src/poly/poly_ff.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn GCD(f:Polyff, g: Polyff)->Polyff{ [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `gcd` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MatrixZ_a` should have a snake case name [INFO] [stdout] --> src/lib.rs:492:17 [INFO] [stdout] | [INFO] [stdout] 492 | let MatrixZ_a = MatrixZ::new(vec![3,0,1,1],2); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `matrix_z_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MatrixZ_b` should have a snake case name [INFO] [stdout] --> src/lib.rs:493:17 [INFO] [stdout] | [INFO] [stdout] 493 | let MatrixZ_b = MatrixZ::new(vec![2,4,0,1],2); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `matrix_z_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MatrixZ` should have a snake case name [INFO] [stdout] --> src/lib.rs:497:17 [INFO] [stdout] | [INFO] [stdout] 497 | let MatrixZ = MatrixZ::new(vec![1,0,2,3],2); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `matrix_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.28s [INFO] running `Command { std: "docker" "inspect" "2616cbdad1fb820bda86ad0b28d3d7f4dd9891e43c51514d71755f4b2e0634c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2616cbdad1fb820bda86ad0b28d3d7f4dd9891e43c51514d71755f4b2e0634c7", kill_on_drop: false }` [INFO] [stdout] 2616cbdad1fb820bda86ad0b28d3d7f4dd9891e43c51514d71755f4b2e0634c7