[INFO] cloning repository https://github.com/TheNeikos/csidh [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TheNeikos/csidh" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTheNeikos%2Fcsidh", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTheNeikos%2Fcsidh'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4292327c7d0efbaed77663cdc032ab90020c0570 [INFO] testing TheNeikos/csidh against try#d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2 for pr-86479 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTheNeikos%2Fcsidh" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/TheNeikos/csidh on toolchain d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/TheNeikos/csidh [INFO] finished tweaking git repo https://github.com/TheNeikos/csidh [INFO] tweaked toml for git repo https://github.com/TheNeikos/csidh written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/TheNeikos/csidh already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ac5163bd0be53c20b08317d0121943c3c259193ee8e18690db23320495029d4d [INFO] running `Command { std: "docker" "start" "-a" "ac5163bd0be53c20b08317d0121943c3c259193ee8e18690db23320495029d4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ac5163bd0be53c20b08317d0121943c3c259193ee8e18690db23320495029d4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac5163bd0be53c20b08317d0121943c3c259193ee8e18690db23320495029d4d", kill_on_drop: false }` [INFO] [stdout] ac5163bd0be53c20b08317d0121943c3c259193ee8e18690db23320495029d4d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 91f5e67d28834e9cefcf831f2bc1b4773c760a2a85a11d824339e4889562acf3 [INFO] running `Command { std: "docker" "start" "-a" "91f5e67d28834e9cefcf831f2bc1b4773c760a2a85a11d824339e4889562acf3", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling rand_core v0.3.0 [INFO] [stderr] Compiling libc v0.2.45 [INFO] [stderr] Compiling byteorder v1.2.7 [INFO] [stderr] Compiling rand_xorshift v0.1.0 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling rand_pcg v0.1.1 [INFO] [stderr] Compiling rand_chacha v0.1.0 [INFO] [stderr] Compiling rand v0.6.1 [INFO] [stderr] Compiling csidh v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `Distribution` is imported redundantly [INFO] [stdout] --> src/csidh.rs:103:35 [INFO] [stdout] | [INFO] [stdout] 1 | use rand::prelude::*; [INFO] [stdout] | ---------------- the item `Distribution` is already imported here [INFO] [stdout] ... [INFO] [stdout] 103 | use rand::distributions::{Distribution, Uniform}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/galois.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new() -> LargeUint { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_bytes` [INFO] [stdout] --> src/galois.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn parse_bytes(s: &[u8]) -> LargeUint { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `contains` [INFO] [stdout] --> src/montgomery.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn contains(&self, p: &Point) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `recover` [INFO] [stdout] --> src/montgomery.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | fn recover(p: &Point, q: &ProjectivePoint, o: &ProjectivePoint) -> Point { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/montgomery.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn new(curve: Curve, x: LargeUint, y: LargeUint) -> Point { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply` [INFO] [stdout] --> src/montgomery.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn multiply(&self, k: &LargeUint) -> Point { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `projectivize` [INFO] [stdout] --> src/montgomery.rs:167:8 [INFO] [stdout] | [INFO] [stdout] 167 | fn projectivize(&self) -> ProjectivePoint { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unproject` [INFO] [stdout] --> src/montgomery.rs:184:8 [INFO] [stdout] | [INFO] [stdout] 184 | fn unproject(self) -> Point { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `ladder` [INFO] [stdout] --> src/montgomery.rs:289:12 [INFO] [stdout] | [INFO] [stdout] 289 | pub fn ladder(&self, a: &GaloisElement, k: &LargeUint) -> (ProjectivePoint, ProjectivePoint) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `double` [INFO] [stdout] --> src/montgomery.rs:334:12 [INFO] [stdout] | [INFO] [stdout] 334 | pub fn double(&self, a: &GaloisElement) -> ProjectivePoint { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `normalize` [INFO] [stdout] --> src/montgomery.rs:353:8 [INFO] [stdout] | [INFO] [stdout] 353 | fn normalize(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/galois.rs:333:9 [INFO] [stdout] | [INFO] [stdout] 333 | &other.inverse(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/bin/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 8.76s [INFO] running `Command { std: "docker" "inspect" "91f5e67d28834e9cefcf831f2bc1b4773c760a2a85a11d824339e4889562acf3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "91f5e67d28834e9cefcf831f2bc1b4773c760a2a85a11d824339e4889562acf3", kill_on_drop: false }` [INFO] [stdout] 91f5e67d28834e9cefcf831f2bc1b4773c760a2a85a11d824339e4889562acf3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b563dd0d34df1e93969106f38039a25798ea8aa37785bdd190eebb7c81cc4bd3 [INFO] running `Command { std: "docker" "start" "-a" "b563dd0d34df1e93969106f38039a25798ea8aa37785bdd190eebb7c81cc4bd3", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stdout] warning: the item `Distribution` is imported redundantly [INFO] [stdout] --> src/csidh.rs:103:35 [INFO] [stdout] | [INFO] [stdout] 1 | use rand::prelude::*; [INFO] [stdout] | ---------------- the item `Distribution` is already imported here [INFO] [stdout] ... [INFO] [stdout] 103 | use rand::distributions::{Distribution, Uniform}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/galois.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new() -> LargeUint { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling csidh v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: associated function is never used: `parse_bytes` [INFO] [stdout] --> src/galois.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn parse_bytes(s: &[u8]) -> LargeUint { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `contains` [INFO] [stdout] --> src/montgomery.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn contains(&self, p: &Point) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `recover` [INFO] [stdout] --> src/montgomery.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | fn recover(p: &Point, q: &ProjectivePoint, o: &ProjectivePoint) -> Point { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/montgomery.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn new(curve: Curve, x: LargeUint, y: LargeUint) -> Point { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply` [INFO] [stdout] --> src/montgomery.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn multiply(&self, k: &LargeUint) -> Point { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `projectivize` [INFO] [stdout] --> src/montgomery.rs:167:8 [INFO] [stdout] | [INFO] [stdout] 167 | fn projectivize(&self) -> ProjectivePoint { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unproject` [INFO] [stdout] --> src/montgomery.rs:184:8 [INFO] [stdout] | [INFO] [stdout] 184 | fn unproject(self) -> Point { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `ladder` [INFO] [stdout] --> src/montgomery.rs:289:12 [INFO] [stdout] | [INFO] [stdout] 289 | pub fn ladder(&self, a: &GaloisElement, k: &LargeUint) -> (ProjectivePoint, ProjectivePoint) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `double` [INFO] [stdout] --> src/montgomery.rs:334:12 [INFO] [stdout] | [INFO] [stdout] 334 | pub fn double(&self, a: &GaloisElement) -> ProjectivePoint { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `normalize` [INFO] [stdout] --> src/montgomery.rs:353:8 [INFO] [stdout] | [INFO] [stdout] 353 | fn normalize(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/galois.rs:333:9 [INFO] [stdout] | [INFO] [stdout] 333 | &other.inverse(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/bin/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Distribution` is imported redundantly [INFO] [stdout] --> src/csidh.rs:103:35 [INFO] [stdout] | [INFO] [stdout] 1 | use rand::prelude::*; [INFO] [stdout] | ---------------- the item `Distribution` is already imported here [INFO] [stdout] ... [INFO] [stdout] 103 | use rand::distributions::{Distribution, Uniform}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::global` [INFO] [stdout] --> src/montgomery.rs:364:9 [INFO] [stdout] | [INFO] [stdout] 364 | use crate::global; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/montgomery.rs:429:95 [INFO] [stdout] | [INFO] [stdout] 429 | let proj_other = other_point.projectivize().ladder2(&proj_c, &LargeUint::from_u64(3));; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/galois.rs:333:9 [INFO] [stdout] | [INFO] [stdout] 333 | &other.inverse(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.30s [INFO] running `Command { std: "docker" "inspect" "b563dd0d34df1e93969106f38039a25798ea8aa37785bdd190eebb7c81cc4bd3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b563dd0d34df1e93969106f38039a25798ea8aa37785bdd190eebb7c81cc4bd3", kill_on_drop: false }` [INFO] [stdout] b563dd0d34df1e93969106f38039a25798ea8aa37785bdd190eebb7c81cc4bd3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 6f3556bd7a4ec791b329afbc4f39fdf9a96b833b2fa3f9783ad462f409ca657e [INFO] running `Command { std: "docker" "start" "-a" "6f3556bd7a4ec791b329afbc4f39fdf9a96b833b2fa3f9783ad462f409ca657e", kill_on_drop: false }` [INFO] [stderr] warning: the item `Distribution` is imported redundantly [INFO] [stderr] --> src/csidh.rs:103:35 [INFO] [stderr] | [INFO] [stderr] 1 | use rand::prelude::*; [INFO] [stderr] | ---------------- the item `Distribution` is already imported here [INFO] [stderr] ... [INFO] [stderr] 103 | use rand::distributions::{Distribution, Uniform}; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/galois.rs:14:12 [INFO] [stderr] | [INFO] [stderr] 14 | pub fn new() -> LargeUint { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `parse_bytes` [INFO] [stderr] --> src/galois.rs:34:12 [INFO] [stderr] | [INFO] [stderr] 34 | pub fn parse_bytes(s: &[u8]) -> LargeUint { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `contains` [INFO] [stderr] --> src/montgomery.rs:18:12 [INFO] [stderr] | [INFO] [stderr] 18 | pub fn contains(&self, p: &Point) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `recover` [INFO] [stderr] --> src/montgomery.rs:25:8 [INFO] [stderr] | [INFO] [stderr] 25 | fn recover(p: &Point, q: &ProjectivePoint, o: &ProjectivePoint) -> Point { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/montgomery.rs:152:12 [INFO] [stderr] | [INFO] [stderr] 152 | pub fn new(curve: Curve, x: LargeUint, y: LargeUint) -> Point { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `multiply` [INFO] [stderr] --> src/montgomery.rs:161:12 [INFO] [stderr] | [INFO] [stderr] 161 | pub fn multiply(&self, k: &LargeUint) -> Point { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `projectivize` [INFO] [stderr] --> src/montgomery.rs:167:8 [INFO] [stderr] | [INFO] [stderr] 167 | fn projectivize(&self) -> ProjectivePoint { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `unproject` [INFO] [stderr] --> src/montgomery.rs:184:8 [INFO] [stderr] | [INFO] [stderr] 184 | fn unproject(self) -> Point { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `ladder` [INFO] [stderr] --> src/montgomery.rs:289:12 [INFO] [stderr] | [INFO] [stderr] 289 | pub fn ladder(&self, a: &GaloisElement, k: &LargeUint) -> (ProjectivePoint, ProjectivePoint) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `double` [INFO] [stderr] --> src/montgomery.rs:334:12 [INFO] [stderr] | [INFO] [stderr] 334 | pub fn double(&self, a: &GaloisElement) -> ProjectivePoint { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `normalize` [INFO] [stderr] --> src/montgomery.rs:353:8 [INFO] [stderr] | [INFO] [stderr] 353 | fn normalize(&mut self) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused borrow that must be used [INFO] [stderr] --> src/galois.rs:333:9 [INFO] [stderr] | [INFO] [stderr] 333 | &other.inverse(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `csidh` (lib) generated 13 warnings [INFO] [stderr] warning: unused import: `crate::global` [INFO] [stderr] --> src/montgomery.rs:364:9 [INFO] [stderr] | [INFO] [stderr] 364 | use crate::global; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/montgomery.rs:429:95 [INFO] [stderr] | [INFO] [stderr] 429 | let proj_other = other_point.projectivize().ladder2(&proj_c, &LargeUint::from_u64(3));; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `csidh` (lib test) generated 4 warnings (2 duplicates) [INFO] [stderr] warning: unused import: `std::fs::File` [INFO] [stderr] --> src/bin/main.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::fs::File; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `csidh` (bin "main" test) generated 1 warning [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/csidh-2418f1ae4661c72a) [INFO] [stdout] [INFO] [stdout] running 18 tests [INFO] [stdout] test galois::test::check_add ... ok [INFO] [stdout] test galois::test::check_add_impl ... ok [INFO] [stdout] test galois::test::check_bits ... ok [INFO] [stdout] test galois::test::check_enc_dec ... ok [INFO] [stdout] test galois::test::check_sub ... ok [INFO] [stdout] test galois::test::check_mul_impl ... ok [INFO] [stdout] test galois::test::check_parse ... ok [INFO] [stdout] test galois::test::check_mul ... ok [INFO] [stdout] test galois::test::check_sub_impl ... ok [INFO] [stdout] test global::test::check_bits ... ok [INFO] [stdout] test galois::test::check_pow ... ok [INFO] [stdout] test galois::test::check_inv ... ok [INFO] [stdout] test galois::test::check_div_impl ... ok [INFO] [stdout] test galois::test::check_complex_impl ... ok [INFO] [stdout] test montgomery::test::check_isogeny ... FAILED [INFO] [stdout] test galois::test::check_square ... ok [INFO] [stdout] test montgomery::test::check_ladder2 ... ok [INFO] [stderr] error: test failed, to rerun pass '--lib' [INFO] [stdout] test montgomery::test::check_mul ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- montgomery::test::check_isogeny stdout ---- [INFO] [stdout] thread 'montgomery::test::check_isogeny' panicked at 'assertion failed: Curve::right_side(&proj_c.x, &proj_point.x).is_square()', src/montgomery.rs:437:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x562af8bb20e0 - std::backtrace_rs::backtrace::libunwind::trace::h99dbb39dca18857d [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x562af8bb20e0 - std::backtrace_rs::backtrace::trace_unsynchronized::h832861927e9cfedf [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x562af8bb20e0 - std::sys_common::backtrace::_print_fmt::h3d18154c77dcf310 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x562af8bb20e0 - ::fmt::he312f4ad5b9bb346 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x562af8bd492c - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x562af8baf045 - std::io::Write::write_fmt::h65d36b96410d80d7 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/io/mod.rs:1665:15 [INFO] [stdout] 6: 0x562af8bb425b - std::sys_common::backtrace::_print::h65d996766de40da4 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x562af8bb425b - std::sys_common::backtrace::print::h40df9727e635f303 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x562af8bb425b - std::panicking::default_hook::{{closure}}::hd2da4327dea91a51 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x562af8bb3d6c - std::panicking::default_hook::h3d55120ad6ada158 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x562af8bb4924 - std::panicking::rust_panic_with_hook::hf85dd0bb545e3b55 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/panicking.rs:622:17 [INFO] [stdout] 11: 0x562af8bb43d7 - std::panicking::begin_panic_handler::{{closure}}::h736ae969434da9fa [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/panicking.rs:517:13 [INFO] [stdout] 12: 0x562af8bb25bc - std::sys_common::backtrace::__rust_end_short_backtrace::h6133bb80b1d6c3e0 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x562af8bb4369 - rust_begin_unwind [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x562af8b563b1 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x562af8b562fd - core::panicking::panic::hd695e3b1d0dd4ef4 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/core/src/panicking.rs:50:5 [INFO] [stdout] 16: 0x562af8b61cac - csidh::montgomery::test::check_isogeny::h0d2f6349be1ebcad [INFO] [stdout] at /opt/rustwide/workdir/src/montgomery.rs:437:9 [INFO] [stdout] 17: 0x562af8b6194a - csidh::montgomery::test::check_isogeny::{{closure}}::h6cc082d27495445f [INFO] [stdout] at /opt/rustwide/workdir/src/montgomery.rs:414:5 [INFO] [stdout] 18: 0x562af8b5ed6e - core::ops::function::FnOnce::call_once::h6d017011e4fe2c2b [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 19: 0x562af8b95e93 - core::ops::function::FnOnce::call_once::h227fa683a5745bd3 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 20: 0x562af8b95e93 - test::__rust_begin_short_backtrace::h3a193bd570ada00a [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/test/src/lib.rs:578:5 [INFO] [stdout] 21: 0x562af8b94908 - as core::ops::function::FnOnce>::call_once::h262d2f411717179a [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 22: 0x562af8b94908 - as core::ops::function::FnOnce<()>>::call_once::hfec00caec3e52a7b [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/panic.rs:347:9 [INFO] [stdout] 23: 0x562af8b94908 - std::panicking::try::do_call::ha5f42e76ffda569d [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/panicking.rs:401:40 [INFO] [stdout] 24: 0x562af8b94908 - std::panicking::try::h53f36df0935b9500 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/panicking.rs:365:19 [INFO] [stdout] 25: 0x562af8b94908 - std::panic::catch_unwind::h5a497f74b0ce006f [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/panic.rs:434:14 [INFO] [stdout] 26: 0x562af8b94908 - test::run_test_in_process::hab0aead337f48a88 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/test/src/lib.rs:601:18 [INFO] [stdout] 27: 0x562af8b94908 - test::run_test::run_test_inner::{{closure}}::h632c383164d4cba2 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/test/src/lib.rs:493:39 [INFO] [stdout] 28: 0x562af8b6308d - test::run_test::run_test_inner::{{closure}}::h7c4b3612891a4b58 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/test/src/lib.rs:520:37 [INFO] [stdout] 29: 0x562af8b6308d - std::sys_common::backtrace::__rust_begin_short_backtrace::habf7d8a08419d00e [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 30: 0x562af8b677b8 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h3acba502e2068204 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 31: 0x562af8b677b8 - as core::ops::function::FnOnce<()>>::call_once::h526ef819c1964a35 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/panic.rs:347:9 [INFO] [stdout] 32: 0x562af8b677b8 - std::panicking::try::do_call::hc0b5663d6373cec8 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/panicking.rs:401:40 [INFO] [stdout] 33: 0x562af8b677b8 - std::panicking::try::ha9007ede9d35dcd6 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/panicking.rs:365:19 [INFO] [stdout] 34: 0x562af8b677b8 - std::panic::catch_unwind::hf60d56329ebbb81c [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/panic.rs:434:14 [INFO] [stdout] 35: 0x562af8b677b8 - std::thread::Builder::spawn_unchecked::{{closure}}::hb1722d498f4ce777 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 36: 0x562af8b677b8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h15eb01325730c962 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 37: 0x562af8bb9497 - as core::ops::function::FnOnce>::call_once::h09f167e08fc945ff [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 38: 0x562af8bb9497 - as core::ops::function::FnOnce>::call_once::hf814fe85eeb118e0 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 39: 0x562af8bb9497 - std::sys::unix::thread::Thread::new::thread_start::hb71b17934c5f5e68 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/sys/unix/thread.rs:91:17 [INFO] [stdout] 40: 0x7f196eb25609 - start_thread [INFO] [stdout] 41: 0x7f196edb0293 - clone [INFO] [stdout] 42: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] montgomery::test::check_isogeny [INFO] [stdout] [INFO] [stdout] test result: FAILED. 17 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.28s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "6f3556bd7a4ec791b329afbc4f39fdf9a96b833b2fa3f9783ad462f409ca657e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f3556bd7a4ec791b329afbc4f39fdf9a96b833b2fa3f9783ad462f409ca657e", kill_on_drop: false }` [INFO] [stdout] 6f3556bd7a4ec791b329afbc4f39fdf9a96b833b2fa3f9783ad462f409ca657e