[INFO] cloning repository https://github.com/Tam1SH/simple2d_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Tam1SH/simple2d_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTam1SH%2Fsimple2d_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTam1SH%2Fsimple2d_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] eff519e3938664d647cf84059e38eba2fe31dcca [INFO] checking Tam1SH/simple2d_rust/eff519e3938664d647cf84059e38eba2fe31dcca against master#da2544bfbe84df7b24d83c029c74299ebf6112c6 for pr-149681 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTam1SH%2Fsimple2d_rust" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Tam1SH/simple2d_rust [INFO] finished tweaking git repo https://github.com/Tam1SH/simple2d_rust [INFO] tweaked toml for git repo https://github.com/Tam1SH/simple2d_rust written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Tam1SH/simple2d_rust on toolchain da2544bfbe84df7b24d83c029c74299ebf6112c6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+da2544bfbe84df7b24d83c029c74299ebf6112c6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Tam1SH/simple2d_rust 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" "+da2544bfbe84df7b24d83c029c74299ebf6112c6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded minifb v0.23.0 [INFO] [stderr] Downloaded orbclient v0.3.32 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+da2544bfbe84df7b24d83c029c74299ebf6112c6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5971cbcb0eb8f81ae77237c258fb20ca7337d782380731158c873f543c694a1e [INFO] running `Command { std: "docker" "start" "-a" "5971cbcb0eb8f81ae77237c258fb20ca7337d782380731158c873f543c694a1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5971cbcb0eb8f81ae77237c258fb20ca7337d782380731158c873f543c694a1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5971cbcb0eb8f81ae77237c258fb20ca7337d782380731158c873f543c694a1e", kill_on_drop: false }` [INFO] [stdout] 5971cbcb0eb8f81ae77237c258fb20ca7337d782380731158c873f543c694a1e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+da2544bfbe84df7b24d83c029c74299ebf6112c6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9100ce5cef392836e6c5e56f59db0e372c99d890cfcbd4c37d52d85d25f37f5a [INFO] running `Command { std: "docker" "start" "-a" "9100ce5cef392836e6c5e56f59db0e372c99d890cfcbd4c37d52d85d25f37f5a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling proc-macro2 v1.0.40 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Compiling crossbeam-utils v0.8.11 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.10 [INFO] [stderr] Compiling wayland-sys v0.29.4 [INFO] [stderr] Compiling x11-dl v2.19.1 [INFO] [stderr] Compiling minifb v0.23.0 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Checking either v1.7.0 [INFO] [stderr] Checking crossbeam-channel v0.5.6 [INFO] [stderr] Checking crossbeam-deque v0.8.2 [INFO] [stderr] Checking nom v7.1.1 [INFO] [stderr] Compiling wayland-scanner v0.29.4 [INFO] [stderr] Checking nix v0.22.3 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking tempfile v3.3.0 [INFO] [stderr] Checking rayon-core v1.9.3 [INFO] [stderr] Checking rayon v1.5.3 [INFO] [stderr] Compiling wayland-client v0.29.4 [INFO] [stderr] Compiling wayland-protocols v0.29.4 [INFO] [stderr] Checking xcursor v0.3.4 [INFO] [stderr] Checking wayland-commons v0.29.4 [INFO] [stderr] Checking wayland-cursor v0.29.4 [INFO] [stderr] Checking simple2d_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `surface` [INFO] [stdout] --> src/main.rs:54:50 [INFO] [stdout] | [INFO] [stdout] 54 | window.subscribe_on_draw(Rc::new(Box::new(move |surface| { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_surface` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/main.rs:38:6 [INFO] [stdout] | [INFO] [stdout] 38 | let size = window.get_screen_size(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:41:6 [INFO] [stdout] | [INFO] [stdout] 41 | for i in 0..1 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `from_u8_rgb` is never used [INFO] [stdout] --> src/main.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn from_u8_rgb(r: u8, g: u8, b: u8) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `move_to`, `set_color`, `get_color`, and `get_area` are never used [INFO] [stdout] --> src/simple2d/shape.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait Shape { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] 5 | fn draw(&self, surface: &mut DrawSurface); [INFO] [stdout] 6 | fn move_to(&mut self, point : Point); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 9 | fn set_color(&mut self, color : u32); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 10 | fn get_color(&self) -> u32; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 11 | fn get_area(&self) -> &DrawingArea; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_buffer`, `get_buffer_index`, `get_buffer_index_mut`, and `get_buffers_mut` are never used [INFO] [stdout] --> src/simple2d/draw_surface.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 8 | impl DrawSurface { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn get_buffer(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn get_buffer_index(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn get_buffer_index_mut(&mut self) -> &mut Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn get_buffers_mut(&mut self) -> &mut (Vec, Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Absolute` is never constructed [INFO] [stdout] --> src/simple2d/drawing_area.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum Positioning { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 10 | Relative, Absolute [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/simple2d/drawing_area.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 12 | impl DrawingArea { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 13 | [INFO] [stdout] 14 | pub fn get_left_top(&self, positioning : Positioning) -> Point { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn draw_from_buffer(&self, drawing_area : Rect, draw_surface : &mut DrawSurface, buffer : &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn draw(&self, drawing_area : Rect, draw_surface : &mut DrawSurface, f: &T) [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn get_area(&self) -> Rect { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn calc_bounds(&self, drawing_area_size : Rect) -> Rect { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | pub fn resize(&mut self, new_size : Rect) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn move_to(&mut self, new_pos : Position) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `unsubscribe_on_draw` is never used [INFO] [stdout] --> src/simple2d/drawing_window.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 20 | impl DrawingWindow { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn unsubscribe_on_draw(&mut self, o : Rc>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `PositionFrom2` is never used [INFO] [stdout] --> src/simple2d/position.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | pub trait PositionFrom2 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_point` is never used [INFO] [stdout] --> src/simple2d/rect.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 9 | impl Rect { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 10 | pub fn new(x : usize, y : usize) -> Rect { Rect { x, y } } [INFO] [stdout] 11 | pub fn from_point(point : Point) -> Rect { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/simple2d/rectangle.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `set_size` and `new` are never used [INFO] [stdout] --> src/simple2d/rectangle.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 13 | impl Rectangle { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 14 | [INFO] [stdout] 15 | pub fn set_size(&mut self, size : Rect) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn new(pos: Position, size : Rect, color : Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `surface` [INFO] [stdout] --> src/main.rs:54:50 [INFO] [stdout] | [INFO] [stdout] 54 | window.subscribe_on_draw(Rc::new(Box::new(move |surface| { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_surface` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/main.rs:38:6 [INFO] [stdout] | [INFO] [stdout] 38 | let size = window.get_screen_size(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:41:6 [INFO] [stdout] | [INFO] [stdout] 41 | for i in 0..1 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `from_u8_rgb` is never used [INFO] [stdout] --> src/main.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn from_u8_rgb(r: u8, g: u8, b: u8) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `move_to`, `set_color`, `get_color`, and `get_area` are never used [INFO] [stdout] --> src/simple2d/shape.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait Shape { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] 5 | fn draw(&self, surface: &mut DrawSurface); [INFO] [stdout] 6 | fn move_to(&mut self, point : Point); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 9 | fn set_color(&mut self, color : u32); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 10 | fn get_color(&self) -> u32; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 11 | fn get_area(&self) -> &DrawingArea; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_buffer`, `get_buffer_index`, `get_buffer_index_mut`, and `get_buffers_mut` are never used [INFO] [stdout] --> src/simple2d/draw_surface.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 8 | impl DrawSurface { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn get_buffer(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn get_buffer_index(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn get_buffer_index_mut(&mut self) -> &mut Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn get_buffers_mut(&mut self) -> &mut (Vec, Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Absolute` is never constructed [INFO] [stdout] --> src/simple2d/drawing_area.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum Positioning { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 10 | Relative, Absolute [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/simple2d/drawing_area.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 12 | impl DrawingArea { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 13 | [INFO] [stdout] 14 | pub fn get_left_top(&self, positioning : Positioning) -> Point { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn draw_from_buffer(&self, drawing_area : Rect, draw_surface : &mut DrawSurface, buffer : &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn draw(&self, drawing_area : Rect, draw_surface : &mut DrawSurface, f: &T) [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn get_area(&self) -> Rect { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn calc_bounds(&self, drawing_area_size : Rect) -> Rect { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | pub fn resize(&mut self, new_size : Rect) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn move_to(&mut self, new_pos : Position) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `unsubscribe_on_draw` is never used [INFO] [stdout] --> src/simple2d/drawing_window.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 20 | impl DrawingWindow { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn unsubscribe_on_draw(&mut self, o : Rc>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `PositionFrom2` is never used [INFO] [stdout] --> src/simple2d/position.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | pub trait PositionFrom2 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_point` is never used [INFO] [stdout] --> src/simple2d/rect.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 9 | impl Rect { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 10 | pub fn new(x : usize, y : usize) -> Rect { Rect { x, y } } [INFO] [stdout] 11 | pub fn from_point(point : Point) -> Rect { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/simple2d/rectangle.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `set_size` and `new` are never used [INFO] [stdout] --> src/simple2d/rectangle.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 13 | impl Rectangle { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 14 | [INFO] [stdout] 15 | pub fn set_size(&mut self, size : Rect) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn new(pos: Position, size : Rect, color : Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/lib.rs:89:65 [INFO] [stdout] | [INFO] [stdout] 89 | pub extern "C" fn subscribe_on_draw(window: *mut c_void, func : extern fn() -> ()) -> *mut c_void { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(missing_abi)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/lib.rs:89:65 [INFO] [stdout] | [INFO] [stdout] 89 | pub extern "C" fn subscribe_on_draw(window: *mut c_void, func : extern fn() -> ()) -> *mut c_void { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(missing_abi)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `surface` [INFO] [stdout] --> src/lib.rs:92:74 [INFO] [stdout] | [INFO] [stdout] 92 | let on_draw: Rc> = Rc::new(Box::new(move |surface| { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_surface` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `move_to`, `set_position`, `get_position`, `set_color`, `get_color`, and `get_area` are never used [INFO] [stdout] --> src/simple2d/shape.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait Shape { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] 5 | fn draw(&self, surface: &mut DrawSurface); [INFO] [stdout] 6 | fn move_to(&mut self, point : Point); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | fn set_position(&mut self, pos: Position); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 8 | fn get_position(&self) -> Position; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 9 | fn set_color(&mut self, color : u32); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 10 | fn get_color(&self) -> u32; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 11 | fn get_area(&self) -> &DrawingArea; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_pixel`, `get_buffer`, `get_buffer_index`, and `get_buffer_index_mut` are never used [INFO] [stdout] --> src/simple2d/draw_surface.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 8 | impl DrawSurface { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 9 | [INFO] [stdout] 10 | pub fn set_pixel(&mut self, color : u32, x : isize, y : isize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn get_buffer(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn get_buffer_index(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn get_buffer_index_mut(&mut self) -> &mut Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Relative` is never constructed [INFO] [stdout] --> src/simple2d/drawing_area.rs:10:2 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum Positioning { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 10 | Relative, Absolute [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `draw_from_buffer`, `set_position`, `get_area`, `get_position`, `resize`, and `move_to` are never used [INFO] [stdout] --> src/simple2d/drawing_area.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 12 | impl DrawingArea { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn draw_from_buffer(&self, drawing_area : Rect, draw_surface : &mut DrawSurface, buffer : &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn set_position(&mut self, pos : Position) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn get_area(&self) -> Rect { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn get_position(&self) -> Position { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | pub fn resize(&mut self, new_size : Rect) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn move_to(&mut self, new_pos : Position) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_screen_size` is never used [INFO] [stdout] --> src/simple2d/drawing_window.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 20 | impl DrawingWindow { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 21 | [INFO] [stdout] 22 | pub fn get_screen_size(&self) -> Rect { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ellipse` is never constructed [INFO] [stdout] --> src/simple2d/ellipse.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Ellipse { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/simple2d/ellipse.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 14 | impl Ellipse { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 15 | [INFO] [stdout] 16 | pub fn new(pos: Position, size : Rect, color : Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `PositionFrom2` is never used [INFO] [stdout] --> src/simple2d/position.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | pub trait PositionFrom2 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `color` is never read [INFO] [stdout] --> src/simple2d/rectangle.rs:10:2 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Rectangle { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 9 | area : DrawingArea, [INFO] [stdout] 10 | color : u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_size` is never used [INFO] [stdout] --> src/simple2d/rectangle.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 13 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 14 | [INFO] [stdout] 15 | pub fn set_size(&mut self, size : Rect) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `surface` [INFO] [stdout] --> src/lib.rs:92:74 [INFO] [stdout] | [INFO] [stdout] 92 | let on_draw: Rc> = Rc::new(Box::new(move |surface| { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_surface` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `move_to`, `set_position`, `get_position`, `set_color`, `get_color`, and `get_area` are never used [INFO] [stdout] --> src/simple2d/shape.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait Shape { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] 5 | fn draw(&self, surface: &mut DrawSurface); [INFO] [stdout] 6 | fn move_to(&mut self, point : Point); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | fn set_position(&mut self, pos: Position); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 8 | fn get_position(&self) -> Position; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 9 | fn set_color(&mut self, color : u32); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 10 | fn get_color(&self) -> u32; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 11 | fn get_area(&self) -> &DrawingArea; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_pixel`, `get_buffer`, `get_buffer_index`, and `get_buffer_index_mut` are never used [INFO] [stdout] --> src/simple2d/draw_surface.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 8 | impl DrawSurface { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 9 | [INFO] [stdout] 10 | pub fn set_pixel(&mut self, color : u32, x : isize, y : isize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn get_buffer(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn get_buffer_index(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn get_buffer_index_mut(&mut self) -> &mut Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Relative` is never constructed [INFO] [stdout] --> src/simple2d/drawing_area.rs:10:2 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum Positioning { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 10 | Relative, Absolute [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `draw_from_buffer`, `set_position`, `get_area`, `get_position`, `resize`, and `move_to` are never used [INFO] [stdout] --> src/simple2d/drawing_area.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 12 | impl DrawingArea { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn draw_from_buffer(&self, drawing_area : Rect, draw_surface : &mut DrawSurface, buffer : &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn set_position(&mut self, pos : Position) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn get_area(&self) -> Rect { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn get_position(&self) -> Position { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | pub fn resize(&mut self, new_size : Rect) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn move_to(&mut self, new_pos : Position) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_screen_size` is never used [INFO] [stdout] --> src/simple2d/drawing_window.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 20 | impl DrawingWindow { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 21 | [INFO] [stdout] 22 | pub fn get_screen_size(&self) -> Rect { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ellipse` is never constructed [INFO] [stdout] --> src/simple2d/ellipse.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Ellipse { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/simple2d/ellipse.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 14 | impl Ellipse { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 15 | [INFO] [stdout] 16 | pub fn new(pos: Position, size : Rect, color : Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `PositionFrom2` is never used [INFO] [stdout] --> src/simple2d/position.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | pub trait PositionFrom2 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `color` is never read [INFO] [stdout] --> src/simple2d/rectangle.rs:10:2 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Rectangle { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 9 | area : DrawingArea, [INFO] [stdout] 10 | color : u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_size` is never used [INFO] [stdout] --> src/simple2d/rectangle.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 13 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 14 | [INFO] [stdout] 15 | pub fn set_size(&mut self, size : Rect) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 45.53s [INFO] running `Command { std: "docker" "inspect" "9100ce5cef392836e6c5e56f59db0e372c99d890cfcbd4c37d52d85d25f37f5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9100ce5cef392836e6c5e56f59db0e372c99d890cfcbd4c37d52d85d25f37f5a", kill_on_drop: false }` [INFO] [stdout] 9100ce5cef392836e6c5e56f59db0e372c99d890cfcbd4c37d52d85d25f37f5a