[INFO] cloning repository https://github.com/saitunc/naive_ecc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/saitunc/naive_ecc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsaitunc%2Fnaive_ecc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsaitunc%2Fnaive_ecc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 53bd9739452c01c2db22c36a5ee214f86c077b88 [INFO] checking saitunc/naive_ecc against master#2e6fc425411280c658d852813de01c5157255088 for pr-128013 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsaitunc%2Fnaive_ecc" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/saitunc/naive_ecc on toolchain 2e6fc425411280c658d852813de01c5157255088 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/saitunc/naive_ecc [INFO] finished tweaking git repo https://github.com/saitunc/naive_ecc [INFO] tweaked toml for git repo https://github.com/saitunc/naive_ecc written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/saitunc/naive_ecc 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" "+2e6fc425411280c658d852813de01c5157255088" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e351df9d4d87c05a2747c9e968ebb98e16e850af879b3d970c9d8ae05d076078 [INFO] running `Command { std: "docker" "start" "-a" "e351df9d4d87c05a2747c9e968ebb98e16e850af879b3d970c9d8ae05d076078", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e351df9d4d87c05a2747c9e968ebb98e16e850af879b3d970c9d8ae05d076078", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e351df9d4d87c05a2747c9e968ebb98e16e850af879b3d970c9d8ae05d076078", kill_on_drop: false }` [INFO] [stdout] e351df9d4d87c05a2747c9e968ebb98e16e850af879b3d970c9d8ae05d076078 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ef9279010d54747781b3477555b2f9bbe2ec6564116618b87dbafeef24aa011a [INFO] running `Command { std: "docker" "start" "-a" "ef9279010d54747781b3477555b2f9bbe2ec6564116618b87dbafeef24aa011a", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Checking num-integer v0.1.45 [INFO] [stderr] Checking naive_ecc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ToBigInt` [INFO] [stdout] --> src/elliptic_curve/field.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use num_bigint::{BigInt, ToBigInt}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/elliptic_curve/field.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | a = (&a % &m); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 65 - a = (&a % &m); [INFO] [stdout] 65 + a = &a % &m; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ToBigInt` [INFO] [stdout] --> src/elliptic_curve/point/point.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use num_bigint::{ToBigInt, BigInt}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::num` [INFO] [stdout] --> src/elliptic_curve/point/point.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use core::num; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/elliptic_curve/point/point.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | x = (z.modinv() * x); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 60 - x = (z.modinv() * x); [INFO] [stdout] 60 + x = z.modinv() * x; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/elliptic_curve/point/point.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | y = (z.modinv() * y); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 61 - y = (z.modinv() * y); [INFO] [stdout] 61 + y = z.modinv() * y; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/elliptic_curve/point/point.rs:104:17 [INFO] [stdout] | [INFO] [stdout] 104 | let x = (self.get_x().clone() * z_inv.clone()); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 104 - let x = (self.get_x().clone() * z_inv.clone()); [INFO] [stdout] 104 + let x = self.get_x().clone() * z_inv.clone(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/elliptic_curve/point/point.rs:106:17 [INFO] [stdout] | [INFO] [stdout] 106 | let y = (self.get_y().clone() * z_inv); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 106 - let y = (self.get_y().clone() * z_inv); [INFO] [stdout] 106 + let y = self.get_y().clone() * z_inv; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/elliptic_curve/point/point.rs:184:11 [INFO] [stdout] | [INFO] [stdout] 184 | if(self.get_x().get_number() == &BigInt::from(0) && self.get_y().get_number() == &BigInt::from(0) ){ [INFO] [stdout] | ^ ^^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 184 - if(self.get_x().get_number() == &BigInt::from(0) && self.get_y().get_number() == &BigInt::from(0) ){ [INFO] [stdout] 184 + if self.get_x().get_number() == &BigInt::from(0) && self.get_y().get_number() == &BigInt::from(0) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/elliptic_curve/point/point.rs:190:17 [INFO] [stdout] | [INFO] [stdout] 190 | else if (self.get_x() == other.get_x() && self.get_y() == other.get_y()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 190 - else if (self.get_x() == other.get_x() && self.get_y() == other.get_y()){ [INFO] [stdout] 190 + else if self.get_x() == other.get_x() && self.get_y() == other.get_y() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/elliptic_curve/point/point.rs:223:17 [INFO] [stdout] | [INFO] [stdout] 223 | else if (self.get_x() == other.get_x() && self.get_y() == other.get_y()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 223 - else if (self.get_x() == other.get_x() && self.get_y() == other.get_y()){ [INFO] [stdout] 223 + else if self.get_x() == other.get_x() && self.get_y() == other.get_y() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PointAffine` and `PointProjective` [INFO] [stdout] --> src/elliptic_curve/point/pointTraits.rs:1:43 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::elliptic_curve::point::point::{PointAffine,PointProjective}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::elliptic_curve::field::FieldElement` [INFO] [stdout] --> src/elliptic_curve/point/pointTraits.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::elliptic_curve::field::FieldElement; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num_bigint::BigInt` [INFO] [stdout] --> src/elliptic_curve/point/pointTraits.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use num_bigint::BigInt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `One` and `Zero` [INFO] [stdout] --> src/elliptic_curve/point/pointTraits.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use num_traits::{Zero,One}; [INFO] [stdout] | ^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::elliptic_curve::field_traits::FieldElementTraits` [INFO] [stdout] --> src/elliptic_curve/curve.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::elliptic_curve::field_traits::FieldElementTraits; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num_bigint::BigInt` [INFO] [stdout] --> src/elliptic_curve/curve.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use num_bigint::BigInt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `One` and `Zero` [INFO] [stdout] --> src/elliptic_curve/curve.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use num_traits::{Zero,One}; [INFO] [stdout] | ^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Add` and `Sub` [INFO] [stdout] --> src/elliptic_curve/curve.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | use std::ops::{Add,Sub}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `format` [INFO] [stdout] --> src/polynomials/polynomial.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use std::fmt::{self, format}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/polynomials/polynomial.rs:30:38 [INFO] [stdout] | [INFO] [stdout] 30 | result.coefficients[i] = (result.coefficients[i].clone() + self.coefficients[i].clone()); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 30 - result.coefficients[i] = (result.coefficients[i].clone() + self.coefficients[i].clone()); [INFO] [stdout] 30 + result.coefficients[i] = result.coefficients[i].clone() + self.coefficients[i].clone(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/polynomials/polynomial.rs:34:38 [INFO] [stdout] | [INFO] [stdout] 34 | result.coefficients[i] = (&result.coefficients[i] + &other.coefficients[i]); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 34 - result.coefficients[i] = (&result.coefficients[i] + &other.coefficients[i]); [INFO] [stdout] 34 + result.coefficients[i] = &result.coefficients[i] + &other.coefficients[i]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ToBigInt` [INFO] [stdout] --> src/elliptic_curve/field.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use num_bigint::{BigInt, ToBigInt}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/elliptic_curve/field.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | a = (&a % &m); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 65 - a = (&a % &m); [INFO] [stdout] 65 + a = &a % &m; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ToBigInt` [INFO] [stdout] --> src/elliptic_curve/point/point.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use num_bigint::{ToBigInt, BigInt}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::num` [INFO] [stdout] --> src/elliptic_curve/point/point.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use core::num; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/elliptic_curve/point/point.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | x = (z.modinv() * x); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 60 - x = (z.modinv() * x); [INFO] [stdout] 60 + x = z.modinv() * x; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/elliptic_curve/point/point.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | y = (z.modinv() * y); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 61 - y = (z.modinv() * y); [INFO] [stdout] 61 + y = z.modinv() * y; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/elliptic_curve/point/point.rs:104:17 [INFO] [stdout] | [INFO] [stdout] 104 | let x = (self.get_x().clone() * z_inv.clone()); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 104 - let x = (self.get_x().clone() * z_inv.clone()); [INFO] [stdout] 104 + let x = self.get_x().clone() * z_inv.clone(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/elliptic_curve/point/point.rs:106:17 [INFO] [stdout] | [INFO] [stdout] 106 | let y = (self.get_y().clone() * z_inv); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 106 - let y = (self.get_y().clone() * z_inv); [INFO] [stdout] 106 + let y = self.get_y().clone() * z_inv; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/elliptic_curve/point/point.rs:184:11 [INFO] [stdout] | [INFO] [stdout] 184 | if(self.get_x().get_number() == &BigInt::from(0) && self.get_y().get_number() == &BigInt::from(0) ){ [INFO] [stdout] | ^ ^^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 184 - if(self.get_x().get_number() == &BigInt::from(0) && self.get_y().get_number() == &BigInt::from(0) ){ [INFO] [stdout] 184 + if self.get_x().get_number() == &BigInt::from(0) && self.get_y().get_number() == &BigInt::from(0) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/elliptic_curve/point/point.rs:190:17 [INFO] [stdout] | [INFO] [stdout] 190 | else if (self.get_x() == other.get_x() && self.get_y() == other.get_y()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 190 - else if (self.get_x() == other.get_x() && self.get_y() == other.get_y()){ [INFO] [stdout] 190 + else if self.get_x() == other.get_x() && self.get_y() == other.get_y() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/elliptic_curve/point/point.rs:223:17 [INFO] [stdout] | [INFO] [stdout] 223 | else if (self.get_x() == other.get_x() && self.get_y() == other.get_y()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 223 - else if (self.get_x() == other.get_x() && self.get_y() == other.get_y()){ [INFO] [stdout] 223 + else if self.get_x() == other.get_x() && self.get_y() == other.get_y() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PointAffine` and `PointProjective` [INFO] [stdout] --> src/elliptic_curve/point/pointTraits.rs:1:43 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::elliptic_curve::point::point::{PointAffine,PointProjective}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::elliptic_curve::field::FieldElement` [INFO] [stdout] --> src/elliptic_curve/point/pointTraits.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::elliptic_curve::field::FieldElement; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num_bigint::BigInt` [INFO] [stdout] --> src/elliptic_curve/point/pointTraits.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use num_bigint::BigInt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `One` and `Zero` [INFO] [stdout] --> src/elliptic_curve/point/pointTraits.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use num_traits::{Zero,One}; [INFO] [stdout] | ^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::elliptic_curve::field_traits::FieldElementTraits` [INFO] [stdout] --> src/elliptic_curve/curve.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::elliptic_curve::field_traits::FieldElementTraits; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num_bigint::BigInt` [INFO] [stdout] --> src/elliptic_curve/curve.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use num_bigint::BigInt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `One` and `Zero` [INFO] [stdout] --> src/elliptic_curve/curve.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use num_traits::{Zero,One}; [INFO] [stdout] | ^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Add` and `Sub` [INFO] [stdout] --> src/elliptic_curve/curve.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | use std::ops::{Add,Sub}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `format` [INFO] [stdout] --> src/polynomials/polynomial.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use std::fmt::{self, format}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/polynomials/polynomial.rs:30:38 [INFO] [stdout] | [INFO] [stdout] 30 | result.coefficients[i] = (result.coefficients[i].clone() + self.coefficients[i].clone()); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 30 - result.coefficients[i] = (result.coefficients[i].clone() + self.coefficients[i].clone()); [INFO] [stdout] 30 + result.coefficients[i] = result.coefficients[i].clone() + self.coefficients[i].clone(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/polynomials/polynomial.rs:34:38 [INFO] [stdout] | [INFO] [stdout] 34 | result.coefficients[i] = (&result.coefficients[i] + &other.coefficients[i]); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 34 - result.coefficients[i] = (&result.coefficients[i] + &other.coefficients[i]); [INFO] [stdout] 34 + result.coefficients[i] = &result.coefficients[i] + &other.coefficients[i]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `One` [INFO] [stdout] --> src/elliptic_curve/point/point.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use num_traits::{One, Zero}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Zero` [INFO] [stdout] --> src/elliptic_curve/point/point.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use num_traits::{One, Zero}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `One` [INFO] [stdout] --> src/elliptic_curve/point/point.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use num_traits::{One, Zero}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Zero` [INFO] [stdout] --> src/elliptic_curve/point/point.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use num_traits::{One, Zero}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CurveElement` is never constructed [INFO] [stdout] --> src/elliptic_curve/curve.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct CurveElement{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Polynomial` is never constructed [INFO] [stdout] --> src/polynomials/polynomial.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Polynomial{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `pointTraits` should have a snake case name [INFO] [stdout] --> src/elliptic_curve/point/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod pointTraits; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `point_traits` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Q` should have a snake case name [INFO] [stdout] --> src/elliptic_curve/point/point.rs:150:17 [INFO] [stdout] | [INFO] [stdout] 150 | let mut Q = self.clone(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `q` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `R` should have a snake case name [INFO] [stdout] --> src/elliptic_curve/point/point.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | let mut R = PointAffine{ [INFO] [stdout] | ^ help: convert the identifier to snake case: `r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CurveElement` is never constructed [INFO] [stdout] --> src/elliptic_curve/curve.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct CurveElement{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `pointTraits` should have a snake case name [INFO] [stdout] --> src/elliptic_curve/point/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod pointTraits; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `point_traits` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Q` should have a snake case name [INFO] [stdout] --> src/elliptic_curve/point/point.rs:150:17 [INFO] [stdout] | [INFO] [stdout] 150 | let mut Q = self.clone(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `q` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `R` should have a snake case name [INFO] [stdout] --> src/elliptic_curve/point/point.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | let mut R = PointAffine{ [INFO] [stdout] | ^ help: convert the identifier to snake case: `r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.43s [INFO] running `Command { std: "docker" "inspect" "ef9279010d54747781b3477555b2f9bbe2ec6564116618b87dbafeef24aa011a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef9279010d54747781b3477555b2f9bbe2ec6564116618b87dbafeef24aa011a", kill_on_drop: false }` [INFO] [stdout] ef9279010d54747781b3477555b2f9bbe2ec6564116618b87dbafeef24aa011a [INFO] checking saitunc/naive_ecc against try#d856f2da3433420b7077c0dc7ee9441455bc1302 for pr-128013 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsaitunc%2Fnaive_ecc" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/saitunc/naive_ecc on toolchain d856f2da3433420b7077c0dc7ee9441455bc1302 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/saitunc/naive_ecc [INFO] finished tweaking git repo https://github.com/saitunc/naive_ecc [INFO] tweaked toml for git repo https://github.com/saitunc/naive_ecc written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/saitunc/naive_ecc 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" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 90a63a5d56777c3c57694975b204bc959dc003a972c1a4ebe260b2d846c26f80 [INFO] running `Command { std: "docker" "start" "-a" "90a63a5d56777c3c57694975b204bc959dc003a972c1a4ebe260b2d846c26f80", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "90a63a5d56777c3c57694975b204bc959dc003a972c1a4ebe260b2d846c26f80", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "90a63a5d56777c3c57694975b204bc959dc003a972c1a4ebe260b2d846c26f80", kill_on_drop: false }` [INFO] [stdout] 90a63a5d56777c3c57694975b204bc959dc003a972c1a4ebe260b2d846c26f80 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f2961c2f0a7a6eea363389e6c4031724586bcd545d32e2f9161852ae2a5b20e0 [INFO] running `Command { std: "docker" "start" "-a" "f2961c2f0a7a6eea363389e6c4031724586bcd545d32e2f9161852ae2a5b20e0", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Checking num-integer v0.1.45 [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.45/src/lib.rs:479:41 [INFO] [stdout] | [INFO] [stdout] 479 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 825 | impl_integer_for_isize!(i8, test_integer_i8); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.45/src/lib.rs:479:41 [INFO] [stdout] | [INFO] [stdout] 479 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 826 | impl_integer_for_isize!(i16, test_integer_i16); [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.45/src/lib.rs:479:41 [INFO] [stdout] | [INFO] [stdout] 479 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 827 | impl_integer_for_isize!(i32, test_integer_i32); [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.45/src/lib.rs:479:41 [INFO] [stdout] | [INFO] [stdout] 479 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 828 | impl_integer_for_isize!(i64, test_integer_i64); [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.45/src/lib.rs:479:41 [INFO] [stdout] | [INFO] [stdout] 479 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 829 | impl_integer_for_isize!(isize, test_integer_isize); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.45/src/lib.rs:479:41 [INFO] [stdout] | [INFO] [stdout] 479 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 831 | impl_integer_for_isize!(i128, test_integer_i128); [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0034`. [INFO] [stdout] [INFO] [stderr] error: could not compile `num-integer` (lib) due to 7 previous errors [INFO] running `Command { std: "docker" "inspect" "f2961c2f0a7a6eea363389e6c4031724586bcd545d32e2f9161852ae2a5b20e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f2961c2f0a7a6eea363389e6c4031724586bcd545d32e2f9161852ae2a5b20e0", kill_on_drop: false }` [INFO] [stdout] f2961c2f0a7a6eea363389e6c4031724586bcd545d32e2f9161852ae2a5b20e0