[INFO] cloning repository https://github.com/Teppi-txt/Polygon_Shader_but_Rust-factored
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Teppi-txt/Polygon_Shader_but_Rust-factored" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTeppi-txt%2FPolygon_Shader_but_Rust-factored", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTeppi-txt%2FPolygon_Shader_but_Rust-factored'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] b4ba7938cd188a40143df9d7d4b02e2c58737940
[INFO] building Teppi-txt/Polygon_Shader_but_Rust-factored against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTeppi-txt%2FPolygon_Shader_but_Rust-factored" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Teppi-txt/Polygon_Shader_but_Rust-factored
[INFO] finished tweaking git repo https://github.com/Teppi-txt/Polygon_Shader_but_Rust-factored
[INFO] tweaked toml for git repo https://github.com/Teppi-txt/Polygon_Shader_but_Rust-factored written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Teppi-txt/Polygon_Shader_but_Rust-factored on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Teppi-txt/Polygon_Shader_but_Rust-factored 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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 0fc19ff31f0246d36f6b81eca4e353b36833648e4eac25ce190c84c7cb772ad1
[INFO] running `Command { std: "docker" "start" "-a" "0fc19ff31f0246d36f6b81eca4e353b36833648e4eac25ce190c84c7cb772ad1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "0fc19ff31f0246d36f6b81eca4e353b36833648e4eac25ce190c84c7cb772ad1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0fc19ff31f0246d36f6b81eca4e353b36833648e4eac25ce190c84c7cb772ad1", kill_on_drop: false }`
[INFO] [stdout] 0fc19ff31f0246d36f6b81eca4e353b36833648e4eac25ce190c84c7cb772ad1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] fc4daea16bf39099434c3cb1f5db8e289572b6d5d7901096aa1e9883c1884d59
[INFO] running `Command { std: "docker" "start" "-a" "fc4daea16bf39099434c3cb1f5db8e289572b6d5d7901096aa1e9883c1884d59", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.126
[INFO] [stderr]    Compiling num-traits v0.2.15
[INFO] [stderr]    Compiling proc-macro2 v1.0.39
[INFO] [stderr]    Compiling scopeguard v1.1.0
[INFO] [stderr]    Compiling unicode-ident v1.0.0
[INFO] [stderr]    Compiling crossbeam-utils v0.8.8
[INFO] [stderr]    Compiling memoffset v0.6.5
[INFO] [stderr]    Compiling syn v1.0.95
[INFO] [stderr]    Compiling crossbeam-epoch v0.9.8
[INFO] [stderr]    Compiling num-integer v0.1.45
[INFO] [stderr]    Compiling rayon-core v1.9.3
[INFO] [stderr]    Compiling lock_api v0.4.7
[INFO] [stderr]    Compiling num-bigint v0.4.3
[INFO] [stderr]    Compiling crc32fast v1.3.2
[INFO] [stderr]    Compiling getrandom v0.1.16
[INFO] [stderr]    Compiling num-rational v0.4.0
[INFO] [stderr]    Compiling rayon v1.5.3
[INFO] [stderr]    Compiling futures-core v0.3.21
[INFO] [stderr]    Compiling either v1.6.1
[INFO] [stderr]    Compiling ppv-lite86 v0.2.16
[INFO] [stderr]    Compiling bytemuck v1.9.1
[INFO] [stderr]    Compiling miniz_oxide v0.5.1
[INFO] [stderr]    Compiling num-iter v0.1.43
[INFO] [stderr]    Compiling deflate v1.0.0
[INFO] [stderr]    Compiling futures-sink v0.3.21
[INFO] [stderr]    Compiling weezl v0.1.6
[INFO] [stderr]    Compiling typenum v1.15.0
[INFO] [stderr]    Compiling inflate v0.4.5
[INFO] [stderr]    Compiling safe_arch v0.6.0
[INFO] [stderr]    Compiling ttf-parser v0.6.2
[INFO] [stderr]    Compiling lebe v0.5.1
[INFO] [stderr]    Compiling serde_derive v1.0.137
[INFO] [stderr]    Compiling bit_field v0.10.1
[INFO] [stderr]    Compiling paste v1.0.7
[INFO] [stderr]    Compiling crossbeam-channel v0.5.4
[INFO] [stderr]    Compiling spin v0.9.3
[INFO] [stderr]    Compiling wide v0.7.4
[INFO] [stderr]    Compiling half v1.8.2
[INFO] [stderr]    Compiling gcc v0.3.55
[INFO] [stderr]    Compiling crossbeam-deque v0.8.1
[INFO] [stderr]    Compiling serde v1.0.137
[INFO] [stderr]    Compiling smallvec v1.8.0
[INFO] [stderr]    Compiling gif v0.11.3
[INFO] [stderr]    Compiling matrixmultiply v0.3.2
[INFO] [stderr]    Compiling ab_glyph_rasterizer v0.1.5
[INFO] [stderr]    Compiling scoped_threadpool v0.1.9
[INFO] [stderr]    Compiling png v0.17.5
[INFO] [stderr]    Compiling custom_derive v0.1.7
[INFO] [stderr]    Compiling quote v1.0.18
[INFO] [stderr]    Compiling byteorder v1.4.3
[INFO] [stderr]    Compiling getrandom v0.2.6
[INFO] [stderr]    Compiling num_cpus v1.13.1
[INFO] [stderr]    Compiling num-complex v0.4.1
[INFO] [stderr]    Compiling nanorand v0.7.0
[INFO] [stderr]    Compiling flate2 v1.0.23
[INFO] [stderr]    Compiling approx v0.5.1
[INFO] [stderr]    Compiling rand_core v0.5.1
[INFO] [stderr]    Compiling threadpool v1.8.1
[INFO] [stderr]    Compiling rustlearn v0.5.0
[INFO] [stderr]    Compiling owned_ttf_parser v0.6.0
[INFO] [stderr]    Compiling rand_core v0.6.3
[INFO] [stderr]    Compiling rand v0.4.6
[INFO] [stderr]    Compiling rusttype v0.9.2
[INFO] [stderr]    Compiling conv v0.3.3
[INFO] [stderr]    Compiling rand_chacha v0.2.2
[INFO] [stderr]    Compiling simba v0.7.1
[INFO] [stderr]    Compiling itertools v0.10.3
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling rand v0.7.3
[INFO] [stderr]    Compiling crossbeam v0.2.12
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling rand v0.3.23
[INFO] [stderr]    Compiling rand_distr v0.2.2
[INFO] [stderr]    Compiling jpeg-decoder v0.2.6
[INFO] [stderr]    Compiling num v0.4.0
[INFO] [stderr]    Compiling tiff v0.7.2
[INFO] [stderr]    Compiling pin-project-internal v1.0.10
[INFO] [stderr]    Compiling pin-project v1.0.10
[INFO] [stderr]    Compiling flume v0.10.12
[INFO] [stderr]    Compiling exr v1.4.2
[INFO] [stderr]    Compiling nalgebra v0.30.1
[INFO] [stderr]    Compiling image v0.24.2
[INFO] [stderr]    Compiling imageproc v0.23.0
[INFO] [stderr]    Compiling polygon_shader v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::io::Cursor`
[INFO] [stdout]  --> src/main.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::io::Cursor;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]  --> src/main.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::env;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ImageFormat`, `imageops::FilterType`, and `io::Reader`
[INFO] [stdout]  --> src/main.rs:3:13
[INFO] [stdout]   |
[INFO] [stdout] 3 | use image::{imageops::FilterType, ImageFormat, io::Reader, open};
[INFO] [stdout]   |             ^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `draw_filled_ellipse_mut`
[INFO] [stdout]  --> src/main.rs:6:42
[INFO] [stdout]   |
[INFO] [stdout] 6 | use imageproc::drawing::{draw_cross_mut, draw_filled_ellipse_mut, draw_filled_circle_mut, draw_filled_rect_mut, draw_polygon_mut};
[INFO] [stdout]   |                                          ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Rng` and `thread_rng`
[INFO] [stdout]  --> src/main.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | use rand::{thread_rng, Rng};
[INFO] [stdout]   |            ^^^^^^^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::path::PathBuf`
[INFO] [stdout]  --> src/main.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use std::path::PathBuf;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around type
[INFO] [stdout]   --> src/shape_gen.rs:45:39
[INFO] [stdout]    |
[INFO] [stdout] 45 | pub fn shift_shape_data(old_data: Vec<((i32, i32))>) -> Vec<((i32, i32))> {
[INFO] [stdout]    |                                       ^          ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 45 - pub fn shift_shape_data(old_data: Vec<((i32, i32))>) -> Vec<((i32, i32))> {
[INFO] [stdout] 45 + pub fn shift_shape_data(old_data: Vec<(i32, i32)>) -> Vec<((i32, i32))> {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around type
[INFO] [stdout]   --> src/shape_gen.rs:45:61
[INFO] [stdout]    |
[INFO] [stdout] 45 | pub fn shift_shape_data(old_data: Vec<((i32, i32))>) -> Vec<((i32, i32))> {
[INFO] [stdout]    |                                                             ^          ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 45 - pub fn shift_shape_data(old_data: Vec<((i32, i32))>) -> Vec<((i32, i32))> {
[INFO] [stdout] 45 + pub fn shift_shape_data(old_data: Vec<((i32, i32))>) -> Vec<(i32, i32)> {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around closure body
[INFO] [stdout]  --> src/math.rs:2:62
[INFO] [stdout]   |
[INFO] [stdout] 2 |     let mut mse: f64 = image.iter().zip(target).map(|(a, b)| ((*a as f64 - b as f64).powf(2.0))).sum();
[INFO] [stdout]   |                                                              ^                                ^
[INFO] [stdout]   |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]   |
[INFO] [stdout] 2 -     let mut mse: f64 = image.iter().zip(target).map(|(a, b)| ((*a as f64 - b as f64).powf(2.0))).sum();
[INFO] [stdout] 2 +     let mut mse: f64 = image.iter().zip(target).map(|(a, b)| (*a as f64 - b as f64).powf(2.0)).sum();
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `point`
[INFO] [stdout]   --> src/shape_gen.rs:23:17
[INFO] [stdout]    |
[INFO] [stdout] 23 |             for point in 1..=rng.gen_range(3..=4) {
[INFO] [stdout]    |                 ^^^^^ help: if this is intentional, prefix it with an underscore: `_point`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `target_image`
[INFO] [stdout]   --> src/main.rs:21:9
[INFO] [stdout]    |
[INFO] [stdout] 21 |     let target_image = open("src/input/img.png").unwrap();
[INFO] [stdout]    |         ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_image`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]   --> src/main.rs:31:10
[INFO] [stdout]    |
[INFO] [stdout] 31 |     for (x, y, pixel) in imgbuf.enumerate_pixels_mut() {
[INFO] [stdout]    |          ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `y`
[INFO] [stdout]   --> src/main.rs:31:13
[INFO] [stdout]    |
[INFO] [stdout] 31 |     for (x, y, pixel) in imgbuf.enumerate_pixels_mut() {
[INFO] [stdout]    |             ^ help: if this is intentional, prefix it with an underscore: `_y`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]   --> src/main.rs:37:9
[INFO] [stdout]    |
[INFO] [stdout] 37 |     for i in 0..10{
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `shape`
[INFO] [stdout]   --> src/main.rs:49:9
[INFO] [stdout]    |
[INFO] [stdout] 49 |     for shape in 0..=shapes_per_gen {
[INFO] [stdout]    |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_shape`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `gen`
[INFO] [stdout]   --> src/main.rs:57:9
[INFO] [stdout]    |
[INFO] [stdout] 57 |     for gen in 0..child_n {
[INFO] [stdout]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_gen`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]  --> src/math.rs:2:9
[INFO] [stdout]   |
[INFO] [stdout] 2 |     let mut mse: f64 = image.iter().zip(target).map(|(a, b)| ((*a as f64 - b as f64).powf(2.0))).sum();
[INFO] [stdout]   |         ----^^^
[INFO] [stdout]   |         |
[INFO] [stdout]   |         help: remove this `mut`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `child`
[INFO] [stdout]   --> src/main.rs:99:13
[INFO] [stdout]    |
[INFO] [stdout] 99 |         for child in 0..child_n{
[INFO] [stdout]    |             ^^^^^ help: if this is intentional, prefix it with an underscore: `_child`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:43:9
[INFO] [stdout]    |
[INFO] [stdout] 43 |     let mut image = open("src/output/output.png").unwrap();
[INFO] [stdout]    |         ----^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:68:9
[INFO] [stdout]    |
[INFO] [stdout] 68 |     let mut target_image = open("src/input/img.png").unwrap();
[INFO] [stdout]    |         ----^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_mean_point` is never used
[INFO] [stdout]  --> src/math.rs:8:8
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub fn get_mean_point(shape_type: i32, shape_data: Vec<(i32, i32)>) -> (i32, i32) {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 02s
[INFO] running `Command { std: "docker" "inspect" "fc4daea16bf39099434c3cb1f5db8e289572b6d5d7901096aa1e9883c1884d59", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fc4daea16bf39099434c3cb1f5db8e289572b6d5d7901096aa1e9883c1884d59", kill_on_drop: false }`
[INFO] [stdout] fc4daea16bf39099434c3cb1f5db8e289572b6d5d7901096aa1e9883c1884d59
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] e7d948eb7fa7b3624a311dcf39dc17140e15e526a6ab72426f2b1f456c8e56c4
[INFO] running `Command { std: "docker" "start" "-a" "e7d948eb7fa7b3624a311dcf39dc17140e15e526a6ab72426f2b1f456c8e56c4", kill_on_drop: false }`
[INFO] [stderr]    Compiling polygon_shader v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::io::Cursor`
[INFO] [stdout]  --> src/main.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::io::Cursor;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]  --> src/main.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::env;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ImageFormat`, `imageops::FilterType`, and `io::Reader`
[INFO] [stdout]  --> src/main.rs:3:13
[INFO] [stdout]   |
[INFO] [stdout] 3 | use image::{imageops::FilterType, ImageFormat, io::Reader, open};
[INFO] [stdout]   |             ^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `draw_filled_ellipse_mut`
[INFO] [stdout]  --> src/main.rs:6:42
[INFO] [stdout]   |
[INFO] [stdout] 6 | use imageproc::drawing::{draw_cross_mut, draw_filled_ellipse_mut, draw_filled_circle_mut, draw_filled_rect_mut, draw_polygon_mut};
[INFO] [stdout]   |                                          ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Rng` and `thread_rng`
[INFO] [stdout]  --> src/main.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | use rand::{thread_rng, Rng};
[INFO] [stdout]   |            ^^^^^^^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::path::PathBuf`
[INFO] [stdout]  --> src/main.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use std::path::PathBuf;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around type
[INFO] [stdout]   --> src/shape_gen.rs:45:39
[INFO] [stdout]    |
[INFO] [stdout] 45 | pub fn shift_shape_data(old_data: Vec<((i32, i32))>) -> Vec<((i32, i32))> {
[INFO] [stdout]    |                                       ^          ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 45 - pub fn shift_shape_data(old_data: Vec<((i32, i32))>) -> Vec<((i32, i32))> {
[INFO] [stdout] 45 + pub fn shift_shape_data(old_data: Vec<(i32, i32)>) -> Vec<((i32, i32))> {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around type
[INFO] [stdout]   --> src/shape_gen.rs:45:61
[INFO] [stdout]    |
[INFO] [stdout] 45 | pub fn shift_shape_data(old_data: Vec<((i32, i32))>) -> Vec<((i32, i32))> {
[INFO] [stdout]    |                                                             ^          ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 45 - pub fn shift_shape_data(old_data: Vec<((i32, i32))>) -> Vec<((i32, i32))> {
[INFO] [stdout] 45 + pub fn shift_shape_data(old_data: Vec<((i32, i32))>) -> Vec<(i32, i32)> {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around closure body
[INFO] [stdout]  --> src/math.rs:2:62
[INFO] [stdout]   |
[INFO] [stdout] 2 |     let mut mse: f64 = image.iter().zip(target).map(|(a, b)| ((*a as f64 - b as f64).powf(2.0))).sum();
[INFO] [stdout]   |                                                              ^                                ^
[INFO] [stdout]   |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]   |
[INFO] [stdout] 2 -     let mut mse: f64 = image.iter().zip(target).map(|(a, b)| ((*a as f64 - b as f64).powf(2.0))).sum();
[INFO] [stdout] 2 +     let mut mse: f64 = image.iter().zip(target).map(|(a, b)| (*a as f64 - b as f64).powf(2.0)).sum();
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `point`
[INFO] [stdout]   --> src/shape_gen.rs:23:17
[INFO] [stdout]    |
[INFO] [stdout] 23 |             for point in 1..=rng.gen_range(3..=4) {
[INFO] [stdout]    |                 ^^^^^ help: if this is intentional, prefix it with an underscore: `_point`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]  --> src/math.rs:2:9
[INFO] [stdout]   |
[INFO] [stdout] 2 |     let mut mse: f64 = image.iter().zip(target).map(|(a, b)| ((*a as f64 - b as f64).powf(2.0))).sum();
[INFO] [stdout]   |         ----^^^
[INFO] [stdout]   |         |
[INFO] [stdout]   |         help: remove this `mut`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `shape`
[INFO] [stdout]   --> src/main.rs:49:9
[INFO] [stdout]    |
[INFO] [stdout] 49 |     for shape in 0..=shapes_per_gen {
[INFO] [stdout]    |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_shape`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `gen`
[INFO] [stdout]   --> src/main.rs:57:9
[INFO] [stdout]    |
[INFO] [stdout] 57 |     for gen in 0..child_n {
[INFO] [stdout]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_gen`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `child`
[INFO] [stdout]   --> src/main.rs:99:13
[INFO] [stdout]    |
[INFO] [stdout] 99 |         for child in 0..child_n{
[INFO] [stdout]    |             ^^^^^ help: if this is intentional, prefix it with an underscore: `_child`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `target_image`
[INFO] [stdout]   --> src/main.rs:21:9
[INFO] [stdout]    |
[INFO] [stdout] 21 |     let target_image = open("src/input/img.png").unwrap();
[INFO] [stdout]    |         ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_image`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]   --> src/main.rs:31:10
[INFO] [stdout]    |
[INFO] [stdout] 31 |     for (x, y, pixel) in imgbuf.enumerate_pixels_mut() {
[INFO] [stdout]    |          ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `y`
[INFO] [stdout]   --> src/main.rs:31:13
[INFO] [stdout]    |
[INFO] [stdout] 31 |     for (x, y, pixel) in imgbuf.enumerate_pixels_mut() {
[INFO] [stdout]    |             ^ help: if this is intentional, prefix it with an underscore: `_y`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]   --> src/main.rs:37:9
[INFO] [stdout]    |
[INFO] [stdout] 37 |     for i in 0..10{
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:43:9
[INFO] [stdout]    |
[INFO] [stdout] 43 |     let mut image = open("src/output/output.png").unwrap();
[INFO] [stdout]    |         ----^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:68:9
[INFO] [stdout]    |
[INFO] [stdout] 68 |     let mut target_image = open("src/input/img.png").unwrap();
[INFO] [stdout]    |         ----^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_mean_point` is never used
[INFO] [stdout]  --> src/math.rs:8:8
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub fn get_mean_point(shape_type: i32, shape_data: Vec<(i32, i32)>) -> (i32, i32) {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 1.35s
[INFO] running `Command { std: "docker" "inspect" "e7d948eb7fa7b3624a311dcf39dc17140e15e526a6ab72426f2b1f456c8e56c4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e7d948eb7fa7b3624a311dcf39dc17140e15e526a6ab72426f2b1f456c8e56c4", kill_on_drop: false }`
[INFO] [stdout] e7d948eb7fa7b3624a311dcf39dc17140e15e526a6ab72426f2b1f456c8e56c4
