[INFO] cloning repository https://github.com/balduvian/mtg-resample-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/balduvian/mtg-resample-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbalduvian%2Fmtg-resample-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbalduvian%2Fmtg-resample-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0f51e9731c4741927300eb1388db2e4e3686ee2b [INFO] testing balduvian/mtg-resample-rs against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbalduvian%2Fmtg-resample-rs" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/balduvian/mtg-resample-rs on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/balduvian/mtg-resample-rs [INFO] finished tweaking git repo https://github.com/balduvian/mtg-resample-rs [INFO] tweaked toml for git repo https://github.com/balduvian/mtg-resample-rs written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/balduvian/mtg-resample-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: dependency (rand) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f7a005ac99efa9134fa616167c8246e3d0c0c93f8026964f412e1f0a0111a7a6 [INFO] running `Command { std: "docker" "start" "-a" "f7a005ac99efa9134fa616167c8246e3d0c0c93f8026964f412e1f0a0111a7a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f7a005ac99efa9134fa616167c8246e3d0c0c93f8026964f412e1f0a0111a7a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f7a005ac99efa9134fa616167c8246e3d0c0c93f8026964f412e1f0a0111a7a6", kill_on_drop: false }` [INFO] [stdout] f7a005ac99efa9134fa616167c8246e3d0c0c93f8026964f412e1f0a0111a7a6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ed185d4e95568a9b01a5b325a23ea893911a3b221f8d569d2add18909319819d [INFO] running `Command { std: "docker" "start" "-a" "ed185d4e95568a9b01a5b325a23ea893911a3b221f8d569d2add18909319819d", kill_on_drop: false }` [INFO] [stderr] warning: dependency (rand) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.87 [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Compiling pin-project-lite v0.2.5 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling openssl v0.10.32 [INFO] [stderr] Compiling serde_derive v1.0.123 [INFO] [stderr] Compiling futures-task v0.3.13 [INFO] [stderr] Compiling serde v1.0.123 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling byteorder v1.4.2 [INFO] [stderr] Compiling weezl v0.1.4 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling bytemuck v1.5.1 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.3 [INFO] [stderr] Compiling memoffset v0.6.1 [INFO] [stderr] Compiling tokio v1.2.0 [INFO] [stderr] Compiling indexmap v1.6.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling rayon v1.5.0 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling instant v0.1.9 [INFO] [stderr] Compiling openssl-sys v0.9.60 [INFO] [stderr] Compiling lock_api v0.4.2 [INFO] [stderr] Compiling rayon-core v1.9.0 [INFO] [stderr] Compiling tinyvec v1.1.1 [INFO] [stderr] Compiling unicode-bidi v0.3.4 [INFO] [stderr] Compiling futures-channel v0.3.13 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling http-body v0.4.0 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling tracing v0.1.25 [INFO] [stderr] Compiling futures-util v0.3.13 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling miniz_oxide v0.3.7 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Compiling gif v0.11.1 [INFO] [stderr] Compiling png v0.16.8 [INFO] [stderr] Compiling unicode-normalization v0.1.17 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling signal-hook-registry v1.3.0 [INFO] [stderr] Compiling mio v0.7.9 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling native-tls v0.2.7 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.3 [INFO] [stderr] Compiling crossbeam-channel v0.5.0 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Compiling idna v0.2.2 [INFO] [stderr] Compiling crossbeam-deque v0.8.0 [INFO] [stderr] Compiling url v2.2.1 [INFO] [stderr] Compiling tokio-macros v1.1.0 [INFO] [stderr] Compiling pin-project-internal v1.0.5 [INFO] [stderr] Compiling jpeg-decoder v0.1.22 [INFO] [stderr] Compiling tiff v0.6.1 [INFO] [stderr] Compiling pin-project v1.0.5 [INFO] [stderr] Compiling image v0.23.14 [INFO] [stderr] Compiling tokio-util v0.6.3 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling h2 v0.3.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling hyper v0.14.4 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.1 [INFO] [stderr] Compiling mtg_resample_rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `get_card` [INFO] [stdout] --> src/new_sample.rs:2:65 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::{CardGrid, create_card_samples, create_sample_image, get_card}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `add_duplicates` [INFO] [stdout] --> src/new_sample.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::preprocess::{add_duplicates, count_brightness, create_brightness_counts, create_brightness_map, match_brightness}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::macros::support::thread_rng_n` [INFO] [stdout] --> src/preprocess.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::macros::support::thread_rng_n; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/new_sample.rs:51:6 [INFO] [stdout] | [INFO] [stdout] 51 | let mut sample_cards = create_card_samples(card_images, sample_size); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*card_images` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/preprocess.rs:108:3 [INFO] [stdout] | [INFO] [stdout] 106 | let original_image = &card_images[i as usize]; [INFO] [stdout] | ----------- immutable borrow occurs here [INFO] [stdout] 107 | [INFO] [stdout] 108 | card_images.push(original_image.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^----------------------^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_detail_order` [INFO] [stdout] --> src/new_sample.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn create_detail_order( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_select_grid` [INFO] [stdout] --> src/new_sample.rs:254:8 [INFO] [stdout] | [INFO] [stdout] 254 | pub fn create_select_grid( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `distance_from_center_squared` [INFO] [stdout] --> src/new_sample.rs:263:8 [INFO] [stdout] | [INFO] [stdout] 263 | pub fn distance_from_center_squared( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_visit_order` [INFO] [stdout] --> src/new_sample.rs:273:4 [INFO] [stdout] | [INFO] [stdout] 273 | fn create_visit_order( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 32.73s [INFO] running `Command { std: "docker" "inspect" "ed185d4e95568a9b01a5b325a23ea893911a3b221f8d569d2add18909319819d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed185d4e95568a9b01a5b325a23ea893911a3b221f8d569d2add18909319819d", kill_on_drop: false }` [INFO] [stdout] ed185d4e95568a9b01a5b325a23ea893911a3b221f8d569d2add18909319819d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8e0631f7d1545786532227fc80eb76164bad89fba274f2cc2d3985a831e00814 [INFO] running `Command { std: "docker" "start" "-a" "8e0631f7d1545786532227fc80eb76164bad89fba274f2cc2d3985a831e00814", kill_on_drop: false }` [INFO] [stderr] warning: dependency (rand) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] Compiling mtg_resample_rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `get_card` [INFO] [stdout] --> src/new_sample.rs:2:65 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::{CardGrid, create_card_samples, create_sample_image, get_card}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `add_duplicates` [INFO] [stdout] --> src/new_sample.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::preprocess::{add_duplicates, count_brightness, create_brightness_counts, create_brightness_map, match_brightness}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::macros::support::thread_rng_n` [INFO] [stdout] --> src/preprocess.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::macros::support::thread_rng_n; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/new_sample.rs:51:6 [INFO] [stdout] | [INFO] [stdout] 51 | let mut sample_cards = create_card_samples(card_images, sample_size); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*card_images` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/preprocess.rs:108:3 [INFO] [stdout] | [INFO] [stdout] 106 | let original_image = &card_images[i as usize]; [INFO] [stdout] | ----------- immutable borrow occurs here [INFO] [stdout] 107 | [INFO] [stdout] 108 | card_images.push(original_image.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^----------------------^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_detail_order` [INFO] [stdout] --> src/new_sample.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn create_detail_order( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_select_grid` [INFO] [stdout] --> src/new_sample.rs:254:8 [INFO] [stdout] | [INFO] [stdout] 254 | pub fn create_select_grid( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `distance_from_center_squared` [INFO] [stdout] --> src/new_sample.rs:263:8 [INFO] [stdout] | [INFO] [stdout] 263 | pub fn distance_from_center_squared( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_visit_order` [INFO] [stdout] --> src/new_sample.rs:273:4 [INFO] [stdout] | [INFO] [stdout] 273 | fn create_visit_order( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.63s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/mtg_resample_rs-b22b87c68f3e2000) [INFO] running `Command { std: "docker" "inspect" "8e0631f7d1545786532227fc80eb76164bad89fba274f2cc2d3985a831e00814", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8e0631f7d1545786532227fc80eb76164bad89fba274f2cc2d3985a831e00814", kill_on_drop: false }` [INFO] [stdout] 8e0631f7d1545786532227fc80eb76164bad89fba274f2cc2d3985a831e00814 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 0cd0a82ec5915d5f31012ad39039ada74646c6045f687f79a80d38f0da9720bb [INFO] running `Command { std: "docker" "start" "-a" "0cd0a82ec5915d5f31012ad39039ada74646c6045f687f79a80d38f0da9720bb", kill_on_drop: false }` [INFO] [stderr] warning: dependency (rand) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: unused import: `get_card` [INFO] [stderr] --> src/new_sample.rs:2:65 [INFO] [stderr] | [INFO] [stderr] 2 | use crate::{CardGrid, create_card_samples, create_sample_image, get_card}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `add_duplicates` [INFO] [stderr] --> src/new_sample.rs:3:25 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::preprocess::{add_duplicates, count_brightness, create_brightness_counts, create_brightness_map, match_brightness}; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio::macros::support::thread_rng_n` [INFO] [stderr] --> src/preprocess.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use tokio::macros::support::thread_rng_n; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/new_sample.rs:51:6 [INFO] [stderr] | [INFO] [stderr] 51 | let mut sample_cards = create_card_samples(card_images, sample_size); [INFO] [stderr] | ----^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: cannot borrow `*card_images` as mutable because it is also borrowed as immutable [INFO] [stderr] --> src/preprocess.rs:108:3 [INFO] [stderr] | [INFO] [stderr] 106 | let original_image = &card_images[i as usize]; [INFO] [stderr] | ----------- immutable borrow occurs here [INFO] [stderr] 107 | [INFO] [stderr] 108 | card_images.push(original_image.clone()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^----------------------^ [INFO] [stderr] | | | [INFO] [stderr] | | immutable borrow later used here [INFO] [stderr] | mutable borrow occurs here [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stderr] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stderr] = note: for more information, see issue #59159 [INFO] [stderr] [INFO] [stderr] warning: function is never used: `create_detail_order` [INFO] [stderr] --> src/new_sample.rs:158:8 [INFO] [stderr] | [INFO] [stderr] 158 | pub fn create_detail_order( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `create_select_grid` [INFO] [stderr] --> src/new_sample.rs:254:8 [INFO] [stderr] | [INFO] [stderr] 254 | pub fn create_select_grid( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `distance_from_center_squared` [INFO] [stderr] --> src/new_sample.rs:263:8 [INFO] [stderr] | [INFO] [stderr] 263 | pub fn distance_from_center_squared( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `create_visit_order` [INFO] [stderr] --> src/new_sample.rs:273:4 [INFO] [stderr] | [INFO] [stderr] 273 | fn create_visit_order( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `mtg_resample_rs` (bin "mtg_resample_rs" test) generated 9 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.12s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/mtg_resample_rs-b22b87c68f3e2000) [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" "0cd0a82ec5915d5f31012ad39039ada74646c6045f687f79a80d38f0da9720bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0cd0a82ec5915d5f31012ad39039ada74646c6045f687f79a80d38f0da9720bb", kill_on_drop: false }` [INFO] [stdout] 0cd0a82ec5915d5f31012ad39039ada74646c6045f687f79a80d38f0da9720bb