[INFO] cloning repository https://github.com/sirati/prime-factor-intr [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sirati/prime-factor-intr" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsirati%2Fprime-factor-intr", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsirati%2Fprime-factor-intr'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 684914dd84c4ddab105019ccd30b452e77f4d4ff [INFO] checking sirati/prime-factor-intr against try#3298c2ca5e390fd0d104357fdeec514a152a9561 for pr-136490 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsirati%2Fprime-factor-intr" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sirati/prime-factor-intr on toolchain 3298c2ca5e390fd0d104357fdeec514a152a9561 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3298c2ca5e390fd0d104357fdeec514a152a9561" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sirati/prime-factor-intr [INFO] finished tweaking git repo https://github.com/sirati/prime-factor-intr [INFO] tweaked toml for git repo https://github.com/sirati/prime-factor-intr written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/sirati/prime-factor-intr 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" "+3298c2ca5e390fd0d104357fdeec514a152a9561" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+3298c2ca5e390fd0d104357fdeec514a152a9561" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3a04c4d48ed4d9c2a50117d7b245c77a423723bf13410ca437a4b5815faecd85 [INFO] running `Command { std: "docker" "start" "-a" "3a04c4d48ed4d9c2a50117d7b245c77a423723bf13410ca437a4b5815faecd85", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3a04c4d48ed4d9c2a50117d7b245c77a423723bf13410ca437a4b5815faecd85", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a04c4d48ed4d9c2a50117d7b245c77a423723bf13410ca437a4b5815faecd85", kill_on_drop: false }` [INFO] [stdout] 3a04c4d48ed4d9c2a50117d7b245c77a423723bf13410ca437a4b5815faecd85 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+3298c2ca5e390fd0d104357fdeec514a152a9561" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 03a53b5fca8d6daefa58150b78b155bf3fdc39a90ad7f70ea901fd467d72f8f3 [INFO] running `Command { std: "docker" "start" "-a" "03a53b5fca8d6daefa58150b78b155bf3fdc39a90ad7f70ea901fd467d72f8f3", kill_on_drop: false }` [INFO] [stderr] Checking PrimeFactorNumbers v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Once` and `once` [INFO] [stdout] --> src/main.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use std::iter::{once, Once}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Add`, `Div`, `IndexMut`, `Index`, and `Rem` [INFO] [stdout] --> src/main.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | use std::ops::{Add, Div, DivAssign, Index, IndexMut, Rem}; [INFO] [stdout] | ^^^ ^^^ ^^^^^ ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:70:16 [INFO] [stdout] | [INFO] [stdout] 70 | if (extra > 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 70 - if (extra > 1) { [INFO] [stdout] 70 + if extra > 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Once` and `once` [INFO] [stdout] --> src/main.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use std::iter::{once, Once}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Add`, `Div`, `IndexMut`, `Index`, and `Rem` [INFO] [stdout] --> src/main.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | use std::ops::{Add, Div, DivAssign, Index, IndexMut, Rem}; [INFO] [stdout] | ^^^ ^^^ ^^^^^ ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:70:16 [INFO] [stdout] | [INFO] [stdout] 70 | if (extra > 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 70 - if (extra > 1) { [INFO] [stdout] 70 + if extra > 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `first` is never read [INFO] [stdout] --> src/main.rs:72:21 [INFO] [stdout] | [INFO] [stdout] 72 | first = false; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | fn from(mut value: TNum) -> Self { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `first` is never read [INFO] [stdout] --> src/main.rs:72:21 [INFO] [stdout] | [INFO] [stdout] 72 | first = false; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slots` [INFO] [stdout] --> src/main.rs:456:23 [INFO] [stdout] | [INFO] [stdout] 456 | for ((slots, mask), offset) in LOW_PRIMES_SLOTS.iter() [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slots` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `multiply_with_overflow` is never used [INFO] [stdout] --> src/main.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 84 | impl PrimeFactorInteger { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 87 | fn multiply_with_overflow(self, other: Self) -> (Self, Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MASK_2` is never used [INFO] [stdout] --> src/main.rs:271:7 [INFO] [stdout] | [INFO] [stdout] 271 | const MASK_2: u64 = 0b1111; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MASK_3` is never used [INFO] [stdout] --> src/main.rs:272:7 [INFO] [stdout] | [INFO] [stdout] 272 | const MASK_3: u64 = 0b1110000; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MASK_5` is never used [INFO] [stdout] --> src/main.rs:273:7 [INFO] [stdout] | [INFO] [stdout] 273 | const MASK_5: u64 = 0b1110000000; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MASK_7` is never used [INFO] [stdout] --> src/main.rs:274:7 [INFO] [stdout] | [INFO] [stdout] 274 | const MASK_7: u64 = 0b110000000000; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MASK_11` is never used [INFO] [stdout] --> src/main.rs:275:7 [INFO] [stdout] | [INFO] [stdout] 275 | const MASK_11: u64 = 0b11000000000000; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MASK_13` is never used [INFO] [stdout] --> src/main.rs:276:7 [INFO] [stdout] | [INFO] [stdout] 276 | const MASK_13: u64 = 0b1100000000000000; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MASK_17` is never used [INFO] [stdout] --> src/main.rs:277:7 [INFO] [stdout] | [INFO] [stdout] 277 | const MASK_17: u64 = 0b110000000000000000; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MASK_19` is never used [INFO] [stdout] --> src/main.rs:278:7 [INFO] [stdout] | [INFO] [stdout] 278 | const MASK_19: u64 = 0b11000000000000000000; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MASK_23` is never used [INFO] [stdout] --> src/main.rs:279:7 [INFO] [stdout] | [INFO] [stdout] 279 | const MASK_23: u64 = 0b1100000000000000000000; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | fn from(mut value: TNum) -> Self { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MASK_HIGH_PRIMES` is never used [INFO] [stdout] --> src/main.rs:281:7 [INFO] [stdout] | [INFO] [stdout] 281 | const MASK_HIGH_PRIMES: u128 = ((!0)>> 24) & !(MASK_LOW_PRIMES as u128); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HIGH_PRIMES90` is never used [INFO] [stdout] --> src/main.rs:295:7 [INFO] [stdout] | [INFO] [stdout] 295 | const HIGH_PRIMES90: [u16; 90] = [29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137,... [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GIANT_FACTOR` is never used [INFO] [stdout] --> src/main.rs:296:7 [INFO] [stdout] | [INFO] [stdout] 296 | const GIANT_FACTOR: [u128; 5] = [232862364358497360900063316880507363070, 8295344602045799763963704586638166287, 177962823502182923352149... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GIANT_FACTOR_INDEX` is never used [INFO] [stdout] --> src/main.rs:297:7 [INFO] [stdout] | [INFO] [stdout] 297 | const GIANT_FACTOR_INDEX: [u8; 6] = [0, 18, 36, 53, 69, 82]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Fraction` is never constructed [INFO] [stdout] --> src/main.rs:336:8 [INFO] [stdout] | [INFO] [stdout] 336 | struct Fraction { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/main.rs:344:8 [INFO] [stdout] | [INFO] [stdout] 343 | impl Fraction { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 344 | fn new(nominator: i64, denominator: NonZeroU64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `simplify_faction` is never used [INFO] [stdout] --> src/main.rs:402:8 [INFO] [stdout] | [INFO] [stdout] 401 | impl PrimeFactorInteger { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] 402 | fn simplify_faction(self, denominator: Self) -> (Self, Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slots` [INFO] [stdout] --> src/main.rs:456:23 [INFO] [stdout] | [INFO] [stdout] 456 | for ((slots, mask), offset) in LOW_PRIMES_SLOTS.iter() [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slots` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `multiply_with_overflow` is never used [INFO] [stdout] --> src/main.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 84 | impl PrimeFactorInteger { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 87 | fn multiply_with_overflow(self, other: Self) -> (Self, Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MASK_2` is never used [INFO] [stdout] --> src/main.rs:271:7 [INFO] [stdout] | [INFO] [stdout] 271 | const MASK_2: u64 = 0b1111; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MASK_3` is never used [INFO] [stdout] --> src/main.rs:272:7 [INFO] [stdout] | [INFO] [stdout] 272 | const MASK_3: u64 = 0b1110000; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MASK_5` is never used [INFO] [stdout] --> src/main.rs:273:7 [INFO] [stdout] | [INFO] [stdout] 273 | const MASK_5: u64 = 0b1110000000; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MASK_7` is never used [INFO] [stdout] --> src/main.rs:274:7 [INFO] [stdout] | [INFO] [stdout] 274 | const MASK_7: u64 = 0b110000000000; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MASK_11` is never used [INFO] [stdout] --> src/main.rs:275:7 [INFO] [stdout] | [INFO] [stdout] 275 | const MASK_11: u64 = 0b11000000000000; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MASK_13` is never used [INFO] [stdout] --> src/main.rs:276:7 [INFO] [stdout] | [INFO] [stdout] 276 | const MASK_13: u64 = 0b1100000000000000; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MASK_17` is never used [INFO] [stdout] --> src/main.rs:277:7 [INFO] [stdout] | [INFO] [stdout] 277 | const MASK_17: u64 = 0b110000000000000000; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MASK_19` is never used [INFO] [stdout] --> src/main.rs:278:7 [INFO] [stdout] | [INFO] [stdout] 278 | const MASK_19: u64 = 0b11000000000000000000; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MASK_23` is never used [INFO] [stdout] --> src/main.rs:279:7 [INFO] [stdout] | [INFO] [stdout] 279 | const MASK_23: u64 = 0b1100000000000000000000; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Fraction` is never constructed [INFO] [stdout] --> src/main.rs:336:8 [INFO] [stdout] | [INFO] [stdout] 336 | struct Fraction { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/main.rs:344:8 [INFO] [stdout] | [INFO] [stdout] 343 | impl Fraction { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 344 | fn new(nominator: i64, denominator: NonZeroU64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.21s [INFO] running `Command { std: "docker" "inspect" "03a53b5fca8d6daefa58150b78b155bf3fdc39a90ad7f70ea901fd467d72f8f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "03a53b5fca8d6daefa58150b78b155bf3fdc39a90ad7f70ea901fd467d72f8f3", kill_on_drop: false }` [INFO] [stdout] 03a53b5fca8d6daefa58150b78b155bf3fdc39a90ad7f70ea901fd467d72f8f3