[INFO] cloning repository https://github.com/bcamp1/cart-ai
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bcamp1/cart-ai" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbcamp1%2Fcart-ai", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbcamp1%2Fcart-ai'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 3024da501d4bc891f816f789870319a4f0a67cb1
[INFO] checking bcamp1/cart-ai against master#4008bbdf34b583ce44a467043aae3703afc0a76f for pr-129249-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbcamp1%2Fcart-ai" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/bcamp1/cart-ai
[INFO] finished tweaking git repo https://github.com/bcamp1/cart-ai
[INFO] tweaked toml for git repo https://github.com/bcamp1/cart-ai written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/bcamp1/cart-ai on toolchain 4008bbdf34b583ce44a467043aae3703afc0a76f
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4008bbdf34b583ce44a467043aae3703afc0a76f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/bcamp1/cart-ai 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" "+4008bbdf34b583ce44a467043aae3703afc0a76f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded fps_counter v1.0.0
[INFO] [stderr]   Downloaded c_vec v1.3.3
[INFO] [stderr]   Downloaded random_color v0.4.4
[INFO] [stderr]   Downloaded c2-chacha v0.2.3
[INFO] [stderr]   Downloaded num-traits v0.2.10
[INFO] [stderr]   Downloaded getrandom v0.1.13
[INFO] [stderr]   Downloaded wasi v0.7.0
[INFO] [stderr]   Downloaded rand v0.7.2
[INFO] [stderr]   Downloaded libc v0.2.65
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] ce688015fdd26e958ee1ad64d37a045708f626fb46af02ab08e589a658364dbc
[INFO] running `Command { std: "docker" "start" "ce688015fdd26e958ee1ad64d37a045708f626fb46af02ab08e589a658364dbc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "ce688015fdd26e958ee1ad64d37a045708f626fb46af02ab08e589a658364dbc" "/opt/rustwide/cargo-home/bin/cargo" "+4008bbdf34b583ce44a467043aae3703afc0a76f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ce688015fdd26e958ee1ad64d37a045708f626fb46af02ab08e589a658364dbc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "ce688015fdd26e958ee1ad64d37a045708f626fb46af02ab08e589a658364dbc" "/opt/rustwide/cargo-home/bin/cargo" "+4008bbdf34b583ce44a467043aae3703afc0a76f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling autocfg v0.1.7
[INFO] [stderr]    Compiling libc v0.2.65
[INFO] [stderr]    Compiling cfg-if v0.1.10
[INFO] [stderr]    Compiling getrandom v0.1.13
[INFO] [stderr]    Compiling bitflags v1.2.1
[INFO] [stderr]     Checking ppv-lite86 v0.2.6
[INFO] [stderr]    Compiling sdl2 v0.32.2
[INFO] [stderr]     Checking c_vec v1.3.3
[INFO] [stderr]    Compiling sdl2-sys v0.32.6
[INFO] [stderr]     Checking lazy_static v1.4.0
[INFO] [stderr]     Checking fps_counter v1.0.0
[INFO] [stderr]    Compiling num-traits v0.2.10
[INFO] [stderr]    Compiling num-integer v0.1.41
[INFO] [stderr]    Compiling rand_pcg v0.1.2
[INFO] [stderr]    Compiling rand_chacha v0.1.1
[INFO] [stderr]    Compiling num-iter v0.1.39
[INFO] [stderr]    Compiling rand v0.6.5
[INFO] [stderr]     Checking c2-chacha v0.2.3
[INFO] [stderr]     Checking rand v0.4.6
[INFO] [stderr]     Checking rand_os v0.1.3
[INFO] [stderr]     Checking rand_core v0.5.1
[INFO] [stderr]     Checking rand_chacha v0.2.1
[INFO] [stderr]     Checking rand v0.7.2
[INFO] [stderr]     Checking rand v0.3.23
[INFO] [stderr]     Checking random_color v0.4.4
[INFO] [stderr]     Checking num v0.1.42
[INFO] [stderr]     Checking cart-ai v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `rand::prelude::*`
[INFO] [stdout]  --> src/cart.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | 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 `if` condition
[INFO] [stdout]    --> src/cart.rs:147:12
[INFO] [stdout]     |
[INFO] [stdout] 147 |         if (self.angle_pos >= PI/2.0 || self.angle_pos <= -PI/2.0) {
[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] 147 -         if (self.angle_pos >= PI/2.0 || self.angle_pos <= -PI/2.0) {
[INFO] [stdout] 147 +         if self.angle_pos >= PI/2.0 || self.angle_pos <= -PI/2.0  {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `sdl2::render::WindowCanvas`
[INFO] [stdout]  --> src/neat.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use sdl2::render::WindowCanvas;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `MouseState`
[INFO] [stdout]   --> src/main.rs:12:19
[INFO] [stdout]    |
[INFO] [stdout] 12 | use sdl2::mouse::{MouseState};
[INFO] [stdout]    |                   ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `sdl2::rect::Rect`
[INFO] [stdout]   --> src/main.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use sdl2::rect::Rect;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cart_color`
[INFO] [stdout]   --> src/cart.rs:44:13
[INFO] [stdout]    |
[INFO] [stdout] 44 |         let cart_color = Color::from((cart_color_array[0] as u8, cart_color_array[1] as u8, cart_color_array[2] as u8));
[INFO] [stdout]    |             ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cart_color`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `pend_color`
[INFO] [stdout]   --> src/cart.rs:47:13
[INFO] [stdout]    |
[INFO] [stdout] 47 |         let pend_color = Color::from((pend_color_array[0] as u8, pend_color_array[1] as u8, pend_color_array[2] as u8));
[INFO] [stdout]    |             ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pend_color`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `track_color`
[INFO] [stdout]   --> src/cart.rs:50:13
[INFO] [stdout]    |
[INFO] [stdout] 50 |         let track_color = Color::from((track_color_array[0] as u8, track_color_array[1] as u8, track_color_array[2] as u8));
[INFO] [stdout]    |             ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_track_color`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `track_x2`
[INFO] [stdout]    --> src/cart.rs:157:13
[INFO] [stdout]     |
[INFO] [stdout] 157 |         let track_x2 = track_x1 + self.track_length;
[INFO] [stdout]     |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_track_x2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rand::prelude::*`
[INFO] [stdout]  --> src/cart.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | 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 `if` condition
[INFO] [stdout]    --> src/cart.rs:147:12
[INFO] [stdout]     |
[INFO] [stdout] 147 |         if (self.angle_pos >= PI/2.0 || self.angle_pos <= -PI/2.0) {
[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] 147 -         if (self.angle_pos >= PI/2.0 || self.angle_pos <= -PI/2.0) {
[INFO] [stdout] 147 +         if self.angle_pos >= PI/2.0 || self.angle_pos <= -PI/2.0  {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `sdl2::render::WindowCanvas`
[INFO] [stdout]  --> src/neat.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use sdl2::render::WindowCanvas;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `MouseState`
[INFO] [stdout]   --> src/main.rs:12:19
[INFO] [stdout]    |
[INFO] [stdout] 12 | use sdl2::mouse::{MouseState};
[INFO] [stdout]    |                   ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `sdl2::rect::Rect`
[INFO] [stdout]   --> src/main.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use sdl2::rect::Rect;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `NodeType` is never used
[INFO] [stdout]  --> src/neat.rs:4:10
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub enum NodeType {
[INFO] [stdout]   |          ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Node` is never constructed
[INFO] [stdout]   --> src/neat.rs:11:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct Node {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/neat.rs:17:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl Node {
[INFO] [stdout]    | --------- associated function in this implementation
[INFO] [stdout] 17 |     pub fn new(id: i32, nodeType: NodeType) -> Node {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Connection` is never constructed
[INFO] [stdout]   --> src/neat.rs:26:12
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub struct Connection {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Network` is never constructed
[INFO] [stdout]   --> src/neat.rs:34:12
[INFO] [stdout]    |
[INFO] [stdout] 34 | pub struct Network {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/neat.rs:41:12
[INFO] [stdout]    |
[INFO] [stdout] 40 | impl Network {
[INFO] [stdout]    | ------------ associated function in this implementation
[INFO] [stdout] 41 |     pub fn new(numInputs: i32, numOutputs: i32) -> Network {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `context` and `filename` are never read
[INFO] [stdout]   --> src/text.rs:9:5
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub struct Text<'a> {
[INFO] [stdout]    |            ---- fields in this struct
[INFO] [stdout]  9 |     context: &'a Sdl2TtfContext,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 10 |     filename: &'a str,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `set_color`, `set_font_size`, and `draw` are never used
[INFO] [stdout]   --> src/text.rs:37:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl<'a> Text<'a> {
[INFO] [stdout]    | ----------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 37 |     pub fn set_color(&mut self, color: Color) {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 41 |     pub fn set_font_size(&mut self, size: u16) {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 46 |     pub fn draw(&self, canvas: &mut WindowCanvas, text: &'a str, x: i32, y: i32) {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/main.rs:82:9
[INFO] [stdout]    |
[INFO] [stdout] 82 |         canvas.thick_line(0, track_y as i16, window_size.0 as i16, track_y as i16, track_thickness as u8, track_color);
[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] 82 |         let _ = canvas.thick_line(0, track_y as i16, window_size.0 as i16, track_y as i16, track_thickness as u8, track_color);
[INFO] [stdout]    |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/cart.rs:164:9
[INFO] [stdout]     |
[INFO] [stdout] 164 |         canvas.fill_rect(Rect::new(cart_x as i32, cart_y as i32, self.width as u32, self.height as u32));
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 164 |         let _ = canvas.fill_rect(Rect::new(cart_x as i32, cart_y as i32, self.width as u32, self.height as u32));
[INFO] [stdout]     |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/cart.rs:174:9
[INFO] [stdout]     |
[INFO] [stdout] 174 |         canvas.thick_line(x1 as i16, y1 as i16, x2 as i16, y2 as i16, self.pend_width as u8, self.pend_color);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 174 |         let _ = canvas.thick_line(x1 as i16, y1 as i16, x2 as i16, y2 as i16, self.pend_width as u8, self.pend_color);
[INFO] [stdout]     |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/cart.rs:177:9
[INFO] [stdout]     |
[INFO] [stdout] 177 |         canvas.filled_circle(x2 as i16, y2 as i16, self.ball_size as i16, self.pend_color);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 177 |         let _ = canvas.filled_circle(x2 as i16, y2 as i16, self.ball_size as i16, self.pend_color);
[INFO] [stdout]     |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/cart.rs:178:9
[INFO] [stdout]     |
[INFO] [stdout] 178 |         canvas.filled_circle(x1 as i16, y1 as i16, self.pend_width as i16, self.color);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 178 |         let _ = canvas.filled_circle(x1 as i16, y1 as i16, self.pend_width as i16, self.color);
[INFO] [stdout]     |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `nodeType` should have a snake case name
[INFO] [stdout]   --> src/neat.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout] 13 |     pub nodeType: NodeType,
[INFO] [stdout]    |         ^^^^^^^^ help: convert the identifier to snake case: `node_type`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `nodeType` should have a snake case name
[INFO] [stdout]   --> src/neat.rs:17:25
[INFO] [stdout]    |
[INFO] [stdout] 17 |     pub fn new(id: i32, nodeType: NodeType) -> Node {
[INFO] [stdout]    |                         ^^^^^^^^ help: convert the identifier to snake case: `node_type`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `inNode` should have a snake case name
[INFO] [stdout]   --> src/neat.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |     pub inNode: i32,
[INFO] [stdout]    |         ^^^^^^ help: convert the identifier to snake case: `in_node`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `outNode` should have a snake case name
[INFO] [stdout]   --> src/neat.rs:28:9
[INFO] [stdout]    |
[INFO] [stdout] 28 |     pub outNode: i32,
[INFO] [stdout]    |         ^^^^^^^ help: convert the identifier to snake case: `out_node`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `numInputs` should have a snake case name
[INFO] [stdout]   --> src/neat.rs:41:16
[INFO] [stdout]    |
[INFO] [stdout] 41 |     pub fn new(numInputs: i32, numOutputs: i32) -> Network {
[INFO] [stdout]    |                ^^^^^^^^^ help: convert the identifier to snake case: `num_inputs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `numOutputs` should have a snake case name
[INFO] [stdout]   --> src/neat.rs:41:32
[INFO] [stdout]    |
[INFO] [stdout] 41 |     pub fn new(numInputs: i32, numOutputs: i32) -> Network {
[INFO] [stdout]    |                                ^^^^^^^^^^ help: convert the identifier to snake case: `num_outputs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/text.rs:32:27
[INFO] [stdout]    |
[INFO] [stdout] 32 |     pub fn render_surface(&self, text: &'a str) ->  Result<surface::Surface, FontError> {
[INFO] [stdout]    |                           ^^^^^                            ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                           |
[INFO] [stdout]    |                           the lifetime is elided here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 32 |     pub fn render_surface(&self, text: &'a str) ->  Result<surface::Surface<'_>, FontError> {
[INFO] [stdout]    |                                                                            ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cart_color`
[INFO] [stdout]   --> src/cart.rs:44:13
[INFO] [stdout]    |
[INFO] [stdout] 44 |         let cart_color = Color::from((cart_color_array[0] as u8, cart_color_array[1] as u8, cart_color_array[2] as u8));
[INFO] [stdout]    |             ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cart_color`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `pend_color`
[INFO] [stdout]   --> src/cart.rs:47:13
[INFO] [stdout]    |
[INFO] [stdout] 47 |         let pend_color = Color::from((pend_color_array[0] as u8, pend_color_array[1] as u8, pend_color_array[2] as u8));
[INFO] [stdout]    |             ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pend_color`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `track_color`
[INFO] [stdout]   --> src/cart.rs:50:13
[INFO] [stdout]    |
[INFO] [stdout] 50 |         let track_color = Color::from((track_color_array[0] as u8, track_color_array[1] as u8, track_color_array[2] as u8));
[INFO] [stdout]    |             ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_track_color`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `track_x2`
[INFO] [stdout]    --> src/cart.rs:157:13
[INFO] [stdout]     |
[INFO] [stdout] 157 |         let track_x2 = track_x1 + self.track_length;
[INFO] [stdout]     |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_track_x2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `NodeType` is never used
[INFO] [stdout]  --> src/neat.rs:4:10
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub enum NodeType {
[INFO] [stdout]   |          ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Node` is never constructed
[INFO] [stdout]   --> src/neat.rs:11:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct Node {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/neat.rs:17:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl Node {
[INFO] [stdout]    | --------- associated function in this implementation
[INFO] [stdout] 17 |     pub fn new(id: i32, nodeType: NodeType) -> Node {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Connection` is never constructed
[INFO] [stdout]   --> src/neat.rs:26:12
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub struct Connection {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Network` is never constructed
[INFO] [stdout]   --> src/neat.rs:34:12
[INFO] [stdout]    |
[INFO] [stdout] 34 | pub struct Network {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/neat.rs:41:12
[INFO] [stdout]    |
[INFO] [stdout] 40 | impl Network {
[INFO] [stdout]    | ------------ associated function in this implementation
[INFO] [stdout] 41 |     pub fn new(numInputs: i32, numOutputs: i32) -> Network {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `context` and `filename` are never read
[INFO] [stdout]   --> src/text.rs:9:5
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub struct Text<'a> {
[INFO] [stdout]    |            ---- fields in this struct
[INFO] [stdout]  9 |     context: &'a Sdl2TtfContext,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 10 |     filename: &'a str,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `set_color`, `set_font_size`, and `draw` are never used
[INFO] [stdout]   --> src/text.rs:37:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl<'a> Text<'a> {
[INFO] [stdout]    | ----------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 37 |     pub fn set_color(&mut self, color: Color) {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 41 |     pub fn set_font_size(&mut self, size: u16) {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 46 |     pub fn draw(&self, canvas: &mut WindowCanvas, text: &'a str, x: i32, y: i32) {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/main.rs:82:9
[INFO] [stdout]    |
[INFO] [stdout] 82 |         canvas.thick_line(0, track_y as i16, window_size.0 as i16, track_y as i16, track_thickness as u8, track_color);
[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] 82 |         let _ = canvas.thick_line(0, track_y as i16, window_size.0 as i16, track_y as i16, track_thickness as u8, track_color);
[INFO] [stdout]    |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/cart.rs:164:9
[INFO] [stdout]     |
[INFO] [stdout] 164 |         canvas.fill_rect(Rect::new(cart_x as i32, cart_y as i32, self.width as u32, self.height as u32));
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 164 |         let _ = canvas.fill_rect(Rect::new(cart_x as i32, cart_y as i32, self.width as u32, self.height as u32));
[INFO] [stdout]     |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/cart.rs:174:9
[INFO] [stdout]     |
[INFO] [stdout] 174 |         canvas.thick_line(x1 as i16, y1 as i16, x2 as i16, y2 as i16, self.pend_width as u8, self.pend_color);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 174 |         let _ = canvas.thick_line(x1 as i16, y1 as i16, x2 as i16, y2 as i16, self.pend_width as u8, self.pend_color);
[INFO] [stdout]     |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/cart.rs:177:9
[INFO] [stdout]     |
[INFO] [stdout] 177 |         canvas.filled_circle(x2 as i16, y2 as i16, self.ball_size as i16, self.pend_color);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 177 |         let _ = canvas.filled_circle(x2 as i16, y2 as i16, self.ball_size as i16, self.pend_color);
[INFO] [stdout]     |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/cart.rs:178:9
[INFO] [stdout]     |
[INFO] [stdout] 178 |         canvas.filled_circle(x1 as i16, y1 as i16, self.pend_width as i16, self.color);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 178 |         let _ = canvas.filled_circle(x1 as i16, y1 as i16, self.pend_width as i16, self.color);
[INFO] [stdout]     |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `nodeType` should have a snake case name
[INFO] [stdout]   --> src/neat.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout] 13 |     pub nodeType: NodeType,
[INFO] [stdout]    |         ^^^^^^^^ help: convert the identifier to snake case: `node_type`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `nodeType` should have a snake case name
[INFO] [stdout]   --> src/neat.rs:17:25
[INFO] [stdout]    |
[INFO] [stdout] 17 |     pub fn new(id: i32, nodeType: NodeType) -> Node {
[INFO] [stdout]    |                         ^^^^^^^^ help: convert the identifier to snake case: `node_type`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `inNode` should have a snake case name
[INFO] [stdout]   --> src/neat.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |     pub inNode: i32,
[INFO] [stdout]    |         ^^^^^^ help: convert the identifier to snake case: `in_node`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `outNode` should have a snake case name
[INFO] [stdout]   --> src/neat.rs:28:9
[INFO] [stdout]    |
[INFO] [stdout] 28 |     pub outNode: i32,
[INFO] [stdout]    |         ^^^^^^^ help: convert the identifier to snake case: `out_node`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `numInputs` should have a snake case name
[INFO] [stdout]   --> src/neat.rs:41:16
[INFO] [stdout]    |
[INFO] [stdout] 41 |     pub fn new(numInputs: i32, numOutputs: i32) -> Network {
[INFO] [stdout]    |                ^^^^^^^^^ help: convert the identifier to snake case: `num_inputs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `numOutputs` should have a snake case name
[INFO] [stdout]   --> src/neat.rs:41:32
[INFO] [stdout]    |
[INFO] [stdout] 41 |     pub fn new(numInputs: i32, numOutputs: i32) -> Network {
[INFO] [stdout]    |                                ^^^^^^^^^^ help: convert the identifier to snake case: `num_outputs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/text.rs:32:27
[INFO] [stdout]    |
[INFO] [stdout] 32 |     pub fn render_surface(&self, text: &'a str) ->  Result<surface::Surface, FontError> {
[INFO] [stdout]    |                           ^^^^^                            ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                           |
[INFO] [stdout]    |                           the lifetime is elided here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 32 |     pub fn render_surface(&self, text: &'a str) ->  Result<surface::Surface<'_>, FontError> {
[INFO] [stdout]    |                                                                            ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.64s
[INFO] running `Command { std: "docker" "inspect" "ce688015fdd26e958ee1ad64d37a045708f626fb46af02ab08e589a658364dbc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ce688015fdd26e958ee1ad64d37a045708f626fb46af02ab08e589a658364dbc", kill_on_drop: false }`
[INFO] [stdout] ce688015fdd26e958ee1ad64d37a045708f626fb46af02ab08e589a658364dbc
