[INFO] fetching crate java-threadpool 0.1.13... [INFO] checking java-threadpool-0.1.13 against master#d49be02cf6d2e2a01264fcdef1e20c826710c0f5 for pr-133570-1 [INFO] extracting crate java-threadpool 0.1.13 into /workspace/builds/worker-3-tc1/source [INFO] validating manifest of crates.io crate java-threadpool 0.1.13 on toolchain d49be02cf6d2e2a01264fcdef1e20c826710c0f5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d49be02cf6d2e2a01264fcdef1e20c826710c0f5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-3-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d49be02cf6d2e2a01264fcdef1e20c826710c0f5" "generate-lockfile" "--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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d49be02cf6d2e2a01264fcdef1e20c826710c0f5" "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-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+d49be02cf6d2e2a01264fcdef1e20c826710c0f5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bb09ef86ba03dfc18740d1f040fbba35aa3c1810666d0cddd55631e1c9e48587 [INFO] running `Command { std: "docker" "start" "-a" "bb09ef86ba03dfc18740d1f040fbba35aa3c1810666d0cddd55631e1c9e48587", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bb09ef86ba03dfc18740d1f040fbba35aa3c1810666d0cddd55631e1c9e48587", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb09ef86ba03dfc18740d1f040fbba35aa3c1810666d0cddd55631e1c9e48587", kill_on_drop: false }` [INFO] [stdout] bb09ef86ba03dfc18740d1f040fbba35aa3c1810666d0cddd55631e1c9e48587 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+d49be02cf6d2e2a01264fcdef1e20c826710c0f5" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2348939616e092117fb34a9a5486ff25f2db7e137df7b03b94dd7ab6e6fd728e [INFO] running `Command { std: "docker" "start" "-a" "2348939616e092117fb34a9a5486ff25f2db7e137df7b03b94dd7ab6e6fd728e", kill_on_drop: false }` [INFO] [stderr] Checking 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: 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: 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: 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: 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: 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/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: 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: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/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: 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: 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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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: 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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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.08s [INFO] running `Command { std: "docker" "inspect" "2348939616e092117fb34a9a5486ff25f2db7e137df7b03b94dd7ab6e6fd728e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2348939616e092117fb34a9a5486ff25f2db7e137df7b03b94dd7ab6e6fd728e", kill_on_drop: false }` [INFO] [stdout] 2348939616e092117fb34a9a5486ff25f2db7e137df7b03b94dd7ab6e6fd728e