[INFO] fetching crate java-threadpool 0.1.13... [INFO] testing java-threadpool-0.1.13 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate java-threadpool 0.1.13 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate java-threadpool 0.1.13 [INFO] finished tweaking crates.io crate java-threadpool 0.1.13 [INFO] tweaked toml for crates.io crate java-threadpool 0.1.13 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate java-threadpool 0.1.13 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b5c5119e532e9a970a782aae1173484c0e1bbadaa848c51b19f171688980a7b3 [INFO] running `Command { std: "docker" "start" "-a" "b5c5119e532e9a970a782aae1173484c0e1bbadaa848c51b19f171688980a7b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b5c5119e532e9a970a782aae1173484c0e1bbadaa848c51b19f171688980a7b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b5c5119e532e9a970a782aae1173484c0e1bbadaa848c51b19f171688980a7b3", kill_on_drop: false }` [INFO] [stdout] b5c5119e532e9a970a782aae1173484c0e1bbadaa848c51b19f171688980a7b3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 74f04345abe55a3311984ff2d9c78157290f3b80183a0444963023fff96965ad [INFO] running `Command { std: "docker" "start" "-a" "74f04345abe55a3311984ff2d9c78157290f3b80183a0444963023fff96965ad", kill_on_drop: false }` [INFO] [stderr] Compiling java-threadpool v0.1.13 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver` and `Sender` [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::mpsc::{Receiver, Sender, SyncSender}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LazyLock` [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::{mpsc, Arc, LazyLock, Mutex}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/ThreadPool_rs/Executor_rs.rs:33:58 [INFO] [stdout] | [INFO] [stdout] 33 | ... (*thread_size) = ((*thread_size) - 1); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 33 - (*thread_size) = ((*thread_size) - 1); [INFO] [stdout] 33 + (*thread_size) = (*thread_size) - 1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/ThreadPool_rs/Executor_rs.rs:68:62 [INFO] [stdout] | [INFO] [stdout] 68 | ... (*thread_size) = ((*thread_size) - 1); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 68 - (*thread_size) = ((*thread_size) - 1); [INFO] [stdout] 68 + (*thread_size) = (*thread_size) - 1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Mess_job` should have an upper camel case name [INFO] [stdout] --> src/ThreadPool_rs/Message_rs.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Mess_job((Job, Sender)), [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `MessJob` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:72:74 [INFO] [stdout] | [INFO] [stdout] 72 | ... (*thread_size) = ((*thread_size) - 1); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 72 - (*thread_size) = ((*thread_size) - 1); [INFO] [stdout] 72 + (*thread_size) = (*thread_size) - 1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/ThreadPool_rs/Executor_rs.rs:43:25 [INFO] [stdout] | [INFO] [stdout] 43 | Err(e) => () [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/ThreadPool_rs/Executor_rs.rs:81:29 [INFO] [stdout] | [INFO] [stdout] 81 | Err(e) => () [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/ThreadPool_rs/Executor_rs.rs:84:21 [INFO] [stdout] | [INFO] [stdout] 84 | Err(e) => () [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:84:41 [INFO] [stdout] | [INFO] [stdout] 84 | ... Err(e) => () [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:87:33 [INFO] [stdout] | [INFO] [stdout] 87 | ... Err(e) => () [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:70:53 [INFO] [stdout] | [INFO] [stdout] 47 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 70 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:48:25 [INFO] [stdout] | [INFO] [stdout] 48 | let mut thread_size = CORS_THREAD.lock().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `maximum_pool_size` and `maximum_queue` are never read [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ThreadPool { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | maximum_pool_size: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | maximum_queue: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Job` is never used [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:24:6 [INFO] [stdout] | [INFO] [stdout] 24 | type Job = Box; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `handle` is never read [INFO] [stdout] --> src/ThreadPool_rs/Executor_rs.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Executor { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 11 | handle: JoinHandle<()>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_thread` is never used [INFO] [stdout] --> src/ThreadPool_rs/Executor_rs.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Executor { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn new_thread(receiver: Arc>>){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `ThreadPool_rs` should have a snake case name [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | mod ThreadPool_rs; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `thread_pool_rs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Executor_rs` should have a snake case name [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | mod Executor_rs; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `executor_rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Message_rs` should have a snake case name [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | mod Message_rs; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `message_rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Future_rs` should have a snake case name [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub mod Future_rs; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `future_rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:48:43 [INFO] [stdout] | [INFO] [stdout] 48 | let mut thread_size = CORS_THREAD.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:49:47 [INFO] [stdout] | [INFO] [stdout] 49 | let mut non_thread_size = NON_CORE_THREAD.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:71:79 [INFO] [stdout] | [INFO] [stdout] 71 | ... let mut thread_size = CORS_THREAD.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:74:83 [INFO] [stdout] | [INFO] [stdout] 74 | ... let mut non_thread_size = NON_CORE_THREAD.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:109:35 [INFO] [stdout] | [INFO] [stdout] 109 | let mut thread_size = CORS_THREAD.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ThreadPool_rs/Executor_rs.rs:32:63 [INFO] [stdout] | [INFO] [stdout] 32 | ... let mut thread_size = CORS_THREAD.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ThreadPool_rs/Executor_rs.rs:67:67 [INFO] [stdout] | [INFO] [stdout] 67 | ... let mut thread_size = CORS_THREAD.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ThreadPool_rs/Executor_rs.rs:70:71 [INFO] [stdout] | [INFO] [stdout] 70 | ... let mut non_thread_size = NON_CORE_THREAD.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.53s [INFO] running `Command { std: "docker" "inspect" "74f04345abe55a3311984ff2d9c78157290f3b80183a0444963023fff96965ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74f04345abe55a3311984ff2d9c78157290f3b80183a0444963023fff96965ad", kill_on_drop: false }` [INFO] [stdout] 74f04345abe55a3311984ff2d9c78157290f3b80183a0444963023fff96965ad [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] bdc5e7be549ca6c42b39ad4f9f33ffafe853dde22755779fb2b18afcae7135c0 [INFO] running `Command { std: "docker" "start" "-a" "bdc5e7be549ca6c42b39ad4f9f33ffafe853dde22755779fb2b18afcae7135c0", kill_on_drop: false }` [INFO] [stderr] Compiling java-threadpool v0.1.13 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver` and `Sender` [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::mpsc::{Receiver, Sender, SyncSender}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LazyLock` [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::{mpsc, Arc, LazyLock, Mutex}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/ThreadPool_rs/Executor_rs.rs:33:58 [INFO] [stdout] | [INFO] [stdout] 33 | ... (*thread_size) = ((*thread_size) - 1); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 33 - (*thread_size) = ((*thread_size) - 1); [INFO] [stdout] 33 + (*thread_size) = (*thread_size) - 1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/ThreadPool_rs/Executor_rs.rs:68:62 [INFO] [stdout] | [INFO] [stdout] 68 | ... (*thread_size) = ((*thread_size) - 1); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 68 - (*thread_size) = ((*thread_size) - 1); [INFO] [stdout] 68 + (*thread_size) = (*thread_size) - 1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Mess_job` should have an upper camel case name [INFO] [stdout] --> src/ThreadPool_rs/Message_rs.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Mess_job((Job, Sender)), [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `MessJob` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:72:74 [INFO] [stdout] | [INFO] [stdout] 72 | ... (*thread_size) = ((*thread_size) - 1); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 72 - (*thread_size) = ((*thread_size) - 1); [INFO] [stdout] 72 + (*thread_size) = (*thread_size) - 1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/ThreadPool_rs/Executor_rs.rs:43:25 [INFO] [stdout] | [INFO] [stdout] 43 | Err(e) => () [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/ThreadPool_rs/Executor_rs.rs:81:29 [INFO] [stdout] | [INFO] [stdout] 81 | Err(e) => () [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/ThreadPool_rs/Executor_rs.rs:84:21 [INFO] [stdout] | [INFO] [stdout] 84 | Err(e) => () [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:84:41 [INFO] [stdout] | [INFO] [stdout] 84 | ... Err(e) => () [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:87:33 [INFO] [stdout] | [INFO] [stdout] 87 | ... Err(e) => () [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:70:53 [INFO] [stdout] | [INFO] [stdout] 47 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 70 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:48:25 [INFO] [stdout] | [INFO] [stdout] 48 | let mut thread_size = CORS_THREAD.lock().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `maximum_pool_size` and `maximum_queue` are never read [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ThreadPool { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | maximum_pool_size: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | maximum_queue: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Job` is never used [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:24:6 [INFO] [stdout] | [INFO] [stdout] 24 | type Job = Box; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `handle` is never read [INFO] [stdout] --> src/ThreadPool_rs/Executor_rs.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Executor { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 11 | handle: JoinHandle<()>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_thread` is never used [INFO] [stdout] --> src/ThreadPool_rs/Executor_rs.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Executor { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn new_thread(receiver: Arc>>){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `ThreadPool_rs` should have a snake case name [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | mod ThreadPool_rs; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `thread_pool_rs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Executor_rs` should have a snake case name [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | mod Executor_rs; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `executor_rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Message_rs` should have a snake case name [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | mod Message_rs; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `message_rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Future_rs` should have a snake case name [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub mod Future_rs; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `future_rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:48:43 [INFO] [stdout] | [INFO] [stdout] 48 | let mut thread_size = CORS_THREAD.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:49:47 [INFO] [stdout] | [INFO] [stdout] 49 | let mut non_thread_size = NON_CORE_THREAD.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:71:79 [INFO] [stdout] | [INFO] [stdout] 71 | ... let mut thread_size = CORS_THREAD.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:74:83 [INFO] [stdout] | [INFO] [stdout] 74 | ... let mut non_thread_size = NON_CORE_THREAD.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:109:35 [INFO] [stdout] | [INFO] [stdout] 109 | let mut thread_size = CORS_THREAD.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ThreadPool_rs/Executor_rs.rs:32:63 [INFO] [stdout] | [INFO] [stdout] 32 | ... let mut thread_size = CORS_THREAD.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ThreadPool_rs/Executor_rs.rs:67:67 [INFO] [stdout] | [INFO] [stdout] 67 | ... let mut thread_size = CORS_THREAD.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ThreadPool_rs/Executor_rs.rs:70:71 [INFO] [stdout] | [INFO] [stdout] 70 | ... let mut non_thread_size = NON_CORE_THREAD.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver` and `Sender` [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::mpsc::{Receiver, Sender, SyncSender}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LazyLock` [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::{mpsc, Arc, LazyLock, Mutex}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/ThreadPool_rs/Executor_rs.rs:33:58 [INFO] [stdout] | [INFO] [stdout] 33 | ... (*thread_size) = ((*thread_size) - 1); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 33 - (*thread_size) = ((*thread_size) - 1); [INFO] [stdout] 33 + (*thread_size) = (*thread_size) - 1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/ThreadPool_rs/Executor_rs.rs:68:62 [INFO] [stdout] | [INFO] [stdout] 68 | ... (*thread_size) = ((*thread_size) - 1); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 68 - (*thread_size) = ((*thread_size) - 1); [INFO] [stdout] 68 + (*thread_size) = (*thread_size) - 1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Mess_job` should have an upper camel case name [INFO] [stdout] --> src/ThreadPool_rs/Message_rs.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Mess_job((Job, Sender)), [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `MessJob` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:72:74 [INFO] [stdout] | [INFO] [stdout] 72 | ... (*thread_size) = ((*thread_size) - 1); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 72 - (*thread_size) = ((*thread_size) - 1); [INFO] [stdout] 72 + (*thread_size) = (*thread_size) - 1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/ThreadPool_rs/Executor_rs.rs:43:25 [INFO] [stdout] | [INFO] [stdout] 43 | Err(e) => () [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/ThreadPool_rs/Executor_rs.rs:81:29 [INFO] [stdout] | [INFO] [stdout] 81 | Err(e) => () [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/ThreadPool_rs/Executor_rs.rs:84:21 [INFO] [stdout] | [INFO] [stdout] 84 | Err(e) => () [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:84:41 [INFO] [stdout] | [INFO] [stdout] 84 | ... Err(e) => () [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:87:33 [INFO] [stdout] | [INFO] [stdout] 87 | ... Err(e) => () [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:70:53 [INFO] [stdout] | [INFO] [stdout] 47 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 70 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:48:25 [INFO] [stdout] | [INFO] [stdout] 48 | let mut thread_size = CORS_THREAD.lock().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `maximum_pool_size` and `maximum_queue` are never read [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ThreadPool { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | maximum_pool_size: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | maximum_queue: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Job` is never used [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:24:6 [INFO] [stdout] | [INFO] [stdout] 24 | type Job = Box; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `handle` is never read [INFO] [stdout] --> src/ThreadPool_rs/Executor_rs.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Executor { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 11 | handle: JoinHandle<()>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_thread` is never used [INFO] [stdout] --> src/ThreadPool_rs/Executor_rs.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Executor { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn new_thread(receiver: Arc>>){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `ThreadPool_rs` should have a snake case name [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | mod ThreadPool_rs; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `thread_pool_rs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Executor_rs` should have a snake case name [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | mod Executor_rs; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `executor_rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Message_rs` should have a snake case name [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | mod Message_rs; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `message_rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Future_rs` should have a snake case name [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub mod Future_rs; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `future_rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:48:43 [INFO] [stdout] | [INFO] [stdout] 48 | let mut thread_size = CORS_THREAD.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:49:47 [INFO] [stdout] | [INFO] [stdout] 49 | let mut non_thread_size = NON_CORE_THREAD.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:71:79 [INFO] [stdout] | [INFO] [stdout] 71 | ... let mut thread_size = CORS_THREAD.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:74:83 [INFO] [stdout] | [INFO] [stdout] 74 | ... let mut non_thread_size = NON_CORE_THREAD.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ThreadPool_rs/mod.rs:109:35 [INFO] [stdout] | [INFO] [stdout] 109 | let mut thread_size = CORS_THREAD.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ThreadPool_rs/Executor_rs.rs:32:63 [INFO] [stdout] | [INFO] [stdout] 32 | ... let mut thread_size = CORS_THREAD.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ThreadPool_rs/Executor_rs.rs:67:67 [INFO] [stdout] | [INFO] [stdout] 67 | ... let mut thread_size = CORS_THREAD.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ThreadPool_rs/Executor_rs.rs:70:71 [INFO] [stdout] | [INFO] [stdout] 70 | ... let mut non_thread_size = NON_CORE_THREAD.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.45s [INFO] running `Command { std: "docker" "inspect" "bdc5e7be549ca6c42b39ad4f9f33ffafe853dde22755779fb2b18afcae7135c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bdc5e7be549ca6c42b39ad4f9f33ffafe853dde22755779fb2b18afcae7135c0", kill_on_drop: false }` [INFO] [stdout] bdc5e7be549ca6c42b39ad4f9f33ffafe853dde22755779fb2b18afcae7135c0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 69c6bc60eec19677066e9f11ff2bdae6540368d2a1878b979fd3721087d060f9 [INFO] running `Command { std: "docker" "start" "-a" "69c6bc60eec19677066e9f11ff2bdae6540368d2a1878b979fd3721087d060f9", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::cell::RefCell` [INFO] [stderr] --> src/ThreadPool_rs/mod.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::cell::RefCell; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Receiver` and `Sender` [INFO] [stderr] --> src/ThreadPool_rs/mod.rs:2:23 [INFO] [stderr] | [INFO] [stderr] 2 | use std::sync::mpsc::{Receiver, Sender, SyncSender}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `LazyLock` [INFO] [stderr] --> src/ThreadPool_rs/mod.rs:3:28 [INFO] [stderr] | [INFO] [stderr] 3 | use std::sync::{mpsc, Arc, LazyLock, Mutex}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/ThreadPool_rs/Executor_rs.rs:33:58 [INFO] [stderr] | [INFO] [stderr] 33 | ... (*thread_size) = ((*thread_size) - 1); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 33 - (*thread_size) = ((*thread_size) - 1); [INFO] [stderr] 33 + (*thread_size) = (*thread_size) - 1; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/ThreadPool_rs/Executor_rs.rs:68:62 [INFO] [stderr] | [INFO] [stderr] 68 | ... (*thread_size) = ((*thread_size) - 1); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 68 - (*thread_size) = ((*thread_size) - 1); [INFO] [stderr] 68 + (*thread_size) = (*thread_size) - 1; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: variant `Mess_job` should have an upper camel case name [INFO] [stderr] --> src/ThreadPool_rs/Message_rs.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | Mess_job((Job, Sender)), [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to upper camel case: `MessJob` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/ThreadPool_rs/mod.rs:72:74 [INFO] [stderr] | [INFO] [stderr] 72 | ... (*thread_size) = ((*thread_size) - 1); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 72 - (*thread_size) = ((*thread_size) - 1); [INFO] [stderr] 72 + (*thread_size) = (*thread_size) - 1; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/ThreadPool_rs/Executor_rs.rs:43:25 [INFO] [stderr] | [INFO] [stderr] 43 | Err(e) => () [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/ThreadPool_rs/Executor_rs.rs:81:29 [INFO] [stderr] | [INFO] [stderr] 81 | Err(e) => () [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/ThreadPool_rs/Executor_rs.rs:84:21 [INFO] [stderr] | [INFO] [stderr] 84 | Err(e) => () [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/ThreadPool_rs/mod.rs:84:41 [INFO] [stderr] | [INFO] [stderr] 84 | ... Err(e) => () [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/ThreadPool_rs/mod.rs:87:33 [INFO] [stderr] | [INFO] [stderr] 87 | ... Err(e) => () [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/ThreadPool_rs/mod.rs:70:53 [INFO] [stderr] | [INFO] [stderr] 47 | unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stderr] 70 | unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/ThreadPool_rs/mod.rs:48:25 [INFO] [stderr] | [INFO] [stderr] 48 | let mut thread_size = CORS_THREAD.lock().unwrap(); [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: fields `maximum_pool_size` and `maximum_queue` are never read [INFO] [stderr] --> src/ThreadPool_rs/mod.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 17 | pub struct ThreadPool { [INFO] [stderr] | ---------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 20 | maximum_pool_size: usize, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] 21 | maximum_queue: usize, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type alias `Job` is never used [INFO] [stderr] --> src/ThreadPool_rs/mod.rs:24:6 [INFO] [stderr] | [INFO] [stderr] 24 | type Job = Box; [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: field `handle` is never read [INFO] [stderr] --> src/ThreadPool_rs/Executor_rs.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 10 | pub struct Executor { [INFO] [stderr] | -------- field in this struct [INFO] [stderr] 11 | handle: JoinHandle<()>, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new_thread` is never used [INFO] [stderr] --> src/ThreadPool_rs/Executor_rs.rs:52:12 [INFO] [stderr] | [INFO] [stderr] 13 | impl Executor { [INFO] [stderr] | ------------- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 52 | pub fn new_thread(receiver: Arc>>){ [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: module `ThreadPool_rs` should have a snake case name [INFO] [stderr] --> src/lib.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | mod ThreadPool_rs; [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `thread_pool_rs` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: module `Executor_rs` should have a snake case name [INFO] [stderr] --> src/ThreadPool_rs/mod.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | mod Executor_rs; [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `executor_rs` [INFO] [stderr] [INFO] [stderr] warning: module `Message_rs` should have a snake case name [INFO] [stderr] --> src/ThreadPool_rs/mod.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | mod Message_rs; [INFO] [stderr] | ^^^^^^^^^^ help: convert the identifier to snake case: `message_rs` [INFO] [stderr] [INFO] [stderr] warning: module `Future_rs` should have a snake case name [INFO] [stderr] --> src/ThreadPool_rs/mod.rs:8:9 [INFO] [stderr] | [INFO] [stderr] 8 | pub mod Future_rs; [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `future_rs` [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/ThreadPool_rs/mod.rs:48:43 [INFO] [stderr] | [INFO] [stderr] 48 | let mut thread_size = CORS_THREAD.lock().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/ThreadPool_rs/mod.rs:49:47 [INFO] [stderr] | [INFO] [stderr] 49 | let mut non_thread_size = NON_CORE_THREAD.lock().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/ThreadPool_rs/mod.rs:71:79 [INFO] [stderr] | [INFO] [stderr] 71 | ... let mut thread_size = CORS_THREAD.lock().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/ThreadPool_rs/mod.rs:74:83 [INFO] [stderr] | [INFO] [stderr] 74 | ... let mut non_thread_size = NON_CORE_THREAD.lock().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/ThreadPool_rs/mod.rs:109:35 [INFO] [stderr] | [INFO] [stderr] 109 | let mut thread_size = CORS_THREAD.lock().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/ThreadPool_rs/Executor_rs.rs:32:63 [INFO] [stderr] | [INFO] [stderr] 32 | ... let mut thread_size = CORS_THREAD.lock().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/ThreadPool_rs/Executor_rs.rs:67:67 [INFO] [stderr] | [INFO] [stderr] 67 | ... let mut thread_size = CORS_THREAD.lock().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/ThreadPool_rs/Executor_rs.rs:70:71 [INFO] [stderr] | [INFO] [stderr] 70 | ... let mut non_thread_size = NON_CORE_THREAD.lock().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: `java-threadpool` (lib) generated 30 warnings (run `cargo fix --lib -p java-threadpool` to apply 7 suggestions) [INFO] [stderr] warning: `java-threadpool` (lib test) generated 30 warnings (30 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/java_threadpool-30e91b54edf219e7) [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" "69c6bc60eec19677066e9f11ff2bdae6540368d2a1878b979fd3721087d060f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "69c6bc60eec19677066e9f11ff2bdae6540368d2a1878b979fd3721087d060f9", kill_on_drop: false }` [INFO] [stdout] 69c6bc60eec19677066e9f11ff2bdae6540368d2a1878b979fd3721087d060f9