[INFO] cloning repository https://github.com/svenslaggare/imageeditor [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/svenslaggare/imageeditor" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsvenslaggare%2Fimageeditor", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsvenslaggare%2Fimageeditor'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bd86b504c92f79e740ff2dbcfa835fab2e11a1ee [INFO] testing svenslaggare/imageeditor against master#b03b3a7ec92682be2917540b679478d41c95a30c for pr-137122-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsvenslaggare%2Fimageeditor" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/svenslaggare/imageeditor [INFO] finished tweaking git repo https://github.com/svenslaggare/imageeditor [INFO] tweaked toml for git repo https://github.com/svenslaggare/imageeditor written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/svenslaggare/imageeditor on toolchain b03b3a7ec92682be2917540b679478d41c95a30c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/svenslaggare/imageeditor 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" "+b03b3a7ec92682be2917540b679478d41c95a30c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Updating git repository `https://github.com/PistonDevelopers/freetype-rs` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bytebuffer v0.2.1 [INFO] [stderr] Downloaded gl_loader v0.1.2 [INFO] [stderr] Downloaded num-rational v0.2.3 [INFO] [stderr] Downloaded freetype-sys v0.9.0 [INFO] [stderr] Downloaded cairo-sys-rs v0.14.0 [INFO] [stderr] Downloaded cairo-rs v0.14.7 [INFO] [stderr] Downloaded image v0.22.4 [INFO] [stderr] Downloaded glfw v0.35.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7089d6649152edd9d46f2b96a40974403cc1484980a81b5b77c43448d2a066cc [INFO] running `Command { std: "docker" "start" "-a" "7089d6649152edd9d46f2b96a40974403cc1484980a81b5b77c43448d2a066cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7089d6649152edd9d46f2b96a40974403cc1484980a81b5b77c43448d2a066cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7089d6649152edd9d46f2b96a40974403cc1484980a81b5b77c43448d2a066cc", kill_on_drop: false }` [INFO] [stdout] 7089d6649152edd9d46f2b96a40974403cc1484980a81b5b77c43448d2a066cc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fc9f340d03ae2990a6f64239ab57cbf0e0bb2d857c567e22572e266cad53c9d8 [INFO] running `Command { std: "docker" "start" "-a" "fc9f340d03ae2990a6f64239ab57cbf0e0bb2d857c567e22572e266cad53c9d8", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.30 [INFO] [stderr] Compiling syn v1.0.80 [INFO] [stderr] Compiling pkg-config v0.3.17 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling either v1.5.3 [INFO] [stderr] Compiling anyhow v1.0.44 [INFO] [stderr] Compiling strum v0.21.0 [INFO] [stderr] Compiling version-compare v0.0.11 [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling cfg-expr v0.8.1 [INFO] [stderr] Compiling cc v1.0.50 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling futures-core v0.3.17 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling futures-task v0.3.17 [INFO] [stderr] Compiling pin-project-lite v0.2.7 [INFO] [stderr] Compiling itertools v0.10.1 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling slab v0.4.5 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-channel v0.3.17 [INFO] [stderr] Compiling crossbeam-utils v0.7.0 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Compiling futures-util v0.3.17 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling pest v2.1.3 [INFO] [stderr] Compiling crossbeam-epoch v0.8.0 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling memoffset v0.5.3 [INFO] [stderr] Compiling scopeguard v1.0.0 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling gio v0.14.8 [INFO] [stderr] Compiling rayon-core v1.7.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling crossbeam-queue v0.2.1 [INFO] [stderr] Compiling num_cpus v1.12.0 [INFO] [stderr] Compiling cmake v0.1.42 [INFO] [stderr] Compiling libz-sys v1.0.25 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling futures-io v0.3.17 [INFO] [stderr] Compiling xml-rs v0.8.0 [INFO] [stderr] Compiling crossbeam-deque v0.7.2 [INFO] [stderr] Compiling adler32 v1.0.4 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling semver-parser v0.10.2 [INFO] [stderr] Compiling freetype-sys v0.9.0 [INFO] [stderr] Compiling num-rational v0.2.3 [INFO] [stderr] Compiling num-iter v0.1.40 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling glfw-sys v3.3.2 [INFO] [stderr] Compiling lzw v0.10.0 [INFO] [stderr] Compiling rayon v1.3.0 [INFO] [stderr] Compiling semver v0.11.0 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling inflate v0.4.5 [INFO] [stderr] Compiling deflate v0.7.20 [INFO] [stderr] Compiling gl_loader v0.1.2 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling gtk v0.14.3 [INFO] [stderr] Compiling rustc_version v0.3.3 [INFO] [stderr] Compiling cgmath v0.17.0 [INFO] [stderr] Compiling color_quant v1.0.1 [INFO] [stderr] Compiling gif v0.10.3 [INFO] [stderr] Compiling png v0.15.3 [INFO] [stderr] Compiling gl v0.14.0 [INFO] [stderr] Compiling approx v0.3.2 [INFO] [stderr] Compiling raw-window-handle v0.3.3 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling field-offset v0.3.4 [INFO] [stderr] Compiling byteorder v0.3.13 [INFO] [stderr] Compiling freetype-rs v0.23.0 (https://github.com/PistonDevelopers/freetype-rs#9378ace6) [INFO] [stderr] Compiling itertools v0.8.2 [INFO] [stderr] Compiling bytebuffer v0.2.1 [INFO] [stderr] Compiling futures-executor v0.3.17 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling jpeg-decoder v0.1.18 [INFO] [stderr] Compiling tiff v0.3.1 [INFO] [stderr] Compiling glfw v0.35.0 [INFO] [stderr] Compiling image v0.22.4 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling strum_macros v0.21.1 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling proc-macro-crate v1.1.0 [INFO] [stderr] Compiling system-deps v3.2.0 [INFO] [stderr] Compiling glib-macros v0.14.1 [INFO] [stderr] Compiling gtk3-macros v0.14.0 [INFO] [stderr] Compiling glib-sys v0.14.0 [INFO] [stderr] Compiling gobject-sys v0.14.0 [INFO] [stderr] Compiling gio-sys v0.14.0 [INFO] [stderr] Compiling gdk-pixbuf-sys v0.14.0 [INFO] [stderr] Compiling cairo-sys-rs v0.14.0 [INFO] [stderr] Compiling pango-sys v0.14.0 [INFO] [stderr] Compiling gdk-sys v0.14.0 [INFO] [stderr] Compiling atk-sys v0.14.0 [INFO] [stderr] Compiling gtk-sys v0.14.0 [INFO] [stderr] Compiling glib v0.14.8 [INFO] [stderr] Compiling pango v0.14.8 [INFO] [stderr] Compiling cairo-rs v0.14.7 [INFO] [stderr] Compiling atk v0.14.0 [INFO] [stderr] Compiling gdk-pixbuf v0.14.0 [INFO] [stderr] Compiling gdk v0.14.3 [INFO] [stderr] Compiling imageeditor v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `SelectColorMode` [INFO] [stdout] --> src/ui/mod.rs:14:53 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::editor::tools::{Tools, SelectionSubTool, SelectColorMode}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/gtk_app/helpers.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Align` [INFO] [stdout] --> src/gtk_app/helpers.rs:6:85 [INFO] [stdout] | [INFO] [stdout] 6 | use gtk::{FileChooserAction, ApplicationWindow, Inhibit, Orientation, ResponseType, Align}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deref` [INFO] [stdout] --> src/gtk_app/menu.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ops::{ Deref}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `create_entry` [INFO] [stdout] --> src/gtk_app/menu.rs:12:31 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::gtk_app::helpers::{create_entry, create_file_dialog, create_dialog, get_action_area, create_spin_button}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Align` [INFO] [stdout] --> src/gtk_app/color_select_dialog.rs:8:64 [INFO] [stdout] | [INFO] [stdout] 8 | use gtk::{Application, ApplicationWindow, GLArea, Orientation, Align, EventBox, gdk, ResponseType}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `create_entry` [INFO] [stdout] --> src/gtk_app/color_select_dialog.rs:13:66 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::gtk_app::helpers::{create_dialog, create_spin_button, create_entry}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ProgramActionData` [INFO] [stdout] --> src/gtk_app/color_select_dialog.rs:16:46 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::program::{Renders, ProgramAction, ProgramActionData}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CommandBuffer` [INFO] [stdout] --> src/gtk_app/color_select_dialog.rs:19:29 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::command_buffer::{CommandBuffer, Command}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/gtk_app/color_select_dialog.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `selector` [INFO] [stdout] --> src/gtk_app/color_select_dialog.rs:91:55 [INFO] [stdout] | [INFO] [stdout] 91 | color_selector.red_selector.connect_changed(move |selector| color_selector_clone.update()); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_selector` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `selector` [INFO] [stdout] --> src/gtk_app/color_select_dialog.rs:94:56 [INFO] [stdout] | [INFO] [stdout] 94 | color_selector.blue_selector.connect_changed(move |selector| color_selector_clone.update()); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_selector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `selector` [INFO] [stdout] --> src/gtk_app/color_select_dialog.rs:97:56 [INFO] [stdout] | [INFO] [stdout] 97 | color_selector.blue_selector.connect_changed(move |selector| color_selector_clone.update()); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_selector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TimeMeasurement` is never constructed [INFO] [stdout] --> src/helpers.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct TimeMeasurement { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `elapsed_ms` are never used [INFO] [stdout] --> src/helpers.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl TimeMeasurement { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 7 | pub fn new(pattern: &str) -> TimeMeasurement { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn elapsed_ms(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/command_buffer.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | SetImageSize(u32, u32), [INFO] [stdout] | ------------ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 17 - SetImageSize(u32, u32), [INFO] [stdout] 17 + SetImageSize((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `texture_width` and `texture_height` are never read [INFO] [stdout] --> src/rendering/font.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 86 | struct FontMap { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 87 | texture_id: u32, [INFO] [stdout] 88 | texture_width: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 89 | texture_height: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_bool`, `set_int32`, `set_float32`, `set_vector2`, and `set_vector3` are never used [INFO] [stdout] --> src/rendering/shader.rs:133:19 [INFO] [stdout] | [INFO] [stdout] 53 | impl Shader { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 133 | pub unsafe fn set_bool(&self, name: &CStr, value: bool) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub unsafe fn set_int32(&self, name: &CStr, value: i32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | pub unsafe fn set_float32(&self, name: &CStr, value: f32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub unsafe fn set_vector2(&self, name: &CStr, x: f32, y: f32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | pub unsafe fn set_vector3(&self, name: &CStr, x: f32, y: f32, z: f32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `base_index` is never used [INFO] [stdout] --> src/rendering/texture.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Texture { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn base_index(&self, x: u32, y: u32) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FrameBuffer` is never constructed [INFO] [stdout] --> src/rendering/framebuffer.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct FrameBuffer { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FrameBufferBinding` is never constructed [INFO] [stdout] --> src/rendering/framebuffer.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct FrameBufferBinding<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `download` are never used [INFO] [stdout] --> src/rendering/framebuffer.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl<'a> FrameBufferBinding<'a> { [INFO] [stdout] | ------------------------------- associated items in this implementation [INFO] [stdout] 17 | pub fn new(frame_buffer: &'a FrameBuffer) -> FrameBufferBinding { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn download(&self, buffer: &mut [u8]) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `width`, `height`, `color_buffer_id`, and `bind` are never used [INFO] [stdout] --> src/rendering/framebuffer.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl FrameBuffer { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 53 | pub fn new(width: u32, height: u32, channels: u32) -> FrameBuffer { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn width(&self) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn height(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn color_buffer_id(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn bind(&self) -> FrameBufferBinding { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Bottom` is never constructed [INFO] [stdout] --> src/rendering/text_render.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum TextAlignment { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 19 | Top, [INFO] [stdout] 20 | Bottom [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `adaptive_cols` is never used [INFO] [stdout] --> src/ui/layout.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn adaptive_cols(origin: Position, cell_size: (f32, f32), row_height: f32, num_elements: usize) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AdaptiveCols` is never constructed [INFO] [stdout] --> src/ui/layout.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | struct AdaptiveCols { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_position_and_size` is never used [INFO] [stdout] --> src/editor/mod.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Region { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn from_position_and_size(position: cgmath::Point2, size: cgmath::Point2) -> Region { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `raw_pixels`, `raw_pixels_mut`, and `get_image` are never used [INFO] [stdout] --> src/editor/image.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 77 | impl<'a> ImageUpdateOperation<'a> { [INFO] [stdout] | --------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn raw_pixels(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn raw_pixels_mut(&mut self) -> &mut [u8] { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn get_image(&self) -> &Image { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `symmetric_round` is never used [INFO] [stdout] --> src/editor/image_operation_helpers.rs:915:8 [INFO] [stdout] | [INFO] [stdout] 915 | pub fn symmetric_round(x: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `symmetric_floor` is never used [INFO] [stdout] --> src/editor/image_operation_helpers.rs:919:8 [INFO] [stdout] | [INFO] [stdout] 919 | pub fn symmetric_floor(x: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SetPixel` is never constructed [INFO] [stdout] --> src/editor/image_operation.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub enum ImageOperation { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 33 | SetPixel { x: i32, y: i32, color: Color }, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ImageOperation` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ColorWheel` is never constructed [INFO] [stdout] --> src/editor/tools/mod.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 100 | pub enum Tools { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 110 | ColorWheel(SelectColorMode), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tools` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `original_selection` is never read [INFO] [stdout] --> src/editor/tools/selection.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 88 | struct RotatePixelsState { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 89 | is_rotating: bool, [INFO] [stdout] 90 | original_selection: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_changed_time` is never used [INFO] [stdout] --> src/editor/tools/effect.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn get_changed_time(filename: &str) -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VERTEX_SHADER_FILENAME` is never used [INFO] [stdout] --> src/editor/tools/effect.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const VERTEX_SHADER_FILENAME: &str = "content/shaders/texture.vs"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EffectDrawTool` is never constructed [INFO] [stdout] --> src/editor/tools/effect.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct EffectDrawTool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `try_create_shader`, and `generate_image` are never used [INFO] [stdout] --> src/editor/tools/effect.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl EffectDrawTool { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 32 | pub fn new(shader_filename: &str) -> EffectDrawTool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn try_create_shader(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn generate_image(&self, frame_buffer: &FrameBuffer, source_image: &editor::Image, destination_image_buffer: &mut [u8]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/glfw_app.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `setup_window` is never used [INFO] [stdout] --> src/glfw_app.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn setup_window(width: u32, height: u32) -> (Glfw, Window, Receiver<(f64, WindowEvent)>) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_entry` is never used [INFO] [stdout] --> src/gtk_app/helpers.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn create_entry(container: >k::Box, label: &str, default_value: &str) -> gtk::Entry { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_new_size` is never used [INFO] [stdout] --> src/gtk_app/menu.rs:579:4 [INFO] [stdout] | [INFO] [stdout] 579 | fn parse_new_size(gtk_program: >KProgram, entry_width: >k::Entry, entry_height: >k::Entry) -> Option<(u32, u32)> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `color_code` and `current_color_view` are never used [INFO] [stdout] --> src/gtk_app/color_select_dialog.rs:342:12 [INFO] [stdout] | [INFO] [stdout] 316 | impl ColorSelector { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 342 | pub fn color_code(&self) -> >k::Entry { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 346 | pub fn current_color_view(&self) -> >k::Label { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/rendering/framebuffer.rs:17:31 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(frame_buffer: &'a FrameBuffer) -> FrameBufferBinding { [INFO] [stdout] | ^^ ------------------ the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(frame_buffer: &'a FrameBuffer) -> FrameBufferBinding<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/rendering/framebuffer.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn bind(&self) -> FrameBufferBinding { [INFO] [stdout] | ^^^^^ ------------------ the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 114 | pub fn bind(&self) -> FrameBufferBinding<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/editor/image.rs:37:29 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn update_operation(&mut self) -> ImageUpdateOperation { [INFO] [stdout] | ^^^^^^^^^ -------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 37 | pub fn update_operation(&mut self) -> ImageUpdateOperation<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/editor/image.rs:41:41 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn update_operation_with_region(&mut self, valid_region: Option) -> ImageUpdateOperation { [INFO] [stdout] | ^^^^^^^^^ this lifetime flows to the output -------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 41 | pub fn update_operation_with_region(&mut self, valid_region: Option) -> ImageUpdateOperation<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 52s [INFO] running `Command { std: "docker" "inspect" "fc9f340d03ae2990a6f64239ab57cbf0e0bb2d857c567e22572e266cad53c9d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc9f340d03ae2990a6f64239ab57cbf0e0bb2d857c567e22572e266cad53c9d8", kill_on_drop: false }` [INFO] [stdout] fc9f340d03ae2990a6f64239ab57cbf0e0bb2d857c567e22572e266cad53c9d8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bc37a9d98e9fd75cc12f07b1973ca02fb3c7d1e9f8bd6875c9796f17689d4951 [INFO] running `Command { std: "docker" "start" "-a" "bc37a9d98e9fd75cc12f07b1973ca02fb3c7d1e9f8bd6875c9796f17689d4951", kill_on_drop: false }` [INFO] [stderr] Compiling imageeditor v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `SelectColorMode` [INFO] [stdout] --> src/ui/mod.rs:14:53 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::editor::tools::{Tools, SelectionSubTool, SelectColorMode}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/gtk_app/helpers.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Align` [INFO] [stdout] --> src/gtk_app/helpers.rs:6:85 [INFO] [stdout] | [INFO] [stdout] 6 | use gtk::{FileChooserAction, ApplicationWindow, Inhibit, Orientation, ResponseType, Align}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deref` [INFO] [stdout] --> src/gtk_app/menu.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ops::{ Deref}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `create_entry` [INFO] [stdout] --> src/gtk_app/menu.rs:12:31 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::gtk_app::helpers::{create_entry, create_file_dialog, create_dialog, get_action_area, create_spin_button}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Align` [INFO] [stdout] --> src/gtk_app/color_select_dialog.rs:8:64 [INFO] [stdout] | [INFO] [stdout] 8 | use gtk::{Application, ApplicationWindow, GLArea, Orientation, Align, EventBox, gdk, ResponseType}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `create_entry` [INFO] [stdout] --> src/gtk_app/color_select_dialog.rs:13:66 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::gtk_app::helpers::{create_dialog, create_spin_button, create_entry}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ProgramActionData` [INFO] [stdout] --> src/gtk_app/color_select_dialog.rs:16:46 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::program::{Renders, ProgramAction, ProgramActionData}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CommandBuffer` [INFO] [stdout] --> src/gtk_app/color_select_dialog.rs:19:29 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::command_buffer::{CommandBuffer, Command}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/gtk_app/color_select_dialog.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `selector` [INFO] [stdout] --> src/gtk_app/color_select_dialog.rs:91:55 [INFO] [stdout] | [INFO] [stdout] 91 | color_selector.red_selector.connect_changed(move |selector| color_selector_clone.update()); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_selector` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `selector` [INFO] [stdout] --> src/gtk_app/color_select_dialog.rs:94:56 [INFO] [stdout] | [INFO] [stdout] 94 | color_selector.blue_selector.connect_changed(move |selector| color_selector_clone.update()); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_selector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `selector` [INFO] [stdout] --> src/gtk_app/color_select_dialog.rs:97:56 [INFO] [stdout] | [INFO] [stdout] 97 | color_selector.blue_selector.connect_changed(move |selector| color_selector_clone.update()); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_selector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TimeMeasurement` is never constructed [INFO] [stdout] --> src/helpers.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct TimeMeasurement { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `elapsed_ms` are never used [INFO] [stdout] --> src/helpers.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl TimeMeasurement { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 7 | pub fn new(pattern: &str) -> TimeMeasurement { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn elapsed_ms(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/command_buffer.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | SetImageSize(u32, u32), [INFO] [stdout] | ------------ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 17 - SetImageSize(u32, u32), [INFO] [stdout] 17 + SetImageSize((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `texture_width` and `texture_height` are never read [INFO] [stdout] --> src/rendering/font.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 86 | struct FontMap { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 87 | texture_id: u32, [INFO] [stdout] 88 | texture_width: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 89 | texture_height: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_bool`, `set_int32`, `set_float32`, `set_vector2`, and `set_vector3` are never used [INFO] [stdout] --> src/rendering/shader.rs:133:19 [INFO] [stdout] | [INFO] [stdout] 53 | impl Shader { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 133 | pub unsafe fn set_bool(&self, name: &CStr, value: bool) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub unsafe fn set_int32(&self, name: &CStr, value: i32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | pub unsafe fn set_float32(&self, name: &CStr, value: f32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub unsafe fn set_vector2(&self, name: &CStr, x: f32, y: f32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | pub unsafe fn set_vector3(&self, name: &CStr, x: f32, y: f32, z: f32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `base_index` is never used [INFO] [stdout] --> src/rendering/texture.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Texture { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn base_index(&self, x: u32, y: u32) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FrameBuffer` is never constructed [INFO] [stdout] --> src/rendering/framebuffer.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct FrameBuffer { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FrameBufferBinding` is never constructed [INFO] [stdout] --> src/rendering/framebuffer.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct FrameBufferBinding<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `download` are never used [INFO] [stdout] --> src/rendering/framebuffer.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl<'a> FrameBufferBinding<'a> { [INFO] [stdout] | ------------------------------- associated items in this implementation [INFO] [stdout] 17 | pub fn new(frame_buffer: &'a FrameBuffer) -> FrameBufferBinding { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn download(&self, buffer: &mut [u8]) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `width`, `height`, `color_buffer_id`, and `bind` are never used [INFO] [stdout] --> src/rendering/framebuffer.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl FrameBuffer { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 53 | pub fn new(width: u32, height: u32, channels: u32) -> FrameBuffer { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn width(&self) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn height(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn color_buffer_id(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn bind(&self) -> FrameBufferBinding { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Bottom` is never constructed [INFO] [stdout] --> src/rendering/text_render.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum TextAlignment { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 19 | Top, [INFO] [stdout] 20 | Bottom [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `adaptive_cols` is never used [INFO] [stdout] --> src/ui/layout.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn adaptive_cols(origin: Position, cell_size: (f32, f32), row_height: f32, num_elements: usize) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AdaptiveCols` is never constructed [INFO] [stdout] --> src/ui/layout.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | struct AdaptiveCols { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_position_and_size` is never used [INFO] [stdout] --> src/editor/mod.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Region { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn from_position_and_size(position: cgmath::Point2, size: cgmath::Point2) -> Region { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `raw_pixels`, `raw_pixels_mut`, and `get_image` are never used [INFO] [stdout] --> src/editor/image.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 77 | impl<'a> ImageUpdateOperation<'a> { [INFO] [stdout] | --------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn raw_pixels(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn raw_pixels_mut(&mut self) -> &mut [u8] { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn get_image(&self) -> &Image { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `symmetric_round` is never used [INFO] [stdout] --> src/editor/image_operation_helpers.rs:915:8 [INFO] [stdout] | [INFO] [stdout] 915 | pub fn symmetric_round(x: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `symmetric_floor` is never used [INFO] [stdout] --> src/editor/image_operation_helpers.rs:919:8 [INFO] [stdout] | [INFO] [stdout] 919 | pub fn symmetric_floor(x: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SetPixel` is never constructed [INFO] [stdout] --> src/editor/image_operation.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub enum ImageOperation { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 33 | SetPixel { x: i32, y: i32, color: Color }, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ImageOperation` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ColorWheel` is never constructed [INFO] [stdout] --> src/editor/tools/mod.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 100 | pub enum Tools { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 110 | ColorWheel(SelectColorMode), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tools` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `original_selection` is never read [INFO] [stdout] --> src/editor/tools/selection.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 88 | struct RotatePixelsState { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 89 | is_rotating: bool, [INFO] [stdout] 90 | original_selection: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_changed_time` is never used [INFO] [stdout] --> src/editor/tools/effect.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn get_changed_time(filename: &str) -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VERTEX_SHADER_FILENAME` is never used [INFO] [stdout] --> src/editor/tools/effect.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const VERTEX_SHADER_FILENAME: &str = "content/shaders/texture.vs"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EffectDrawTool` is never constructed [INFO] [stdout] --> src/editor/tools/effect.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct EffectDrawTool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `try_create_shader`, and `generate_image` are never used [INFO] [stdout] --> src/editor/tools/effect.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl EffectDrawTool { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 32 | pub fn new(shader_filename: &str) -> EffectDrawTool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn try_create_shader(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn generate_image(&self, frame_buffer: &FrameBuffer, source_image: &editor::Image, destination_image_buffer: &mut [u8]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/glfw_app.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `setup_window` is never used [INFO] [stdout] --> src/glfw_app.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn setup_window(width: u32, height: u32) -> (Glfw, Window, Receiver<(f64, WindowEvent)>) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_entry` is never used [INFO] [stdout] --> src/gtk_app/helpers.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn create_entry(container: >k::Box, label: &str, default_value: &str) -> gtk::Entry { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_new_size` is never used [INFO] [stdout] --> src/gtk_app/menu.rs:579:4 [INFO] [stdout] | [INFO] [stdout] 579 | fn parse_new_size(gtk_program: >KProgram, entry_width: >k::Entry, entry_height: >k::Entry) -> Option<(u32, u32)> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `color_code` and `current_color_view` are never used [INFO] [stdout] --> src/gtk_app/color_select_dialog.rs:342:12 [INFO] [stdout] | [INFO] [stdout] 316 | impl ColorSelector { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 342 | pub fn color_code(&self) -> >k::Entry { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 346 | pub fn current_color_view(&self) -> >k::Label { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/rendering/framebuffer.rs:17:31 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(frame_buffer: &'a FrameBuffer) -> FrameBufferBinding { [INFO] [stdout] | ^^ ------------------ the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(frame_buffer: &'a FrameBuffer) -> FrameBufferBinding<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/rendering/framebuffer.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn bind(&self) -> FrameBufferBinding { [INFO] [stdout] | ^^^^^ ------------------ the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 114 | pub fn bind(&self) -> FrameBufferBinding<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/editor/image.rs:37:29 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn update_operation(&mut self) -> ImageUpdateOperation { [INFO] [stdout] | ^^^^^^^^^ -------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 37 | pub fn update_operation(&mut self) -> ImageUpdateOperation<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/editor/image.rs:41:41 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn update_operation_with_region(&mut self, valid_region: Option) -> ImageUpdateOperation { [INFO] [stdout] | ^^^^^^^^^ this lifetime flows to the output -------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 41 | pub fn update_operation_with_region(&mut self, valid_region: Option) -> ImageUpdateOperation<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.04s [INFO] running `Command { std: "docker" "inspect" "bc37a9d98e9fd75cc12f07b1973ca02fb3c7d1e9f8bd6875c9796f17689d4951", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bc37a9d98e9fd75cc12f07b1973ca02fb3c7d1e9f8bd6875c9796f17689d4951", kill_on_drop: false }` [INFO] [stdout] bc37a9d98e9fd75cc12f07b1973ca02fb3c7d1e9f8bd6875c9796f17689d4951 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3f8d64eb89b6c33e4fe9ddc05163145eed4c309b448a559601361bacf998d61d [INFO] running `Command { std: "docker" "start" "-a" "3f8d64eb89b6c33e4fe9ddc05163145eed4c309b448a559601361bacf998d61d", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `SelectColorMode` [INFO] [stderr] --> src/ui/mod.rs:14:53 [INFO] [stderr] | [INFO] [stderr] 14 | use crate::editor::tools::{Tools, SelectionSubTool, SelectColorMode}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::rc::Rc` [INFO] [stderr] --> src/gtk_app/helpers.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::rc::Rc; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Align` [INFO] [stderr] --> src/gtk_app/helpers.rs:6:85 [INFO] [stderr] | [INFO] [stderr] 6 | use gtk::{FileChooserAction, ApplicationWindow, Inhibit, Orientation, ResponseType, Align}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Deref` [INFO] [stderr] --> src/gtk_app/menu.rs:4:17 [INFO] [stderr] | [INFO] [stderr] 4 | use std::ops::{ Deref}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `create_entry` [INFO] [stderr] --> src/gtk_app/menu.rs:12:31 [INFO] [stderr] | [INFO] [stderr] 12 | use crate::gtk_app::helpers::{create_entry, create_file_dialog, create_dialog, get_action_area, create_spin_button}; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Align` [INFO] [stderr] --> src/gtk_app/color_select_dialog.rs:8:64 [INFO] [stderr] | [INFO] [stderr] 8 | use gtk::{Application, ApplicationWindow, GLArea, Orientation, Align, EventBox, gdk, ResponseType}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `create_entry` [INFO] [stderr] --> src/gtk_app/color_select_dialog.rs:13:66 [INFO] [stderr] | [INFO] [stderr] 13 | use crate::gtk_app::helpers::{create_dialog, create_spin_button, create_entry}; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `ProgramActionData` [INFO] [stderr] --> src/gtk_app/color_select_dialog.rs:16:46 [INFO] [stderr] | [INFO] [stderr] 16 | use crate::program::{Renders, ProgramAction, ProgramActionData}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `CommandBuffer` [INFO] [stderr] --> src/gtk_app/color_select_dialog.rs:19:29 [INFO] [stderr] | [INFO] [stderr] 19 | use crate::command_buffer::{CommandBuffer, Command}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `itertools::Itertools` [INFO] [stderr] --> src/gtk_app/color_select_dialog.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use itertools::Itertools; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `selector` [INFO] [stderr] --> src/gtk_app/color_select_dialog.rs:91:55 [INFO] [stderr] | [INFO] [stderr] 91 | color_selector.red_selector.connect_changed(move |selector| color_selector_clone.update()); [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_selector` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `selector` [INFO] [stderr] --> src/gtk_app/color_select_dialog.rs:94:56 [INFO] [stderr] | [INFO] [stderr] 94 | color_selector.blue_selector.connect_changed(move |selector| color_selector_clone.update()); [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_selector` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `selector` [INFO] [stderr] --> src/gtk_app/color_select_dialog.rs:97:56 [INFO] [stderr] | [INFO] [stderr] 97 | color_selector.blue_selector.connect_changed(move |selector| color_selector_clone.update()); [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_selector` [INFO] [stderr] [INFO] [stderr] warning: struct `TimeMeasurement` is never constructed [INFO] [stderr] --> src/helpers.rs:1:12 [INFO] [stderr] | [INFO] [stderr] 1 | pub struct TimeMeasurement { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated items `new` and `elapsed_ms` are never used [INFO] [stderr] --> src/helpers.rs:7:12 [INFO] [stderr] | [INFO] [stderr] 6 | impl TimeMeasurement { [INFO] [stderr] | -------------------- associated items in this implementation [INFO] [stderr] 7 | pub fn new(pattern: &str) -> TimeMeasurement { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 14 | pub fn elapsed_ms(&self) -> f64 { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `0` and `1` are never read [INFO] [stderr] --> src/command_buffer.rs:17:18 [INFO] [stderr] | [INFO] [stderr] 17 | SetImageSize(u32, u32), [INFO] [stderr] | ------------ ^^^ ^^^ [INFO] [stderr] | | [INFO] [stderr] | fields in this variant [INFO] [stderr] | [INFO] [stderr] = note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stderr] | [INFO] [stderr] 17 - SetImageSize(u32, u32), [INFO] [stderr] 17 + SetImageSize((), ()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: fields `texture_width` and `texture_height` are never read [INFO] [stderr] --> src/rendering/font.rs:88:5 [INFO] [stderr] | [INFO] [stderr] 86 | struct FontMap { [INFO] [stderr] | ------- fields in this struct [INFO] [stderr] 87 | texture_id: u32, [INFO] [stderr] 88 | texture_width: u32, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 89 | texture_height: u32, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `set_bool`, `set_int32`, `set_float32`, `set_vector2`, and `set_vector3` are never used [INFO] [stderr] --> src/rendering/shader.rs:133:19 [INFO] [stderr] | [INFO] [stderr] 53 | impl Shader { [INFO] [stderr] | ----------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 133 | pub unsafe fn set_bool(&self, name: &CStr, value: bool) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 137 | pub unsafe fn set_int32(&self, name: &CStr, value: i32) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 141 | pub unsafe fn set_float32(&self, name: &CStr, value: f32) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 145 | pub unsafe fn set_vector2(&self, name: &CStr, x: f32, y: f32) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 149 | pub unsafe fn set_vector3(&self, name: &CStr, x: f32, y: f32, z: f32) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `base_index` is never used [INFO] [stderr] --> src/rendering/texture.rs:54:12 [INFO] [stderr] | [INFO] [stderr] 13 | impl Texture { [INFO] [stderr] | ------------ method in this implementation [INFO] [stderr] ... [INFO] [stderr] 54 | pub fn base_index(&self, x: u32, y: u32) -> usize { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `FrameBuffer` is never constructed [INFO] [stderr] --> src/rendering/framebuffer.rs:4:12 [INFO] [stderr] | [INFO] [stderr] 4 | pub struct FrameBuffer { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `FrameBufferBinding` is never constructed [INFO] [stderr] --> src/rendering/framebuffer.rs:12:12 [INFO] [stderr] | [INFO] [stderr] 12 | pub struct FrameBufferBinding<'a> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new` and `download` are never used [INFO] [stderr] --> src/rendering/framebuffer.rs:17:12 [INFO] [stderr] | [INFO] [stderr] 16 | impl<'a> FrameBufferBinding<'a> { [INFO] [stderr] | ------------------------------- associated items in this implementation [INFO] [stderr] 17 | pub fn new(frame_buffer: &'a FrameBuffer) -> FrameBufferBinding { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 27 | pub fn download(&self, buffer: &mut [u8]) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `width`, `height`, `color_buffer_id`, and `bind` are never used [INFO] [stderr] --> src/rendering/framebuffer.rs:53:12 [INFO] [stderr] | [INFO] [stderr] 52 | impl FrameBuffer { [INFO] [stderr] | ---------------- associated items in this implementation [INFO] [stderr] 53 | pub fn new(width: u32, height: u32, channels: u32) -> FrameBuffer { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 102 | pub fn width(&self) -> u32 { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 106 | pub fn height(&self) -> u32 { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 110 | pub fn color_buffer_id(&self) -> u32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 114 | pub fn bind(&self) -> FrameBufferBinding { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `Bottom` is never constructed [INFO] [stderr] --> src/rendering/text_render.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 18 | pub enum TextAlignment { [INFO] [stderr] | ------------- variant in this enum [INFO] [stderr] 19 | Top, [INFO] [stderr] 20 | Bottom [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `adaptive_cols` is never used [INFO] [stderr] --> src/ui/layout.rs:45:8 [INFO] [stderr] | [INFO] [stderr] 45 | pub fn adaptive_cols(origin: Position, cell_size: (f32, f32), row_height: f32, num_elements: usize) -> impl Iterator { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `AdaptiveCols` is never constructed [INFO] [stderr] --> src/ui/layout.rs:56:8 [INFO] [stderr] | [INFO] [stderr] 56 | struct AdaptiveCols { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `from_position_and_size` is never used [INFO] [stderr] --> src/editor/mod.rs:26:12 [INFO] [stderr] | [INFO] [stderr] 18 | impl Region { [INFO] [stderr] | ----------- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 26 | pub fn from_position_and_size(position: cgmath::Point2, size: cgmath::Point2) -> Region { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `raw_pixels`, `raw_pixels_mut`, and `get_image` are never used [INFO] [stderr] --> src/editor/image.rs:85:12 [INFO] [stderr] | [INFO] [stderr] 77 | impl<'a> ImageUpdateOperation<'a> { [INFO] [stderr] | --------------------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 85 | pub fn raw_pixels(&self) -> &[u8] { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 89 | pub fn raw_pixels_mut(&mut self) -> &mut [u8] { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 93 | pub fn get_image(&self) -> &Image { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `symmetric_round` is never used [INFO] [stderr] --> src/editor/image_operation_helpers.rs:915:8 [INFO] [stderr] | [INFO] [stderr] 915 | pub fn symmetric_round(x: f32) -> f32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `symmetric_floor` is never used [INFO] [stderr] --> src/editor/image_operation_helpers.rs:919:8 [INFO] [stderr] | [INFO] [stderr] 919 | pub fn symmetric_floor(x: f32) -> f32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `SetPixel` is never constructed [INFO] [stderr] --> src/editor/image_operation.rs:33:5 [INFO] [stderr] | [INFO] [stderr] 24 | pub enum ImageOperation { [INFO] [stderr] | -------------- variant in this enum [INFO] [stderr] ... [INFO] [stderr] 33 | SetPixel { x: i32, y: i32, color: Color }, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ImageOperation` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: variant `ColorWheel` is never constructed [INFO] [stderr] --> src/editor/tools/mod.rs:110:5 [INFO] [stderr] | [INFO] [stderr] 100 | pub enum Tools { [INFO] [stderr] | ----- variant in this enum [INFO] [stderr] ... [INFO] [stderr] 110 | ColorWheel(SelectColorMode), [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Tools` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `original_selection` is never read [INFO] [stderr] --> src/editor/tools/selection.rs:90:5 [INFO] [stderr] | [INFO] [stderr] 88 | struct RotatePixelsState { [INFO] [stderr] | ----------------- field in this struct [INFO] [stderr] 89 | is_rotating: bool, [INFO] [stderr] 90 | original_selection: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_changed_time` is never used [INFO] [stderr] --> src/editor/tools/effect.rs:15:4 [INFO] [stderr] | [INFO] [stderr] 15 | fn get_changed_time(filename: &str) -> std::io::Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `VERTEX_SHADER_FILENAME` is never used [INFO] [stderr] --> src/editor/tools/effect.rs:19:7 [INFO] [stderr] | [INFO] [stderr] 19 | const VERTEX_SHADER_FILENAME: &str = "content/shaders/texture.vs"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `EffectDrawTool` is never constructed [INFO] [stderr] --> src/editor/tools/effect.rs:21:12 [INFO] [stderr] | [INFO] [stderr] 21 | pub struct EffectDrawTool { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `try_create_shader`, and `generate_image` are never used [INFO] [stderr] --> src/editor/tools/effect.rs:32:12 [INFO] [stderr] | [INFO] [stderr] 31 | impl EffectDrawTool { [INFO] [stderr] | ------------------- associated items in this implementation [INFO] [stderr] 32 | pub fn new(shader_filename: &str) -> EffectDrawTool { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 44 | fn try_create_shader(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 57 | fn generate_image(&self, frame_buffer: &FrameBuffer, source_image: &editor::Image, destination_image_buffer: &mut [u8]) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `main` is never used [INFO] [stderr] --> src/glfw_app.rs:10:8 [INFO] [stderr] | [INFO] [stderr] 10 | pub fn main() { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `setup_window` is never used [INFO] [stderr] --> src/glfw_app.rs:88:4 [INFO] [stderr] | [INFO] [stderr] 88 | fn setup_window(width: u32, height: u32) -> (Glfw, Window, Receiver<(f64, WindowEvent)>) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `create_entry` is never used [INFO] [stderr] --> src/gtk_app/helpers.rs:74:8 [INFO] [stderr] | [INFO] [stderr] 74 | pub fn create_entry(container: >k::Box, label: &str, default_value: &str) -> gtk::Entry { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `parse_new_size` is never used [INFO] [stderr] --> src/gtk_app/menu.rs:579:4 [INFO] [stderr] | [INFO] [stderr] 579 | fn parse_new_size(gtk_program: >KProgram, entry_width: >k::Entry, entry_height: >k::Entry) -> Option<(u32, u32)> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `color_code` and `current_color_view` are never used [INFO] [stderr] --> src/gtk_app/color_select_dialog.rs:342:12 [INFO] [stderr] | [INFO] [stderr] 316 | impl ColorSelector { [INFO] [stderr] | ------------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 342 | pub fn color_code(&self) -> >k::Entry { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 346 | pub fn current_color_view(&self) -> >k::Label { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/rendering/framebuffer.rs:17:31 [INFO] [stderr] | [INFO] [stderr] 17 | pub fn new(frame_buffer: &'a FrameBuffer) -> FrameBufferBinding { [INFO] [stderr] | ^^ ------------------ the lifetime gets resolved as `'a` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: one option is to consistently use `'a` [INFO] [stderr] | [INFO] [stderr] 17 | pub fn new(frame_buffer: &'a FrameBuffer) -> FrameBufferBinding<'a> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/rendering/framebuffer.rs:114:17 [INFO] [stderr] | [INFO] [stderr] 114 | pub fn bind(&self) -> FrameBufferBinding { [INFO] [stderr] | ^^^^^ ------------------ the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 114 | pub fn bind(&self) -> FrameBufferBinding<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/editor/image.rs:37:29 [INFO] [stderr] | [INFO] [stderr] 37 | pub fn update_operation(&mut self) -> ImageUpdateOperation { [INFO] [stderr] | ^^^^^^^^^ -------------------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 37 | pub fn update_operation(&mut self) -> ImageUpdateOperation<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/editor/image.rs:41:41 [INFO] [stderr] | [INFO] [stderr] 41 | pub fn update_operation_with_region(&mut self, valid_region: Option) -> ImageUpdateOperation { [INFO] [stderr] | ^^^^^^^^^ this lifetime flows to the output -------------------- the lifetime gets resolved as `'_` [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 41 | pub fn update_operation_with_region(&mut self, valid_region: Option) -> ImageUpdateOperation<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `imageeditor` (bin "imageeditor" test) generated 46 warnings (run `cargo fix --bin "imageeditor" --tests` to apply 9 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.17s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/imageeditor-57da3175c30e4f1f) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "3f8d64eb89b6c33e4fe9ddc05163145eed4c309b448a559601361bacf998d61d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f8d64eb89b6c33e4fe9ddc05163145eed4c309b448a559601361bacf998d61d", kill_on_drop: false }` [INFO] [stdout] 3f8d64eb89b6c33e4fe9ddc05163145eed4c309b448a559601361bacf998d61d