[INFO] updating cached repository https://github.com/SnoozeTime/twengine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 90121f6e6d6bf491ea816f8c949fc4db0ae31382 [INFO] checking SnoozeTime/twengine/90121f6e6d6bf491ea816f8c949fc4db0ae31382 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSnoozeTime%2Ftwengine" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/SnoozeTime/twengine on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/SnoozeTime/twengine [INFO] finished tweaking git repo https://github.com/SnoozeTime/twengine [INFO] tweaked toml for git repo https://github.com/SnoozeTime/twengine written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/SnoozeTime/twengine 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6cb89168ed4611ce025c884514416f7e30f122c040a9e1524c412e5bfa334092 [INFO] running `Command { std: "docker" "start" "-a" "6cb89168ed4611ce025c884514416f7e30f122c040a9e1524c412e5bfa334092", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6cb89168ed4611ce025c884514416f7e30f122c040a9e1524c412e5bfa334092", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6cb89168ed4611ce025c884514416f7e30f122c040a9e1524c412e5bfa334092", kill_on_drop: false }` [INFO] [stdout] 6cb89168ed4611ce025c884514416f7e30f122c040a9e1524c412e5bfa334092 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fc5b6cfb60418cc4b9e738518e8b122a1671209eda3ff559897f1e85249f05e2 [INFO] running `Command { std: "docker" "start" "-a" "fc5b6cfb60418cc4b9e738518e8b122a1671209eda3ff559897f1e85249f05e2", kill_on_drop: false }` [INFO] [stderr] Compiling pkg-config v0.3.14 [INFO] [stderr] Compiling libc v0.2.45 [INFO] [stderr] Checking lazy_static v1.2.0 [INFO] [stderr] Checking rand_core v0.3.0 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling proc-macro2 v0.4.24 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Compiling gio v0.5.1 [INFO] [stderr] Compiling num-iter v0.1.37 [INFO] [stderr] Compiling cfg-if v0.1.6 [INFO] [stderr] Checking fragile v0.3.0 [INFO] [stderr] Compiling cairo-rs v0.5.0 [INFO] [stderr] Compiling gdk-pixbuf v0.5.0 [INFO] [stderr] Compiling ryu v0.2.7 [INFO] [stderr] Compiling gdk v0.9.0 [INFO] [stderr] Compiling rand_chacha v0.1.0 [INFO] [stderr] Compiling rand_pcg v0.1.1 [INFO] [stderr] Compiling sdl2-sys v0.32.5 [INFO] [stderr] Compiling rand v0.6.1 [INFO] [stderr] Compiling serde v1.0.82 [INFO] [stderr] Compiling gtk v0.5.0 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_xorshift v0.1.0 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking itoa v0.4.3 [INFO] [stderr] Compiling glib-sys v0.7.0 [INFO] [stderr] Compiling gobject-sys v0.7.0 [INFO] [stderr] Compiling gio-sys v0.7.0 [INFO] [stderr] Compiling gdk-pixbuf-sys v0.7.0 [INFO] [stderr] Compiling cairo-sys-rs v0.7.0 [INFO] [stderr] Compiling pango-sys v0.7.0 [INFO] [stderr] Compiling gdk-sys v0.7.0 [INFO] [stderr] Compiling atk-sys v0.7.0 [INFO] [stderr] Compiling gtk-sys v0.7.0 [INFO] [stderr] Compiling quote v0.6.10 [INFO] [stderr] Compiling syn v0.15.23 [INFO] [stderr] Checking glib v0.6.1 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking sdl2 v0.32.1 [INFO] [stderr] Compiling serde_derive v1.0.82 [INFO] [stderr] Checking pango v0.5.0 [INFO] [stderr] Checking serde_json v1.0.33 [INFO] [stderr] Checking sdl2anim v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant `SWITCH_TO_ADD` should have an upper camel case name [INFO] [stdout] --> src/editor.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | SWITCH_TO_ADD, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SwitchToAdd` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SWITCH_TO_SELECT` should have an upper camel case name [INFO] [stdout] --> src/editor.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | SWITCH_TO_SELECT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SwitchToSelect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SWITCH_TO_STATIC` should have an upper camel case name [INFO] [stdout] --> src/editor.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | SWITCH_TO_STATIC, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SwitchToStatic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ADD_RECT` should have an upper camel case name [INFO] [stdout] --> src/editor.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | ADD_RECT, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `AddRect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ADD_STATIC` should have an upper camel case name [INFO] [stdout] --> src/editor.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | ADD_STATIC, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `AddStatic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `assert_eq_delta` [INFO] [stdout] --> src/math.rs:53:14 [INFO] [stdout] | [INFO] [stdout] 53 | macro_rules! assert_eq_delta ( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/lib.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SWITCH_TO_ADD` should have an upper camel case name [INFO] [stdout] --> src/editor.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | SWITCH_TO_ADD, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SwitchToAdd` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SWITCH_TO_SELECT` should have an upper camel case name [INFO] [stdout] --> src/editor.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | SWITCH_TO_SELECT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SwitchToSelect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SWITCH_TO_STATIC` should have an upper camel case name [INFO] [stdout] --> src/editor.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | SWITCH_TO_STATIC, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SwitchToStatic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ADD_RECT` should have an upper camel case name [INFO] [stdout] --> src/editor.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | ADD_RECT, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `AddRect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ADD_STATIC` should have an upper camel case name [INFO] [stdout] --> src/editor.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | ADD_STATIC, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `AddStatic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/lib.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/context.rs:14:41 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new() -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new() -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/context.rs:14:41 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new() -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new() -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_buttons` [INFO] [stdout] --> src/editor.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | let old_buttons = &self.prev_buttons - &buttons; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_buttons` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `textures` [INFO] [stdout] --> src/game.rs:70:49 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn render(&self, context: &mut Context, textures: &TextureCache) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_textures` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_buttons` [INFO] [stdout] --> src/editor.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | let old_buttons = &self.prev_buttons - &buttons; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_buttons` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/physics.rs:90:14 [INFO] [stdout] | [INFO] [stdout] 90 | for (i, j) in to_resolve { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/physics.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | for (i, j) in to_resolve { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `video_subsystem` is never read [INFO] [stdout] --> src/context.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Context { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 6 | pub sdl_context: Sdl, [INFO] [stdout] 7 | video_subsystem: VideoSubsystem, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `toLocal` should have a snake case name [INFO] [stdout] --> src/core.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn toLocal(&self, global_pos: Vector2d) -> Vector2d { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `to_local` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `textures` [INFO] [stdout] --> src/game.rs:70:49 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn render(&self, context: &mut Context, textures: &TextureCache) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_textures` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/physics.rs:90:14 [INFO] [stdout] | [INFO] [stdout] 90 | for (i, j) in to_resolve { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/physics.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | for (i, j) in to_resolve { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `video_subsystem` is never read [INFO] [stdout] --> src/context.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Context { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 6 | pub sdl_context: Sdl, [INFO] [stdout] 7 | video_subsystem: VideoSubsystem, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `toLocal` should have a snake case name [INFO] [stdout] --> src/core.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn toLocal(&self, global_pos: Vector2d) -> Vector2d { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `to_local` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error` and `Value` [INFO] [stdout] --> src/bin/serde.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use serde_json::{Value, Error}; [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::video::WindowContext` [INFO] [stdout] --> src/bin/mouse.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use sdl2::video::WindowContext; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::video::WindowContext` [INFO] [stdout] --> src/bin/mouse.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use sdl2::video::WindowContext; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `width` [INFO] [stdout] --> src/bin/ttf.rs:89:24 [INFO] [stdout] | [INFO] [stdout] 89 | let TextureQuery { width, height, .. } = texture.query(); [INFO] [stdout] | ^^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: try removing the field [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `height` [INFO] [stdout] --> src/bin/ttf.rs:89:31 [INFO] [stdout] | [INFO] [stdout] 89 | let TextureQuery { width, height, .. } = texture.query(); [INFO] [stdout] | ^^^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: try removing the field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `padding` [INFO] [stdout] --> src/bin/ttf.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | let padding = 64; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_padding` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/bin/mouse.rs:167:37 [INFO] [stdout] | [INFO] [stdout] 167 | fn new() -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 167 | fn new() -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `width` [INFO] [stdout] --> src/bin/ttf.rs:89:24 [INFO] [stdout] | [INFO] [stdout] 89 | let TextureQuery { width, height, .. } = texture.query(); [INFO] [stdout] | ^^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: try removing the field [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `height` [INFO] [stdout] --> src/bin/ttf.rs:89:31 [INFO] [stdout] | [INFO] [stdout] 89 | let TextureQuery { width, height, .. } = texture.query(); [INFO] [stdout] | ^^^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: try removing the field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `padding` [INFO] [stdout] --> src/bin/ttf.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | let padding = 64; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_padding` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/bin/mouse.rs:167:37 [INFO] [stdout] | [INFO] [stdout] 167 | fn new() -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 167 | fn new() -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/mouse.rs:29:14 [INFO] [stdout] | [INFO] [stdout] 29 | for (i, c) in self.content.char_indices() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/mouse.rs:29:14 [INFO] [stdout] | [INFO] [stdout] 29 | for (i, c) in self.content.char_indices() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_buttons` [INFO] [stdout] --> src/bin/mouse.rs:135:13 [INFO] [stdout] | [INFO] [stdout] 135 | let old_buttons = &self.prev_buttons - &buttons; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_buttons` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_centered_rect` is never used [INFO] [stdout] --> src/bin/ttf.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn get_centered_rect(rect_width: u32, rect_height: u32, cons_width: u32, cons_height: u32) -> Rect { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_buttons` [INFO] [stdout] --> src/bin/mouse.rs:135:13 [INFO] [stdout] | [INFO] [stdout] 135 | let old_buttons = &self.prev_buttons - &buttons; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_buttons` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_centered_rect` is never used [INFO] [stdout] --> src/bin/ttf.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn get_centered_rect(rect_width: u32, rect_height: u32, cons_width: u32, cons_height: u32) -> Rect { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error` and `Value` [INFO] [stdout] --> src/bin/serde.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use serde_json::{Value, Error}; [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `texture_creator` [INFO] [stdout] --> src/bin/mouse.rs:178:13 [INFO] [stdout] | [INFO] [stdout] 178 | let texture_creator = canvas.texture_creator(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_texture_creator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scene` [INFO] [stdout] --> src/bin/mouse.rs:220:13 [INFO] [stdout] | [INFO] [stdout] 220 | let mut scene = Scene::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scene` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_color` [INFO] [stdout] --> src/bin/mouse.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | let mut current_color = Color::RGB(0, 0, 255); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/mouse.rs:213:9 [INFO] [stdout] | [INFO] [stdout] 213 | let mut font = context.font_context.load_font(font_path, 24).unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/mouse.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 215 | let mut textures = TextureCache::new(&texture_creator, font); [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/bin/mouse.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | let mut scene = Scene::new(); [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/bin/mouse.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | let mut current_color = Color::RGB(0, 0, 255); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `texture_creator` [INFO] [stdout] --> src/bin/mouse.rs:178:13 [INFO] [stdout] | [INFO] [stdout] 178 | let texture_creator = canvas.texture_creator(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_texture_creator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `running` is never read [INFO] [stdout] --> src/bin/mouse.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 98 | struct Editor { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 102 | running: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `video_subsystem` is never read [INFO] [stdout] --> src/bin/mouse.rs:160:5 [INFO] [stdout] | [INFO] [stdout] 158 | struct Context { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 159 | sdl_context: Sdl, [INFO] [stdout] 160 | video_subsystem: VideoSubsystem, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scene` [INFO] [stdout] --> src/bin/mouse.rs:220:13 [INFO] [stdout] | [INFO] [stdout] 220 | let mut scene = Scene::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scene` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_color` [INFO] [stdout] --> src/bin/mouse.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | let mut current_color = Color::RGB(0, 0, 255); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/mouse.rs:213:9 [INFO] [stdout] | [INFO] [stdout] 213 | let mut font = context.font_context.load_font(font_path, 24).unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/mouse.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 215 | let mut textures = TextureCache::new(&texture_creator, font); [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/bin/mouse.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | let mut scene = Scene::new(); [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/bin/mouse.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | let mut current_color = Color::RGB(0, 0, 255); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `running` is never read [INFO] [stdout] --> src/bin/mouse.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 98 | struct Editor { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 102 | running: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `video_subsystem` is never read [INFO] [stdout] --> src/bin/mouse.rs:160:5 [INFO] [stdout] | [INFO] [stdout] 158 | struct Context { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 159 | sdl_context: Sdl, [INFO] [stdout] 160 | video_subsystem: VideoSubsystem, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/mouse.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | canvas.fill_rect(rect!(self.x, self.y, self.w, self.h)); [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)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 63 | let _ = canvas.fill_rect(rect!(self.x, self.y, self.w, self.h)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/mouse.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | canvas.fill_rect(rect!(self.x, self.y, self.w, self.h)); [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)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 63 | let _ = canvas.fill_rect(rect!(self.x, self.y, self.w, self.h)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 39.99s [INFO] running `Command { std: "docker" "inspect" "fc5b6cfb60418cc4b9e738518e8b122a1671209eda3ff559897f1e85249f05e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc5b6cfb60418cc4b9e738518e8b122a1671209eda3ff559897f1e85249f05e2", kill_on_drop: false }` [INFO] [stdout] fc5b6cfb60418cc4b9e738518e8b122a1671209eda3ff559897f1e85249f05e2