[INFO] updating cached repository https://github.com/CyclotomicFields/cyclotomic [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 77b8e7f210c4bf89a7354fa9cb568664403fe65e [INFO] checking CyclotomicFields/cyclotomic against try#c8bdaa84ec1b37f18f30375e196a65b7602f3790 for pr-73345 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCyclotomicFields%2Fcyclotomic" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/CyclotomicFields/cyclotomic on toolchain c8bdaa84ec1b37f18f30375e196a65b7602f3790 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+c8bdaa84ec1b37f18f30375e196a65b7602f3790" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/CyclotomicFields/cyclotomic [INFO] finished tweaking git repo https://github.com/CyclotomicFields/cyclotomic [INFO] tweaked toml for git repo https://github.com/CyclotomicFields/cyclotomic written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/CyclotomicFields/cyclotomic already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+c8bdaa84ec1b37f18f30375e196a65b7602f3790" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:6c9ffe128752d56c8d75334ed354142a5229917ed99767f56566dd8e857ad726" "/opt/rustwide/cargo-home/bin/cargo" "+c8bdaa84ec1b37f18f30375e196a65b7602f3790" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9ca2019890ad602a7060ad02b197ffa01e9e8c45a1fe0671d961d4b78e838279 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "9ca2019890ad602a7060ad02b197ffa01e9e8c45a1fe0671d961d4b78e838279", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9ca2019890ad602a7060ad02b197ffa01e9e8c45a1fe0671d961d4b78e838279", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ca2019890ad602a7060ad02b197ffa01e9e8c45a1fe0671d961d4b78e838279", kill_on_drop: false }` [INFO] [stdout] 9ca2019890ad602a7060ad02b197ffa01e9e8c45a1fe0671d961d4b78e838279 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:6c9ffe128752d56c8d75334ed354142a5229917ed99767f56566dd8e857ad726" "/opt/rustwide/cargo-home/bin/cargo" "+c8bdaa84ec1b37f18f30375e196a65b7602f3790" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 7b6d2e7f03661879ad283f2f7c90a69ebc45f595757c0cea0d7e118d3dfec818 [INFO] running `Command { std: "docker" "start" "-a" "7b6d2e7f03661879ad283f2f7c90a69ebc45f595757c0cea0d7e118d3dfec818", kill_on_drop: false }` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling libc v0.2.71 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Checking combinations v0.1.0 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling num-iter v0.1.40 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Checking regex v1.3.9 [INFO] [stderr] Checking log v0.4.8 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking quickcheck v0.9.2 [INFO] [stderr] Checking num v0.2.1 [INFO] [stderr] Checking divisors v0.2.1 [INFO] [stderr] Checking cyclotomic v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `BigInt` [INFO] [stdout] --> src/divisors/divisors.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use self::num::{BigInt}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BigInt`, `BigRational` [INFO] [stdout] --> src/divisors/library_divisors.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use self::num::{BigInt, BigRational, Zero, ToPrimitive}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BigInt`, `BigRational`, `ToPrimitive`, `Zero` [INFO] [stdout] --> src/prime_factors/recursive_prime_factorize.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | use self::num::{BigInt, BigRational, ToPrimitive, Zero, One}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/coprime_counter/hybrid_coprime_counter.rs:60:30 [INFO] [stdout] | [INFO] [stdout] 60 | let n_over_two = (n.div(&Z::from(2))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::pow::pow` [INFO] [stdout] --> src/polynomial.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use num::pow::pow; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BigInt`, `BigRational`, `Integer`, `ToPrimitive` [INFO] [stdout] --> src/polynomial.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use self::num::{BigInt, BigRational, Zero, ToPrimitive, Integer, One}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::divisors::divisors` [INFO] [stdout] --> src/polynomial.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::divisors::divisors; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `quickcheck::Arbitrary` [INFO] [stdout] --> src/fields/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use quickcheck::Arbitrary; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arbitrary`, `Gen` [INFO] [stdout] --> src/fields/naive.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | use quickcheck::{Arbitrary, Gen}; [INFO] [stdout] | ^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/fields/naive.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Product` [INFO] [stdout] --> src/fields/naive.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::iter::Product; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/primes/primes.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/prime_counter/legendre.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/prime_counter/meissel.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/prime_counter/lehmer.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BigInt` [INFO] [stdout] --> src/divisors/divisors.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use self::num::{BigInt}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BigRational` [INFO] [stdout] --> src/divisors/library_divisors.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | use self::num::{BigInt, BigRational, Zero, ToPrimitive}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BigRational`, `ToPrimitive`, `Zero` [INFO] [stdout] --> src/prime_factors/recursive_prime_factorize.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | use self::num::{BigInt, BigRational, ToPrimitive, Zero, One}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/coprime_counter/hybrid_coprime_counter.rs:60:30 [INFO] [stdout] | [INFO] [stdout] 60 | let n_over_two = (n.div(&Z::from(2))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::pow::pow` [INFO] [stdout] --> src/polynomial.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use num::pow::pow; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BigRational`, `Integer`, `ToPrimitive` [INFO] [stdout] --> src/polynomial.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use self::num::{BigInt, BigRational, Zero, ToPrimitive, Integer, One}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::divisors::divisors` [INFO] [stdout] --> src/polynomial.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::divisors::divisors; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `quickcheck::Arbitrary` [INFO] [stdout] --> src/fields/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use quickcheck::Arbitrary; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Product` [INFO] [stdout] --> src/fields/naive.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::iter::Product; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/fields/naive.rs:410:17 [INFO] [stdout] | [INFO] [stdout] 410 | for i in 0..*times { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `v_counts` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/fields/naive.rs:295:9 [INFO] [stdout] | [INFO] [stdout] 294 | let current_count = v_counts.get(&(*elem as i64)).unwrap_or(&0); [INFO] [stdout] | -------- immutable borrow occurs here [INFO] [stdout] 295 | v_counts.insert(*elem as i64, current_count + 1); [INFO] [stdout] | ^^^^^^^^ ------------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `ZPlus` [INFO] [stdout] --> src/primes/prime_table.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | type ZPlus = u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `PrimeTableReader` [INFO] [stdout] --> src/primes/prime_table.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct PrimeTableReader<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/primes/prime_table.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(directory_path: &Path) -> PrimeTableReader { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `first_million_from_file` [INFO] [stdout] --> src/primes/prime_table.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn first_million_from_file() -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `first_million_primes` [INFO] [stdout] --> src/primes/prime_table.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn first_million_primes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_primes_from_table` [INFO] [stdout] --> src/primes/prime_table.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | fn read_primes_from_table(primes_txt_content: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_primes_from_csv` [INFO] [stdout] --> src/primes/prime_table.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | fn read_primes_from_csv(primes_csv_content: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `R` [INFO] [stdout] --> src/primes/primes.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | type R = f64; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Z` [INFO] [stdout] --> src/primes/primes.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | type Z = i64; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `first_n` [INFO] [stdout] --> src/primes/primes.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn first_n(&self, n: ZPlus) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pi_range` [INFO] [stdout] --> src/primes/primes.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn pi_range(&self, lower_bound: ZPlus, upper_bound: ZPlus) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/prime_counter/legendre.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn new(primes: &Primes) -> Legendre { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `legendre_sum_phi` [INFO] [stdout] --> src/prime_counter/legendre.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn legendre_sum_phi(&self, x: R, a: ZPlus) -> Z { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/prime_counter/meissel.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn new(primes: &Primes) -> Meissel { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/prime_counter/lehmer.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn new(primes: &Primes) -> Lehmer { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/divisors/library_divisors.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new() -> LibraryDivisors { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/prime_factors/recursive_prime_factorize.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(divisors_strategy: D) -> RecursivePrimeFactorize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `default` [INFO] [stdout] --> src/prime_factors/recursive_prime_factorize.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn default() -> RecursivePrimeFactorize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Q` [INFO] [stdout] --> src/coprime_counter/hybrid_coprime_counter.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | type Q = num::rational::BigRational; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/coprime_counter/hybrid_coprime_counter.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(prime_factorizer: PF) -> HybridCoprimeCounter { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `default` [INFO] [stdout] --> src/coprime_counter/hybrid_coprime_counter.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn default() -> HybridCoprimeCounter> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Z` [INFO] [stdout] --> src/polynomial.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | type Z = num::bigint::BigInt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Q` [INFO] [stdout] --> src/polynomial.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | type Q = num::rational::BigRational; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `ZPlus` [INFO] [stdout] --> src/polynomial.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | type ZPlus = usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Polynomial` [INFO] [stdout] --> src/polynomial.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Polynomial { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/polynomial.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn new(coefficients: Vec, degrees: Vec) -> Polynomial { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `assert_sorted_ascending` [INFO] [stdout] --> src/polynomial.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | fn assert_sorted_ascending(vec: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `substitute` [INFO] [stdout] --> src/polynomial.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn substitute(&self, t: Q) -> Q { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_monic` [INFO] [stdout] --> src/polynomial.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn is_monic(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `degree` [INFO] [stdout] --> src/polynomial.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn degree(&self) -> ZPlus { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `leading_term_coefficient` [INFO] [stdout] --> src/polynomial.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn leading_term_coefficient(&self) -> &Z { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `constant_term_coefficient` [INFO] [stdout] --> src/polynomial.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn constant_term_coefficient(&self) -> &Z { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_irreducible_over_q` [INFO] [stdout] --> src/polynomial.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn is_irreducible_over_q(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_irreducible_by_eisenstein_criterion` [INFO] [stdout] --> src/polynomial.rs:187:8 [INFO] [stdout] | [INFO] [stdout] 187 | fn is_irreducible_by_eisenstein_criterion(&self, coefficients: &Vec, prime_factorizer: &impl PrimeFactorize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `are_coprime` [INFO] [stdout] --> src/fields/naive.rs:214:4 [INFO] [stdout] | [INFO] [stdout] 214 | fn are_coprime(x: &u64, y: &u64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `phi` [INFO] [stdout] --> src/fields/naive.rs:227:4 [INFO] [stdout] | [INFO] [stdout] 227 | fn phi(n: &u64) -> u64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `counts` [INFO] [stdout] --> src/fields/naive.rs:290:4 [INFO] [stdout] | [INFO] [stdout] 290 | fn counts(v: &Vec) -> HashMap { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `math_mod` [INFO] [stdout] --> src/fields/naive.rs:301:4 [INFO] [stdout] | [INFO] [stdout] 301 | fn math_mod(x: &i64, n: &i64) -> i64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_in_basis` [INFO] [stdout] --> src/fields/naive.rs:305:4 [INFO] [stdout] | [INFO] [stdout] 305 | fn is_in_basis(i: &i64, n: &i64, n_div_powers: &HashMap) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `gap_basis` [INFO] [stdout] --> src/fields/naive.rs:331:4 [INFO] [stdout] | [INFO] [stdout] 331 | fn gap_basis(n: &u64) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 53 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/fields/naive.rs:410:17 [INFO] [stdout] | [INFO] [stdout] 410 | for i in 0..*times { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `basis_45` [INFO] [stdout] --> src/fields/naive.rs:549:13 [INFO] [stdout] | [INFO] [stdout] 549 | let basis_45: HashSet = gap_basis(&45).into_iter().collect(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_basis_45` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expected` [INFO] [stdout] --> src/fields/naive.rs:550:13 [INFO] [stdout] | [INFO] [stdout] 550 | let expected: HashSet = vec![ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expected` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `v_counts` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/fields/naive.rs:295:9 [INFO] [stdout] | [INFO] [stdout] 294 | let current_count = v_counts.get(&(*elem as i64)).unwrap_or(&0); [INFO] [stdout] | -------- immutable borrow occurs here [INFO] [stdout] 295 | v_counts.insert(*elem as i64, current_count + 1); [INFO] [stdout] | ^^^^^^^^ ------------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `R` [INFO] [stdout] --> src/primes/primes.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | type R = f64; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Z` [INFO] [stdout] --> src/primes/primes.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | type Z = i64; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Q` [INFO] [stdout] --> src/coprime_counter/hybrid_coprime_counter.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | type Q = num::rational::BigRational; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `are_coprime` [INFO] [stdout] --> src/fields/naive.rs:214:4 [INFO] [stdout] | [INFO] [stdout] 214 | fn are_coprime(x: &u64, y: &u64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `phi` [INFO] [stdout] --> src/fields/naive.rs:227:4 [INFO] [stdout] | [INFO] [stdout] 227 | fn phi(n: &u64) -> u64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 15.82s [INFO] running `Command { std: "docker" "inspect" "7b6d2e7f03661879ad283f2f7c90a69ebc45f595757c0cea0d7e118d3dfec818", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7b6d2e7f03661879ad283f2f7c90a69ebc45f595757c0cea0d7e118d3dfec818", kill_on_drop: false }` [INFO] [stdout] 7b6d2e7f03661879ad283f2f7c90a69ebc45f595757c0cea0d7e118d3dfec818