[INFO] cloning repository https://github.com/takus69/ahc048 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/takus69/ahc048" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftakus69%2Fahc048", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftakus69%2Fahc048'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7ea9ba2bfd2ec6534154116e2d9f523643300d09 [INFO] checking takus69/ahc048 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftakus69%2Fahc048" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/takus69/ahc048 [INFO] finished tweaking git repo https://github.com/takus69/ahc048 [INFO] tweaked toml for git repo https://github.com/takus69/ahc048 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/takus69/ahc048 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/takus69/ahc048 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded proconio v0.4.5 [INFO] [stderr] Downloaded ac-library-rs v0.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8ca9c7942f68ed03aca3b083b19a71a2b9e68cd9823f30ea149debb5a6388283 [INFO] running `Command { std: "docker" "start" "-a" "8ca9c7942f68ed03aca3b083b19a71a2b9e68cd9823f30ea149debb5a6388283", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8ca9c7942f68ed03aca3b083b19a71a2b9e68cd9823f30ea149debb5a6388283", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ca9c7942f68ed03aca3b083b19a71a2b9e68cd9823f30ea149debb5a6388283", kill_on_drop: false }` [INFO] [stdout] 8ca9c7942f68ed03aca3b083b19a71a2b9e68cd9823f30ea149debb5a6388283 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9fe357ee96c9edef344558c97a6cb342c7b53da056bd6ee1a5a1482fd38250f9 [INFO] running `Command { std: "docker" "start" "-a" "9fe357ee96c9edef344558c97a6cb342c7b53da056bd6ee1a5a1482fd38250f9", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking ac-library-rs v0.1.1 [INFO] [stderr] Checking proconio v0.4.5 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking ahc048 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `enumerate` [INFO] [stdout] --> src/main.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use itertools::{enumerate, Itertools}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/main.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `enumerate` [INFO] [stdout] --> src/main.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use itertools::{enumerate, Itertools}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/main.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:436:14 [INFO] [stdout] | [INFO] [stdout] 436 | for (i, &k) in [k1, k2, k3].iter().enumerate() { [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:533:13 [INFO] [stdout] | [INFO] [stdout] 533 | let mut color2 = if k2 == usize::MAX { [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: unused variable: `i` [INFO] [stdout] --> src/main.rs:629:14 [INFO] [stdout] | [INFO] [stdout] 629 | for (i, &target_color) in self.target.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `opt_color` is assigned to, but never used [INFO] [stdout] --> src/main.rs:634:21 [INFO] [stdout] | [INFO] [stdout] 634 | let mut opt_color = Color::new(0.0, 0.0, 0.0); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_opt_color` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `opt_color` is never read [INFO] [stdout] --> src/main.rs:648:33 [INFO] [stdout] | [INFO] [stdout] 648 | ... opt_color = color; [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: `i` [INFO] [stdout] --> src/main.rs:941:14 [INFO] [stdout] | [INFO] [stdout] 941 | for (i, &t) in self.target.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `three_paint_params` [INFO] [stdout] --> src/main.rs:1025:45 [INFO] [stdout] | [INFO] [stdout] 1025 | let (palette, actions, score, turn, three_paint_params) = self.three_paint(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_three_paint_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `two_paint_params` [INFO] [stdout] --> src/main.rs:1043:45 [INFO] [stdout] | [INFO] [stdout] 1043 | let (palette, actions, score, turn, two_paint_params) = self.two_paint2(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_two_paint_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `h` is never read [INFO] [stdout] --> src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 34 | struct Score { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 38 | h: usize, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Score` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `init2` is never used [INFO] [stdout] --> src/main.rs:326:8 [INFO] [stdout] | [INFO] [stdout] 294 | impl Palette4 { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 326 | fn init2(&self, n: usize) -> Palette { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `opt_paint` is never used [INFO] [stdout] --> src/main.rs:986:8 [INFO] [stdout] | [INFO] [stdout] 590 | impl Solver { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 986 | fn opt_paint(&self, three_paint_params: &Vec<(usize, usize, usize, f64, f64)>) -> (Palette, Vec, Score, usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:436:14 [INFO] [stdout] | [INFO] [stdout] 436 | for (i, &k) in [k1, k2, k3].iter().enumerate() { [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:533:13 [INFO] [stdout] | [INFO] [stdout] 533 | let mut color2 = if k2 == usize::MAX { [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: unused variable: `i` [INFO] [stdout] --> src/main.rs:629:14 [INFO] [stdout] | [INFO] [stdout] 629 | for (i, &target_color) in self.target.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `opt_color` is assigned to, but never used [INFO] [stdout] --> src/main.rs:634:21 [INFO] [stdout] | [INFO] [stdout] 634 | let mut opt_color = Color::new(0.0, 0.0, 0.0); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_opt_color` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `opt_color` is never read [INFO] [stdout] --> src/main.rs:648:33 [INFO] [stdout] | [INFO] [stdout] 648 | ... opt_color = color; [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: `i` [INFO] [stdout] --> src/main.rs:941:14 [INFO] [stdout] | [INFO] [stdout] 941 | for (i, &t) in self.target.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `three_paint_params` [INFO] [stdout] --> src/main.rs:1025:45 [INFO] [stdout] | [INFO] [stdout] 1025 | let (palette, actions, score, turn, three_paint_params) = self.three_paint(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_three_paint_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `two_paint_params` [INFO] [stdout] --> src/main.rs:1043:45 [INFO] [stdout] | [INFO] [stdout] 1043 | let (palette, actions, score, turn, two_paint_params) = self.two_paint2(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_two_paint_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `h` is never read [INFO] [stdout] --> src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 34 | struct Score { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 38 | h: usize, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Score` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `init2` is never used [INFO] [stdout] --> src/main.rs:326:8 [INFO] [stdout] | [INFO] [stdout] 294 | impl Palette4 { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 326 | fn init2(&self, n: usize) -> Palette { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `opt_paint` is never used [INFO] [stdout] --> src/main.rs:986:8 [INFO] [stdout] | [INFO] [stdout] 590 | impl Solver { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 986 | fn opt_paint(&self, three_paint_params: &Vec<(usize, usize, usize, f64, f64)>) -> (Palette, Vec, Score, usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.75s [INFO] running `Command { std: "docker" "inspect" "9fe357ee96c9edef344558c97a6cb342c7b53da056bd6ee1a5a1482fd38250f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9fe357ee96c9edef344558c97a6cb342c7b53da056bd6ee1a5a1482fd38250f9", kill_on_drop: false }` [INFO] [stdout] 9fe357ee96c9edef344558c97a6cb342c7b53da056bd6ee1a5a1482fd38250f9