[INFO] cloning repository https://github.com/FredodaFred/RustGraphics
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/FredodaFred/RustGraphics" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFredodaFred%2FRustGraphics", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFredodaFred%2FRustGraphics'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 5f2b907fcc9100fc8b22c54f53266cd76e36a38e
[INFO] checking FredodaFred/RustGraphics against try#b1f2594eac607c1f051534800237eeedb5590a49 for pr-139493-3
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFredodaFred%2FRustGraphics" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/FredodaFred/RustGraphics
[INFO] finished tweaking git repo https://github.com/FredodaFred/RustGraphics
[INFO] tweaked toml for git repo https://github.com/FredodaFred/RustGraphics written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/FredodaFred/RustGraphics on toolchain b1f2594eac607c1f051534800237eeedb5590a49
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/FredodaFred/RustGraphics 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" "+b1f2594eac607c1f051534800237eeedb5590a49" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] dc0cf217c9f7967cecea048d68b078d75673064ff411f350e390ccf3c3cfe9b1
[INFO] running `Command { std: "docker" "start" "-a" "dc0cf217c9f7967cecea048d68b078d75673064ff411f350e390ccf3c3cfe9b1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "dc0cf217c9f7967cecea048d68b078d75673064ff411f350e390ccf3c3cfe9b1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "dc0cf217c9f7967cecea048d68b078d75673064ff411f350e390ccf3c3cfe9b1", kill_on_drop: false }`
[INFO] [stdout] dc0cf217c9f7967cecea048d68b078d75673064ff411f350e390ccf3c3cfe9b1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 3bf66bb6e35d47f51cbf155f337544290ef832b6e702f242bdfeb4c3f0e965d5
[INFO] running `Command { std: "docker" "start" "-a" "3bf66bb6e35d47f51cbf155f337544290ef832b6e702f242bdfeb4c3f0e965d5", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.146
[INFO] [stderr]    Compiling proc-macro2 v1.0.60
[INFO] [stderr]    Compiling quote v1.0.28
[INFO] [stderr]    Compiling pkg-config v0.3.27
[INFO] [stderr]    Compiling unicode-ident v1.0.9
[INFO] [stderr]    Compiling xml-rs v0.8.14
[INFO] [stderr]    Compiling memchr v2.5.0
[INFO] [stderr]     Checking once_cell v1.18.0
[INFO] [stderr]    Compiling io-lifetimes v1.0.11
[INFO] [stderr]     Checking downcast-rs v1.2.0
[INFO] [stderr]    Compiling rustix v0.37.20
[INFO] [stderr]     Checking libloading v0.8.0
[INFO] [stderr]     Checking scoped-tls v1.0.1
[INFO] [stderr]    Compiling tempfile v3.6.0
[INFO] [stderr]    Compiling cc v1.0.79
[INFO] [stderr]     Checking linux-raw-sys v0.3.8
[INFO] [stderr]     Checking fastrand v1.9.0
[INFO] [stderr]     Checking cty v0.2.2
[INFO] [stderr]     Checking raw-window-handle v0.4.3
[INFO] [stderr]     Checking dlib v0.5.2
[INFO] [stderr]     Checking nom v7.1.3
[INFO] [stderr]    Compiling wayland-sys v0.29.5
[INFO] [stderr]    Compiling x11-dl v2.21.0
[INFO] [stderr]    Compiling minifb v0.23.0
[INFO] [stderr]    Compiling wayland-scanner v0.29.5
[INFO] [stderr]     Checking nix v0.24.3
[INFO] [stderr]     Checking getrandom v0.2.10
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]    Compiling wayland-client v0.29.5
[INFO] [stderr]    Compiling wayland-protocols v0.29.5
[INFO] [stderr]     Checking xcursor v0.3.4
[INFO] [stderr]     Checking wayland-commons v0.29.5
[INFO] [stderr]     Checking wayland-cursor v0.29.5
[INFO] [stderr]     Checking gb3 v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `rand::prelude::*`
[INFO] [stdout]  --> src/main.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use rand::prelude::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]    --> src/main.rs:248:23
[INFO] [stdout]     |
[INFO] [stdout] 248 |         let dx_dy12 = (triangle.p1.x + triangle.p2.x);
[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] 248 -         let dx_dy12 = (triangle.p1.x + triangle.p2.x);
[INFO] [stdout] 248 +         let dx_dy12 = triangle.p1.x + triangle.p2.x ;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:275:9
[INFO] [stdout]     |
[INFO] [stdout] 275 |     let mut colors: Vec<Color> = Vec::new();
[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: `colors`
[INFO] [stdout]    --> src/main.rs:275:9
[INFO] [stdout]     |
[INFO] [stdout] 275 |     let mut colors: Vec<Color> = Vec::new();
[INFO] [stdout]     |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_colors`
[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/main.rs:114:42
[INFO] [stdout]     |
[INFO] [stdout] 114 |     fn draw_spiral(c1: Color, c2: Color, mut window: Window){
[INFO] [stdout]     |                                          ----^^^^^^
[INFO] [stdout]     |                                          |
[INFO] [stdout]     |                                          help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `c1`
[INFO] [stdout]    --> src/main.rs:114:20
[INFO] [stdout]     |
[INFO] [stdout] 114 |     fn draw_spiral(c1: Color, c2: Color, mut window: Window){
[INFO] [stdout]     |                    ^^ help: if this is intentional, prefix it with an underscore: `_c1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `window`
[INFO] [stdout]    --> src/main.rs:114:42
[INFO] [stdout]     |
[INFO] [stdout] 114 |     fn draw_spiral(c1: Color, c2: Color, mut window: Window){
[INFO] [stdout]     |                                          ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_window`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `buffer`
[INFO] [stdout]    --> src/main.rs:118:13
[INFO] [stdout]     |
[INFO] [stdout] 118 |         let buffer: Vec<u32> = vec![from_u8_rgb(c2); width * height];
[INFO] [stdout]     |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_buffer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `center_x`
[INFO] [stdout]    --> src/main.rs:121:13
[INFO] [stdout]     |
[INFO] [stdout] 121 |         let center_x: f64 =( width / 2) as f64;
[INFO] [stdout]     |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_center_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `center_y`
[INFO] [stdout]    --> src/main.rs:122:13
[INFO] [stdout]     |
[INFO] [stdout] 122 |         let center_y: f64 = (height / 2) as f64;
[INFO] [stdout]     |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_center_y`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rand::prelude::*`
[INFO] [stdout]  --> src/main.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use rand::prelude::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]    --> src/main.rs:248:23
[INFO] [stdout]     |
[INFO] [stdout] 248 |         let dx_dy12 = (triangle.p1.x + triangle.p2.x);
[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] 248 -         let dx_dy12 = (triangle.p1.x + triangle.p2.x);
[INFO] [stdout] 248 +         let dx_dy12 = triangle.p1.x + triangle.p2.x ;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:200:17
[INFO] [stdout]     |
[INFO] [stdout] 200 |             for mut square in squares.iter_mut() {
[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:229:46
[INFO] [stdout]     |
[INFO] [stdout] 229 |     fn draw_triangle(mut triangle: Triangle, mut window: Window){
[INFO] [stdout]     |                                              ----^^^^^^
[INFO] [stdout]     |                                              |
[INFO] [stdout]     |                                              help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `window`
[INFO] [stdout]    --> src/main.rs:229:46
[INFO] [stdout]     |
[INFO] [stdout] 229 |     fn draw_triangle(mut triangle: Triangle, mut window: Window){
[INFO] [stdout]     |                                              ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_window`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `temp1`
[INFO] [stdout]    --> src/main.rs:237:17
[INFO] [stdout]     |
[INFO] [stdout] 237 |             let temp1 = triangle.p1;
[INFO] [stdout]     |                 ^^^^^ help: if this is intentional, prefix it with an underscore: `_temp1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `temp2`
[INFO] [stdout]    --> src/main.rs:238:17
[INFO] [stdout]     |
[INFO] [stdout] 238 |             let temp2 = triangle.p2;
[INFO] [stdout]     |                 ^^^^^ help: if this is intentional, prefix it with an underscore: `_temp2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `dx_dy12`
[INFO] [stdout]    --> src/main.rs:248:13
[INFO] [stdout]     |
[INFO] [stdout] 248 |         let dx_dy12 = (triangle.p1.x + triangle.p2.x);
[INFO] [stdout]     |             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dx_dy12`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `byte`
[INFO] [stdout]    --> src/main.rs:254:13
[INFO] [stdout]     |
[INFO] [stdout] 254 |         for byte in buffer.iter_mut(){
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_byte`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]    --> src/main.rs:255:17
[INFO] [stdout]     |
[INFO] [stdout] 255 |             let x: usize = count % width;
[INFO] [stdout]     |                 ^
[INFO] [stdout]     |
[INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `a`
[INFO] [stdout]     |
[INFO] [stdout] 255 -             let x: usize = count % width;
[INFO] [stdout] 255 +             let main::draw_spiral::a: usize = count % width;
[INFO] [stdout]     |
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]     |
[INFO] [stdout] 255 |             let _x: usize = count % width;
[INFO] [stdout]     |                 +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `y`
[INFO] [stdout]    --> src/main.rs:256:17
[INFO] [stdout]     |
[INFO] [stdout] 256 |             let y: usize = count/width;
[INFO] [stdout]     |                 ^
[INFO] [stdout]     |
[INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `a`
[INFO] [stdout]     |
[INFO] [stdout] 256 -             let y: usize = count/width;
[INFO] [stdout] 256 +             let main::draw_spiral::a: usize = count/width;
[INFO] [stdout]     |
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]     |
[INFO] [stdout] 256 |             let _y: usize = count/width;
[INFO] [stdout]     |                 +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:263:26
[INFO] [stdout]     |
[INFO] [stdout] 263 |     fn rotating_triangle(mut window: Window){
[INFO] [stdout]     |                          ----^^^^^^
[INFO] [stdout]     |                          |
[INFO] [stdout]     |                          help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `window`
[INFO] [stdout]    --> src/main.rs:263:26
[INFO] [stdout]     |
[INFO] [stdout] 263 |     fn rotating_triangle(mut window: Window){
[INFO] [stdout]     |                          ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_window`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `byte`
[INFO] [stdout]    --> src/main.rs:267:13
[INFO] [stdout]     |
[INFO] [stdout] 267 |         for byte in buffer.iter_mut(){
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_byte`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]    --> src/main.rs:268:17
[INFO] [stdout]     |
[INFO] [stdout] 268 |             let x: usize = count % width;
[INFO] [stdout]     |                 ^
[INFO] [stdout]     |
[INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `a`
[INFO] [stdout]     |
[INFO] [stdout] 268 -             let x: usize = count % width;
[INFO] [stdout] 268 +             let main::draw_spiral::a: usize = count % width;
[INFO] [stdout]     |
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]     |
[INFO] [stdout] 268 |             let _x: usize = count % width;
[INFO] [stdout]     |                 +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `y`
[INFO] [stdout]    --> src/main.rs:269:17
[INFO] [stdout]     |
[INFO] [stdout] 269 |             let y: usize = count/width;
[INFO] [stdout]     |                 ^
[INFO] [stdout]     |
[INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `a`
[INFO] [stdout]     |
[INFO] [stdout] 269 -             let y: usize = count/width;
[INFO] [stdout] 269 +             let main::draw_spiral::a: usize = count/width;
[INFO] [stdout]     |
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]     |
[INFO] [stdout] 269 |             let _y: usize = count/width;
[INFO] [stdout]     |                 +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `difference` and `add` are never used
[INFO] [stdout]   --> src/main.rs:14:12
[INFO] [stdout]    |
[INFO] [stdout] 13 |     impl Color{
[INFO] [stdout]    |     ---------- methods in this implementation
[INFO] [stdout] 14 |         fn difference(&self, other: Color) -> Color{
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 17 |         fn add(&self, other: Color)->Color {
[INFO] [stdout]    |            ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BLACK` is never used
[INFO] [stdout]   --> src/main.rs:24:11
[INFO] [stdout]    |
[INFO] [stdout] 24 |     const BLACK: Color = Color{r: 0, g: 0, b: 0};
[INFO] [stdout]    |           ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `linear_gradient` is never used
[INFO] [stdout]   --> src/main.rs:39:8
[INFO] [stdout]    |
[INFO] [stdout] 39 |     fn linear_gradient(c1: Color, c2: Color, mut window: Window){
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `glowing_animation` is never used
[INFO] [stdout]   --> src/main.rs:63:8
[INFO] [stdout]    |
[INFO] [stdout] 63 |     fn glowing_animation(colors: Vec<Color>, milli_cycle: u64, mut window: Window){
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `draw_spiral` is never used
[INFO] [stdout]    --> src/main.rs:114:8
[INFO] [stdout]     |
[INFO] [stdout] 114 |     fn draw_spiral(c1: Color, c2: Color, mut window: Window){
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `draw_rect` is never used
[INFO] [stdout]    --> src/main.rs:140:8
[INFO] [stdout]     |
[INFO] [stdout] 140 |     fn draw_rect(rect: Rect, buffer: &mut Vec<u32>){     
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Rect` is never constructed
[INFO] [stdout]    --> src/main.rs:163:12
[INFO] [stdout]     |
[INFO] [stdout] 163 |     struct Rect{
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Triangle` is never constructed
[INFO] [stdout]    --> src/main.rs:223:12
[INFO] [stdout]     |
[INFO] [stdout] 223 |     struct Triangle{
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `draw_triangle` is never used
[INFO] [stdout]    --> src/main.rs:229:8
[INFO] [stdout]     |
[INFO] [stdout] 229 |     fn draw_triangle(mut triangle: Triangle, mut window: Window){
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `rotating_triangle` is never used
[INFO] [stdout]    --> src/main.rs:263:8
[INFO] [stdout]     |
[INFO] [stdout] 263 |     fn rotating_triangle(mut window: Window){
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `width` should have an upper case name
[INFO] [stdout]  --> src/main.rs:8:11
[INFO] [stdout]   |
[INFO] [stdout] 8 |     const width: usize= 1000;
[INFO] [stdout]   |           ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]   |
[INFO] [stdout] 8 -     const width: usize= 1000;
[INFO] [stdout] 8 +     const WIDTH: usize= 1000;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `height` should have an upper case name
[INFO] [stdout]  --> src/main.rs:9:11
[INFO] [stdout]   |
[INFO] [stdout] 9 |     const height: usize = 1000;
[INFO] [stdout]   |           ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]   |
[INFO] [stdout] 9 -     const height: usize = 1000;
[INFO] [stdout] 9 +     const HEIGHT: usize = 1000;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/main.rs:57:13
[INFO] [stdout]    |
[INFO] [stdout] 57 |             window.update_with_buffer(&buffer, width, height);
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 57 |             let _ = window.update_with_buffer(&buffer, width, height);
[INFO] [stdout]    |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `a` should have an upper case name
[INFO] [stdout]    --> src/main.rs:120:15
[INFO] [stdout]     |
[INFO] [stdout] 120 |         const a: usize = 3;
[INFO] [stdout]     |               ^ help: convert the identifier to upper case: `A`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:275:9
[INFO] [stdout]     |
[INFO] [stdout] 275 |     let mut colors: Vec<Color> = Vec::new();
[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: `colors`
[INFO] [stdout]    --> src/main.rs:275:9
[INFO] [stdout]     |
[INFO] [stdout] 275 |     let mut colors: Vec<Color> = Vec::new();
[INFO] [stdout]     |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_colors`
[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/main.rs:114:42
[INFO] [stdout]     |
[INFO] [stdout] 114 |     fn draw_spiral(c1: Color, c2: Color, mut window: Window){
[INFO] [stdout]     |                                          ----^^^^^^
[INFO] [stdout]     |                                          |
[INFO] [stdout]     |                                          help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `c1`
[INFO] [stdout]    --> src/main.rs:114:20
[INFO] [stdout]     |
[INFO] [stdout] 114 |     fn draw_spiral(c1: Color, c2: Color, mut window: Window){
[INFO] [stdout]     |                    ^^ help: if this is intentional, prefix it with an underscore: `_c1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `window`
[INFO] [stdout]    --> src/main.rs:114:42
[INFO] [stdout]     |
[INFO] [stdout] 114 |     fn draw_spiral(c1: Color, c2: Color, mut window: Window){
[INFO] [stdout]     |                                          ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_window`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `buffer`
[INFO] [stdout]    --> src/main.rs:118:13
[INFO] [stdout]     |
[INFO] [stdout] 118 |         let buffer: Vec<u32> = vec![from_u8_rgb(c2); width * height];
[INFO] [stdout]     |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_buffer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `center_x`
[INFO] [stdout]    --> src/main.rs:121:13
[INFO] [stdout]     |
[INFO] [stdout] 121 |         let center_x: f64 =( width / 2) as f64;
[INFO] [stdout]     |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_center_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `center_y`
[INFO] [stdout]    --> src/main.rs:122:13
[INFO] [stdout]     |
[INFO] [stdout] 122 |         let center_y: f64 = (height / 2) as f64;
[INFO] [stdout]     |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_center_y`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:200:17
[INFO] [stdout]     |
[INFO] [stdout] 200 |             for mut square in squares.iter_mut() {
[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:229:46
[INFO] [stdout]     |
[INFO] [stdout] 229 |     fn draw_triangle(mut triangle: Triangle, mut window: Window){
[INFO] [stdout]     |                                              ----^^^^^^
[INFO] [stdout]     |                                              |
[INFO] [stdout]     |                                              help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `window`
[INFO] [stdout]    --> src/main.rs:229:46
[INFO] [stdout]     |
[INFO] [stdout] 229 |     fn draw_triangle(mut triangle: Triangle, mut window: Window){
[INFO] [stdout]     |                                              ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_window`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `temp1`
[INFO] [stdout]    --> src/main.rs:237:17
[INFO] [stdout]     |
[INFO] [stdout] 237 |             let temp1 = triangle.p1;
[INFO] [stdout]     |                 ^^^^^ help: if this is intentional, prefix it with an underscore: `_temp1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `temp2`
[INFO] [stdout]    --> src/main.rs:238:17
[INFO] [stdout]     |
[INFO] [stdout] 238 |             let temp2 = triangle.p2;
[INFO] [stdout]     |                 ^^^^^ help: if this is intentional, prefix it with an underscore: `_temp2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `dx_dy12`
[INFO] [stdout]    --> src/main.rs:248:13
[INFO] [stdout]     |
[INFO] [stdout] 248 |         let dx_dy12 = (triangle.p1.x + triangle.p2.x);
[INFO] [stdout]     |             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dx_dy12`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `byte`
[INFO] [stdout]    --> src/main.rs:254:13
[INFO] [stdout]     |
[INFO] [stdout] 254 |         for byte in buffer.iter_mut(){
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_byte`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]    --> src/main.rs:255:17
[INFO] [stdout]     |
[INFO] [stdout] 255 |             let x: usize = count % width;
[INFO] [stdout]     |                 ^
[INFO] [stdout]     |
[INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `a`
[INFO] [stdout]     |
[INFO] [stdout] 255 -             let x: usize = count % width;
[INFO] [stdout] 255 +             let main::draw_spiral::a: usize = count % width;
[INFO] [stdout]     |
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]     |
[INFO] [stdout] 255 |             let _x: usize = count % width;
[INFO] [stdout]     |                 +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `y`
[INFO] [stdout]    --> src/main.rs:256:17
[INFO] [stdout]     |
[INFO] [stdout] 256 |             let y: usize = count/width;
[INFO] [stdout]     |                 ^
[INFO] [stdout]     |
[INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `a`
[INFO] [stdout]     |
[INFO] [stdout] 256 -             let y: usize = count/width;
[INFO] [stdout] 256 +             let main::draw_spiral::a: usize = count/width;
[INFO] [stdout]     |
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]     |
[INFO] [stdout] 256 |             let _y: usize = count/width;
[INFO] [stdout]     |                 +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:263:26
[INFO] [stdout]     |
[INFO] [stdout] 263 |     fn rotating_triangle(mut window: Window){
[INFO] [stdout]     |                          ----^^^^^^
[INFO] [stdout]     |                          |
[INFO] [stdout]     |                          help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `window`
[INFO] [stdout]    --> src/main.rs:263:26
[INFO] [stdout]     |
[INFO] [stdout] 263 |     fn rotating_triangle(mut window: Window){
[INFO] [stdout]     |                          ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_window`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `byte`
[INFO] [stdout]    --> src/main.rs:267:13
[INFO] [stdout]     |
[INFO] [stdout] 267 |         for byte in buffer.iter_mut(){
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_byte`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]    --> src/main.rs:268:17
[INFO] [stdout]     |
[INFO] [stdout] 268 |             let x: usize = count % width;
[INFO] [stdout]     |                 ^
[INFO] [stdout]     |
[INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `a`
[INFO] [stdout]     |
[INFO] [stdout] 268 -             let x: usize = count % width;
[INFO] [stdout] 268 +             let main::draw_spiral::a: usize = count % width;
[INFO] [stdout]     |
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]     |
[INFO] [stdout] 268 |             let _x: usize = count % width;
[INFO] [stdout]     |                 +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `y`
[INFO] [stdout]    --> src/main.rs:269:17
[INFO] [stdout]     |
[INFO] [stdout] 269 |             let y: usize = count/width;
[INFO] [stdout]     |                 ^
[INFO] [stdout]     |
[INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `a`
[INFO] [stdout]     |
[INFO] [stdout] 269 -             let y: usize = count/width;
[INFO] [stdout] 269 +             let main::draw_spiral::a: usize = count/width;
[INFO] [stdout]     |
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]     |
[INFO] [stdout] 269 |             let _y: usize = count/width;
[INFO] [stdout]     |                 +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `width` should have an upper case name
[INFO] [stdout]  --> src/main.rs:8:11
[INFO] [stdout]   |
[INFO] [stdout] 8 |     const width: usize= 1000;
[INFO] [stdout]   |           ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]   |
[INFO] [stdout] 8 -     const width: usize= 1000;
[INFO] [stdout] 8 +     const WIDTH: usize= 1000;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `height` should have an upper case name
[INFO] [stdout]  --> src/main.rs:9:11
[INFO] [stdout]   |
[INFO] [stdout] 9 |     const height: usize = 1000;
[INFO] [stdout]   |           ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]   |
[INFO] [stdout] 9 -     const height: usize = 1000;
[INFO] [stdout] 9 +     const HEIGHT: usize = 1000;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/main.rs:57:13
[INFO] [stdout]    |
[INFO] [stdout] 57 |             window.update_with_buffer(&buffer, width, height);
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 57 |             let _ = window.update_with_buffer(&buffer, width, height);
[INFO] [stdout]    |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `a` should have an upper case name
[INFO] [stdout]    --> src/main.rs:120:15
[INFO] [stdout]     |
[INFO] [stdout] 120 |         const a: usize = 3;
[INFO] [stdout]     |               ^ help: convert the identifier to upper case: `A`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 48.82s
[INFO] running `Command { std: "docker" "inspect" "3bf66bb6e35d47f51cbf155f337544290ef832b6e702f242bdfeb4c3f0e965d5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3bf66bb6e35d47f51cbf155f337544290ef832b6e702f242bdfeb4c3f0e965d5", kill_on_drop: false }`
[INFO] [stdout] 3bf66bb6e35d47f51cbf155f337544290ef832b6e702f242bdfeb4c3f0e965d5
