[INFO] cloning repository https://github.com/marksg07/rust-proj [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/marksg07/rust-proj" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarksg07%2Frust-proj", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarksg07%2Frust-proj'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 73e8e485adbb2f2ede518f551ff14adfb223754d [INFO] building marksg07/rust-proj against try#b755f8b9936d084e0363ce6b393c7e444a37080e for pr-97334-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarksg07%2Frust-proj" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/marksg07/rust-proj on toolchain b755f8b9936d084e0363ce6b393c7e444a37080e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b755f8b9936d084e0363ce6b393c7e444a37080e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/marksg07/rust-proj [INFO] finished tweaking git repo https://github.com/marksg07/rust-proj [INFO] tweaked toml for git repo https://github.com/marksg07/rust-proj written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/marksg07/rust-proj already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b755f8b9936d084e0363ce6b393c7e444a37080e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+b755f8b9936d084e0363ce6b393c7e444a37080e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 13158f19e1efcfb067d44058bb9a4c407b764aaf21dc6c5c09c348409b201751 [INFO] running `Command { std: "docker" "start" "-a" "13158f19e1efcfb067d44058bb9a4c407b764aaf21dc6c5c09c348409b201751", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "13158f19e1efcfb067d44058bb9a4c407b764aaf21dc6c5c09c348409b201751", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "13158f19e1efcfb067d44058bb9a4c407b764aaf21dc6c5c09c348409b201751", kill_on_drop: false }` [INFO] [stdout] 13158f19e1efcfb067d44058bb9a4c407b764aaf21dc6c5c09c348409b201751 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+b755f8b9936d084e0363ce6b393c7e444a37080e" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 43f237bfbfc7ed24f27b880b2c6251f4683447700cf99bd35187cfacc06f4548 [INFO] running `Command { std: "docker" "start" "-a" "43f237bfbfc7ed24f27b880b2c6251f4683447700cf99bd35187cfacc06f4548", kill_on_drop: false }` [INFO] [stderr] Compiling pkg-config v0.3.23 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.33 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling libc v0.2.109 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling smallvec v1.7.0 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling cc v1.0.72 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Compiling anyhow v1.0.51 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling strum v0.21.0 [INFO] [stderr] Compiling version-compare v0.0.11 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling xml-rs v0.8.4 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling unicode-width v0.1.9 [INFO] [stderr] Compiling crc32fast v1.3.0 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling futures-core v0.3.18 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling encoding_index_tests v0.1.4 [INFO] [stderr] Compiling bindgen v0.56.0 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling futures-task v0.3.18 [INFO] [stderr] Compiling shlex v0.1.1 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling futures-util v0.3.18 [INFO] [stderr] Compiling futures-channel v0.3.18 [INFO] [stderr] Compiling slab v0.4.5 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.15 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling pin-project-lite v0.2.7 [INFO] [stderr] Compiling downcast-rs v1.2.0 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling cty v0.2.2 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling weezl v0.1.5 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling float-ord v0.2.0 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling bytemuck v1.7.2 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling typed-arena v2.0.1 [INFO] [stderr] Compiling sw-composite v0.7.14 [INFO] [stderr] Compiling libloading v0.7.2 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling nom v7.1.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling cfg-expr v0.8.1 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling cmake v0.1.46 [INFO] [stderr] Compiling wayland-sys v0.28.6 [INFO] [stderr] Compiling servo-fontconfig-sys v4.0.6 [INFO] [stderr] Compiling x11-dl v2.19.1 [INFO] [stderr] Compiling pest v2.1.3 [INFO] [stderr] Compiling minifb v0.20.0 [INFO] [stderr] Compiling inflate v0.4.5 [INFO] [stderr] Compiling miniz_oxide v0.3.7 [INFO] [stderr] Compiling deflate v0.9.1 [INFO] [stderr] Compiling clang-sys v1.3.0 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling deflate v0.7.20 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Compiling encoding-index-korean v1.20141219.5 [INFO] [stderr] Compiling encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-japanese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Compiling encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Compiling raw-window-handle v0.4.2 [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stderr] Compiling gif v0.11.3 [INFO] [stderr] Compiling servo-freetype-sys v4.0.3 [INFO] [stderr] Compiling expat-sys v2.1.6 [INFO] [stderr] Compiling semver-parser v0.10.2 [INFO] [stderr] Compiling encoding v0.2.33 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling dirs-sys v0.3.6 [INFO] [stderr] Compiling raw-window-handle v0.3.4 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling which v3.1.1 [INFO] [stderr] Compiling semver v0.11.0 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Compiling nix v0.20.2 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling png v0.15.3 [INFO] [stderr] Compiling png v0.16.8 [INFO] [stderr] Compiling dirs v2.0.2 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling rustc_version v0.3.3 [INFO] [stderr] Compiling wayland-scanner v0.28.6 [INFO] [stderr] Compiling png v0.17.2 [INFO] [stderr] Compiling euclid v0.20.14 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling crossbeam-deque v0.8.1 [INFO] [stderr] Compiling freetype v0.4.1 [INFO] [stderr] Compiling cexpr v0.4.0 [INFO] [stderr] Compiling futures-executor v0.3.18 [INFO] [stderr] Compiling lyon_geom v0.15.3 [INFO] [stderr] Compiling xcursor v0.3.4 [INFO] [stderr] Compiling pathfinder_simd v0.5.1 [INFO] [stderr] Compiling servo-fontconfig v0.4.0 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling env_logger v0.8.4 [INFO] [stderr] Compiling wayland-commons v0.28.6 [INFO] [stderr] Compiling wayland-client v0.28.6 [INFO] [stderr] Compiling wayland-protocols v0.28.6 [INFO] [stderr] Compiling tempfile v3.2.0 [INFO] [stderr] Compiling pathfinder_geometry v0.5.1 [INFO] [stderr] Compiling font-kit v0.7.1 [INFO] [stderr] Compiling raqote v0.8.0 [INFO] [stderr] Compiling jpeg-decoder v0.1.22 [INFO] [stderr] Compiling tiff v0.6.1 [INFO] [stderr] Compiling wayland-cursor v0.28.6 [INFO] [stderr] Compiling image v0.23.14 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling strum_macros v0.21.1 [INFO] [stderr] Compiling xkbcommon-sys v0.7.5 [INFO] [stderr] Compiling xkb v0.2.1 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling proc-macro-crate v1.1.0 [INFO] [stderr] Compiling glib-macros v0.14.1 [INFO] [stderr] Compiling system-deps v3.2.0 [INFO] [stderr] Compiling glib-sys v0.14.0 [INFO] [stderr] Compiling gobject-sys v0.14.0 [INFO] [stderr] Compiling cairo-sys-rs v0.14.9 [INFO] [stderr] Compiling glib v0.14.8 [INFO] [stderr] Compiling cairo-rs v0.14.9 [INFO] [stderr] Compiling my-project v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: associated function `make` is never used [INFO] [stdout] --> src/graph.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn make(el: Vec>) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `my_project` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use my_project; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread` [INFO] [stdout] --> src/raqote_example.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{thread, time}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MouseMode`, `ScaleMode`, `Scale`, `WindowOptions`, `Window` [INFO] [stdout] --> src/chess.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use minifb::{MouseMode, Window, WindowOptions, ScaleMode, Scale}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Format` [INFO] [stdout] --> src/chess.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | use cairo::{ ImageSurface, Format, Context }; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `font_kit::family_name::FamilyName` [INFO] [stdout] --> src/chess.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use font_kit::family_name::FamilyName; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `font_kit::properties::Properties` [INFO] [stdout] --> src/chess.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use font_kit::properties::Properties; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `font_kit::source::SystemSource` [INFO] [stdout] --> src/chess.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use font_kit::source::SystemSource; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `image::io::Reader as ImageReader` [INFO] [stdout] --> src/chess.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use image::io::Reader as ImageReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `image::imageops::FilterType` [INFO] [stdout] --> src/chess.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use image::imageops::FilterType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::from_utf8` [INFO] [stdout] --> src/net_chess.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::str::from_utf8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WindowOptions` [INFO] [stdout] --> src/net_chess.rs:3:46 [INFO] [stdout] | [INFO] [stdout] 3 | use minifb::{MouseMode, MouseButton, Window, WindowOptions}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Format` [INFO] [stdout] --> src/net_chess.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | use cairo::{ ImageSurface, Format, Context }; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MouseButton`, `MouseMode` [INFO] [stdout] --> src/main.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | use minifb::{MouseMode, MouseButton, Window, WindowOptions}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/main.rs:8:36 [INFO] [stdout] | [INFO] [stdout] 8 | use cairo::{ ImageSurface, Format, Context }; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/net_chess.rs:310:5 [INFO] [stdout] | [INFO] [stdout] 307 | / loop { [INFO] [stdout] 308 | | run_state = run_state.next()?; [INFO] [stdout] 309 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 310 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/net_chess.rs:328:5 [INFO] [stdout] | [INFO] [stdout] 325 | / loop { [INFO] [stdout] 326 | | run_state = run_state.next()?; [INFO] [stdout] 327 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 328 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dt` [INFO] [stdout] --> src/chess.rs:28:20 [INFO] [stdout] | [INFO] [stdout] 28 | fn draw(&self, dt: &mut Context, position: ScreenPosition) -> Result<(), Box> {Ok(())} [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `position` [INFO] [stdout] --> src/chess.rs:28:38 [INFO] [stdout] | [INFO] [stdout] 28 | fn draw(&self, dt: &mut Context, position: ScreenPosition) -> Result<(), Box> {Ok(())} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `surface` [INFO] [stdout] --> src/raqote_example.rs:25:46 [INFO] [stdout] | [INFO] [stdout] 25 | fn get_next_legal_click(window: &mut Window, surface: &mut ImageSurface, board: &chess::Board) -> chess::BoardPosition { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_surface` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/raqote_example.rs:25:74 [INFO] [stdout] | [INFO] [stdout] 25 | fn get_next_legal_click(window: &mut Window, surface: &mut ImageSurface, board: &chess::Board) -> chess::BoardPosition { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ONE_MILLI` is never used [INFO] [stdout] --> src/raqote_example.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const ONE_MILLI : time::Duration = time::Duration::from_millis(20); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WIDTH` is never used [INFO] [stdout] --> src/raqote_example.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const WIDTH: usize = 400; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HEIGHT` is never used [INFO] [stdout] --> src/raqote_example.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const HEIGHT: usize = 400; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `click_to_board` is never used [INFO] [stdout] --> src/raqote_example.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn click_to_board(pos: chess::ScreenPosition) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_next_legal_click` is never used [INFO] [stdout] --> src/raqote_example.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn get_next_legal_click(window: &mut Window, surface: &mut ImageSurface, board: &chess::Board) -> chess::BoardPosition { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw` is never used [INFO] [stdout] --> src/raqote_example.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn draw(window: &mut Window, surface: &mut ImageSurface, board: &chess::Board) -> Result<(), Box> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/raqote_example.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Knight`, `Bishop`, `Rook`, `Queen` and `King` are never constructed [INFO] [stdout] --> src/chess.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 48 | enum Piece { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 49 | Pawn(bool), [INFO] [stdout] 50 | Knight, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 51 | Bishop, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 52 | Rook, [INFO] [stdout] | ^^^^ [INFO] [stdout] 53 | Queen, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 54 | King [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Piece` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Empty` is never constructed [INFO] [stdout] --> src/chess.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 58 | enum BoardSquare { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 59 | Empty, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BoardSquare` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/chess.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct PngDrawable { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 69 | data: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `black_can_castle_left`, `white_can_castle_left`, `black_can_castle_right`, `white_can_castle_right` and `en_passant_square` are never read [INFO] [stdout] --> src/chess.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub struct GameState { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 104 | black_can_castle_left: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 105 | white_can_castle_left: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 106 | black_can_castle_right: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 107 | white_can_castle_right: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 108 | // If en passant is legal, the square of the pawn which can be captured via en passant. [INFO] [stdout] 109 | en_passant_square: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `c_to_sq` is never used [INFO] [stdout] --> src/chess.rs:387:4 [INFO] [stdout] | [INFO] [stdout] 387 | fn c_to_sq(c: char) -> BoardSquare { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `default_state` is never used [INFO] [stdout] --> src/chess.rs:401:7 [INFO] [stdout] | [INFO] [stdout] 401 | const default_state: &str = "\ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `base_dir` is never used [INFO] [stdout] --> src/chess.rs:411:7 [INFO] [stdout] | [INFO] [stdout] 411 | const base_dir: &str = "/Users/gabriel.marks/my-project/images/"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `piece_imagepaths` is never used [INFO] [stdout] --> src/chess.rs:413:7 [INFO] [stdout] | [INFO] [stdout] 413 | const piece_imagepaths: [(char, &str); 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/chess.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn new(path: &str, width: f64, height: f64) -> Result> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/chess.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 112 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `piece_iterator` is never used [INFO] [stdout] --> src/chess.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 123 | fn piece_iterator<'a>(&'a self) -> Box + 'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_legal` is never used [INFO] [stdout] --> src/chess.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn is_legal(&self, from_pos: BoardPosition, to_pos: BoardPosition) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_square_attacked` is never used [INFO] [stdout] --> src/chess.rs:197:8 [INFO] [stdout] | [INFO] [stdout] 197 | fn is_square_attacked(&self, pos: BoardPosition, attacker: Color) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_valid_rook_move` is never used [INFO] [stdout] --> src/chess.rs:215:8 [INFO] [stdout] | [INFO] [stdout] 215 | fn is_valid_rook_move(&self, from_pos: BoardPosition, to_pos: BoardPosition) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_valid_bishop_move` is never used [INFO] [stdout] --> src/chess.rs:239:8 [INFO] [stdout] | [INFO] [stdout] 239 | fn is_valid_bishop_move(&self, from_pos: BoardPosition, to_pos: BoardPosition) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_attacking_movement_ok` is never used [INFO] [stdout] --> src/chess.rs:259:8 [INFO] [stdout] | [INFO] [stdout] 259 | fn is_attacking_movement_ok(&self, from_pos: BoardPosition, to_pos: BoardPosition, pretend_occupied: bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_legal_start` is never used [INFO] [stdout] --> src/chess.rs:284:12 [INFO] [stdout] | [INFO] [stdout] 284 | pub fn is_legal_start(&self, pos: BoardPosition) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `do_move` is never used [INFO] [stdout] --> src/chess.rs:292:9 [INFO] [stdout] | [INFO] [stdout] 292 | pub fn do_move(&mut self, from_pos: BoardPosition, to_pos: BoardPosition) -> () { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_checkmate` is never used [INFO] [stdout] --> src/chess.rs:361:12 [INFO] [stdout] | [INFO] [stdout] 361 | pub fn is_checkmate(&mut self, attacker: Color) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/chess.rs:437:12 [INFO] [stdout] | [INFO] [stdout] 437 | pub fn new(width: f64, height: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `setup_new_game` is never used [INFO] [stdout] --> src/chess.rs:447:12 [INFO] [stdout] | [INFO] [stdout] 447 | pub fn setup_new_game(&mut self) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `setup_set_game` is never used [INFO] [stdout] --> src/chess.rs:451:12 [INFO] [stdout] | [INFO] [stdout] 451 | pub fn setup_set_game(&mut self, state: &str, turn: Color, bcl: bool, bcr: bool, wcl: bool, wcr: bool, eps: Option) ->... [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_checkmated` is never used [INFO] [stdout] --> src/chess.rs:467:12 [INFO] [stdout] | [INFO] [stdout] 467 | pub fn is_checkmated(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_server` is never used [INFO] [stdout] --> src/net_chess.rs:293:8 [INFO] [stdout] | [INFO] [stdout] 293 | pub fn run_server(board: chess::Board, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_client` is never used [INFO] [stdout] --> src/net_chess.rs:313:8 [INFO] [stdout] | [INFO] [stdout] 313 | pub fn run_client(board: chess::Board, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Knight`, `Bishop` and `Queen` are never constructed [INFO] [stdout] --> src/chess.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 48 | enum Piece { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 49 | Pawn(bool), [INFO] [stdout] 50 | Knight, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 51 | Bishop, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 52 | Rook, [INFO] [stdout] 53 | Queen, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Piece` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `default_state` should have an upper case name [INFO] [stdout] --> src/chess.rs:401:7 [INFO] [stdout] | [INFO] [stdout] 401 | const default_state: &str = "\ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `DEFAULT_STATE` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `base_dir` should have an upper case name [INFO] [stdout] --> src/chess.rs:411:7 [INFO] [stdout] | [INFO] [stdout] 411 | const base_dir: &str = "/Users/gabriel.marks/my-project/images/"; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `BASE_DIR` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `piece_imagepaths` should have an upper case name [INFO] [stdout] --> src/chess.rs:413:7 [INFO] [stdout] | [INFO] [stdout] 413 | const piece_imagepaths: [(char, &str); 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `PIECE_IMAGEPATHS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `light_color` should have an upper case name [INFO] [stdout] --> src/chess.rs:471:7 [INFO] [stdout] | [INFO] [stdout] 471 | const light_color: (f64, f64, f64) = (180.0 / 255.0, 175.0 / 255.0, 165.0 / 255.0); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `LIGHT_COLOR` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `dark_color` should have an upper case name [INFO] [stdout] --> src/chess.rs:472:7 [INFO] [stdout] | [INFO] [stdout] 472 | const dark_color: (f64, f64, f64) = (145.0 / 255.0, 140.0 / 255.0, 125.0 / 255.0); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `DARK_COLOR` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `highlight_color` should have an upper case name [INFO] [stdout] --> src/chess.rs:473:7 [INFO] [stdout] | [INFO] [stdout] 473 | const highlight_color: (f64, f64, f64) = (180.0 / 255.0, 80.0 / 255.0, 80.0 / 255.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `HIGHLIGHT_COLOR` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 59 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 20s [INFO] running `Command { std: "docker" "inspect" "43f237bfbfc7ed24f27b880b2c6251f4683447700cf99bd35187cfacc06f4548", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "43f237bfbfc7ed24f27b880b2c6251f4683447700cf99bd35187cfacc06f4548", kill_on_drop: false }` [INFO] [stdout] 43f237bfbfc7ed24f27b880b2c6251f4683447700cf99bd35187cfacc06f4548 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+b755f8b9936d084e0363ce6b393c7e444a37080e" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 00c97e4565c32aa8acdea06ccc9f117cfd42a54abf3b5f0bcb05380238930887 [INFO] running `Command { std: "docker" "start" "-a" "00c97e4565c32aa8acdea06ccc9f117cfd42a54abf3b5f0bcb05380238930887", kill_on_drop: false }` [INFO] [stderr] Compiling my-project v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: associated function `make` is never used [INFO] [stdout] --> src/graph.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn make(el: Vec>) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `my_project` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use my_project; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread` [INFO] [stdout] --> src/raqote_example.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{thread, time}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MouseMode`, `ScaleMode`, `Scale`, `WindowOptions`, `Window` [INFO] [stdout] --> src/chess.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use minifb::{MouseMode, Window, WindowOptions, ScaleMode, Scale}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Format` [INFO] [stdout] --> src/chess.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | use cairo::{ ImageSurface, Format, Context }; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `font_kit::family_name::FamilyName` [INFO] [stdout] --> src/chess.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use font_kit::family_name::FamilyName; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `font_kit::properties::Properties` [INFO] [stdout] --> src/chess.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use font_kit::properties::Properties; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `font_kit::source::SystemSource` [INFO] [stdout] --> src/chess.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use font_kit::source::SystemSource; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `image::io::Reader as ImageReader` [INFO] [stdout] --> src/chess.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use image::io::Reader as ImageReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `image::imageops::FilterType` [INFO] [stdout] --> src/chess.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use image::imageops::FilterType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::from_utf8` [INFO] [stdout] --> src/net_chess.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::str::from_utf8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WindowOptions` [INFO] [stdout] --> src/net_chess.rs:3:46 [INFO] [stdout] | [INFO] [stdout] 3 | use minifb::{MouseMode, MouseButton, Window, WindowOptions}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Format` [INFO] [stdout] --> src/net_chess.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | use cairo::{ ImageSurface, Format, Context }; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MouseButton`, `MouseMode` [INFO] [stdout] --> src/main.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | use minifb::{MouseMode, MouseButton, Window, WindowOptions}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/main.rs:8:36 [INFO] [stdout] | [INFO] [stdout] 8 | use cairo::{ ImageSurface, Format, Context }; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/net_chess.rs:310:5 [INFO] [stdout] | [INFO] [stdout] 307 | / loop { [INFO] [stdout] 308 | | run_state = run_state.next()?; [INFO] [stdout] 309 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 310 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/net_chess.rs:328:5 [INFO] [stdout] | [INFO] [stdout] 325 | / loop { [INFO] [stdout] 326 | | run_state = run_state.next()?; [INFO] [stdout] 327 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 328 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dt` [INFO] [stdout] --> src/chess.rs:28:20 [INFO] [stdout] | [INFO] [stdout] 28 | fn draw(&self, dt: &mut Context, position: ScreenPosition) -> Result<(), Box> {Ok(())} [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `position` [INFO] [stdout] --> src/chess.rs:28:38 [INFO] [stdout] | [INFO] [stdout] 28 | fn draw(&self, dt: &mut Context, position: ScreenPosition) -> Result<(), Box> {Ok(())} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `surface` [INFO] [stdout] --> src/raqote_example.rs:25:46 [INFO] [stdout] | [INFO] [stdout] 25 | fn get_next_legal_click(window: &mut Window, surface: &mut ImageSurface, board: &chess::Board) -> chess::BoardPosition { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_surface` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/raqote_example.rs:25:74 [INFO] [stdout] | [INFO] [stdout] 25 | fn get_next_legal_click(window: &mut Window, surface: &mut ImageSurface, board: &chess::Board) -> chess::BoardPosition { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ONE_MILLI` is never used [INFO] [stdout] --> src/raqote_example.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const ONE_MILLI : time::Duration = time::Duration::from_millis(20); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WIDTH` is never used [INFO] [stdout] --> src/raqote_example.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const WIDTH: usize = 400; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HEIGHT` is never used [INFO] [stdout] --> src/raqote_example.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const HEIGHT: usize = 400; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `click_to_board` is never used [INFO] [stdout] --> src/raqote_example.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn click_to_board(pos: chess::ScreenPosition) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_next_legal_click` is never used [INFO] [stdout] --> src/raqote_example.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn get_next_legal_click(window: &mut Window, surface: &mut ImageSurface, board: &chess::Board) -> chess::BoardPosition { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw` is never used [INFO] [stdout] --> src/raqote_example.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn draw(window: &mut Window, surface: &mut ImageSurface, board: &chess::Board) -> Result<(), Box> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/raqote_example.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/chess.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct PngDrawable { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 69 | data: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `default_state` is never used [INFO] [stdout] --> src/chess.rs:401:7 [INFO] [stdout] | [INFO] [stdout] 401 | const default_state: &str = "\ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `setup_new_game` is never used [INFO] [stdout] --> src/chess.rs:447:12 [INFO] [stdout] | [INFO] [stdout] 447 | pub fn setup_new_game(&mut self) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_server` is never used [INFO] [stdout] --> src/net_chess.rs:293:8 [INFO] [stdout] | [INFO] [stdout] 293 | pub fn run_server(board: chess::Board, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_client` is never used [INFO] [stdout] --> src/net_chess.rs:313:8 [INFO] [stdout] | [INFO] [stdout] 313 | pub fn run_client(board: chess::Board, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `default_state` should have an upper case name [INFO] [stdout] --> src/chess.rs:401:7 [INFO] [stdout] | [INFO] [stdout] 401 | const default_state: &str = "\ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `DEFAULT_STATE` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `base_dir` should have an upper case name [INFO] [stdout] --> src/chess.rs:411:7 [INFO] [stdout] | [INFO] [stdout] 411 | const base_dir: &str = "/Users/gabriel.marks/my-project/images/"; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `BASE_DIR` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `piece_imagepaths` should have an upper case name [INFO] [stdout] --> src/chess.rs:413:7 [INFO] [stdout] | [INFO] [stdout] 413 | const piece_imagepaths: [(char, &str); 12] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `PIECE_IMAGEPATHS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `light_color` should have an upper case name [INFO] [stdout] --> src/chess.rs:471:7 [INFO] [stdout] | [INFO] [stdout] 471 | const light_color: (f64, f64, f64) = (180.0 / 255.0, 175.0 / 255.0, 165.0 / 255.0); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `LIGHT_COLOR` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `dark_color` should have an upper case name [INFO] [stdout] --> src/chess.rs:472:7 [INFO] [stdout] | [INFO] [stdout] 472 | const dark_color: (f64, f64, f64) = (145.0 / 255.0, 140.0 / 255.0, 125.0 / 255.0); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `DARK_COLOR` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `highlight_color` should have an upper case name [INFO] [stdout] --> src/chess.rs:473:7 [INFO] [stdout] | [INFO] [stdout] 473 | const highlight_color: (f64, f64, f64) = (180.0 / 255.0, 80.0 / 255.0, 80.0 / 255.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `HIGHLIGHT_COLOR` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 38 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 4.13s [INFO] running `Command { std: "docker" "inspect" "00c97e4565c32aa8acdea06ccc9f117cfd42a54abf3b5f0bcb05380238930887", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "00c97e4565c32aa8acdea06ccc9f117cfd42a54abf3b5f0bcb05380238930887", kill_on_drop: false }` [INFO] [stdout] 00c97e4565c32aa8acdea06ccc9f117cfd42a54abf3b5f0bcb05380238930887