[INFO] cloning repository https://github.com/stas-at-ibm/rust-primes [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/stas-at-ibm/rust-primes" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstas-at-ibm%2Frust-primes", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstas-at-ibm%2Frust-primes'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6c4d90bc1a51335e836e126089f538e081232339 [INFO] checking stas-at-ibm/rust-primes against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstas-at-ibm%2Frust-primes" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/stas-at-ibm/rust-primes on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/stas-at-ibm/rust-primes [INFO] finished tweaking git repo https://github.com/stas-at-ibm/rust-primes [INFO] tweaked toml for git repo https://github.com/stas-at-ibm/rust-primes written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/stas-at-ibm/rust-primes already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded colored v2.0.0 [INFO] [stderr] Downloaded libc v0.2.135 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bb3f7a9ba968a532999f56a9fab2bad848340dea7c8df54b06eedf329a641a10 [INFO] running `Command { std: "docker" "start" "-a" "bb3f7a9ba968a532999f56a9fab2bad848340dea7c8df54b06eedf329a641a10", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bb3f7a9ba968a532999f56a9fab2bad848340dea7c8df54b06eedf329a641a10", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb3f7a9ba968a532999f56a9fab2bad848340dea7c8df54b06eedf329a641a10", kill_on_drop: false }` [INFO] [stdout] bb3f7a9ba968a532999f56a9fab2bad848340dea7c8df54b06eedf329a641a10 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 28de5f92178d970a1bae5c7ad763a96c05022e70a3daecbd8237f36f3a36944d [INFO] running `Command { std: "docker" "start" "-a" "28de5f92178d970a1bae5c7ad763a96c05022e70a3daecbd8237f36f3a36944d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.135 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking colored v2.0.0 [INFO] [stderr] Checking rust-primes v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `print_prime_in_color` [INFO] [stdout] --> src/main.rs:1:58 [INFO] [stdout] | [INFO] [stdout] 1 | use api::printer::{print_positive_number_prime_in_color, print_prime_in_color}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `print_prime_in_color` [INFO] [stdout] --> src/main.rs:1:58 [INFO] [stdout] | [INFO] [stdout] 1 | use api::printer::{print_positive_number_prime_in_color, print_prime_in_color}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate` is never used [INFO] [stdout] --> src/api/common.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn validate(amount_of_partitions: u64, search_range: &Range) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `break_down_search_range_into_partitions` is never used [INFO] [stdout] --> src/api/common.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn break_down_search_range_into_partitions( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_partition` is never used [INFO] [stdout] --> src/api/common.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn calculate_partition( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_primes_parallel` is never used [INFO] [stdout] --> src/api/finder_v1.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn find_primes_parallel( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `execute_threads` is never used [INFO] [stdout] --> src/api/finder_v1.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn execute_threads( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `worker` is never used [INFO] [stdout] --> src/api/finder_v1.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn worker(search_range: Range) -> JoinHandle> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_primes_parallel` is never used [INFO] [stdout] --> src/api/finder_v2.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn find_primes_parallel( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `execute_threads_tx_rx` is never used [INFO] [stdout] --> src/api/finder_v2.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn execute_threads_tx_rx( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `worker_tx_rx` is never used [INFO] [stdout] --> src/api/finder_v2.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn worker_tx_rx(search_range: Range, tx: Sender<(u64, bool)>) -> JoinHandle<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_prime_in_color` is never used [INFO] [stdout] --> src/api/printer.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn print_prime_in_color(list_with_primes: Vec<(u64, bool)>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `numbers` is never read [INFO] [stdout] --> src/model/search_range.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct SearchRange { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 6 | numbers: Range, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ThreadPanicError` is never constructed [INFO] [stdout] --> src/model/validation_error.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ValidationErrorKind { [INFO] [stdout] | ------------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 7 | ThreadPanicError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ValidationErrorKind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate` is never used [INFO] [stdout] --> src/api/common.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn validate(amount_of_partitions: u64, search_range: &Range) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `break_down_search_range_into_partitions` is never used [INFO] [stdout] --> src/api/common.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn break_down_search_range_into_partitions( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_partition` is never used [INFO] [stdout] --> src/api/common.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn calculate_partition( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_primes_parallel` is never used [INFO] [stdout] --> src/api/finder_v1.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn find_primes_parallel( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `execute_threads` is never used [INFO] [stdout] --> src/api/finder_v1.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn execute_threads( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `worker` is never used [INFO] [stdout] --> src/api/finder_v1.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn worker(search_range: Range) -> JoinHandle> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_primes_parallel` is never used [INFO] [stdout] --> src/api/finder_v2.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn find_primes_parallel( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `execute_threads_tx_rx` is never used [INFO] [stdout] --> src/api/finder_v2.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn execute_threads_tx_rx( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `worker_tx_rx` is never used [INFO] [stdout] --> src/api/finder_v2.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn worker_tx_rx(search_range: Range, tx: Sender<(u64, bool)>) -> JoinHandle<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_prime_in_color` is never used [INFO] [stdout] --> src/api/printer.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn print_prime_in_color(list_with_primes: Vec<(u64, bool)>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `numbers` is never read [INFO] [stdout] --> src/model/search_range.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct SearchRange { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 6 | numbers: Range, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ThreadPanicError` is never constructed [INFO] [stdout] --> src/model/validation_error.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ValidationErrorKind { [INFO] [stdout] | ------------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 7 | ThreadPanicError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ValidationErrorKind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.57s [INFO] running `Command { std: "docker" "inspect" "28de5f92178d970a1bae5c7ad763a96c05022e70a3daecbd8237f36f3a36944d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "28de5f92178d970a1bae5c7ad763a96c05022e70a3daecbd8237f36f3a36944d", kill_on_drop: false }` [INFO] [stdout] 28de5f92178d970a1bae5c7ad763a96c05022e70a3daecbd8237f36f3a36944d [INFO] checking stas-at-ibm/rust-primes against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstas-at-ibm%2Frust-primes" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/stas-at-ibm/rust-primes on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/stas-at-ibm/rust-primes [INFO] finished tweaking git repo https://github.com/stas-at-ibm/rust-primes [INFO] tweaked toml for git repo https://github.com/stas-at-ibm/rust-primes written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/stas-at-ibm/rust-primes already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 21915465f08e97b22a05dfa2a9ae7518d5f7beb0712b79b057deea5d07080fba [INFO] running `Command { std: "docker" "start" "-a" "21915465f08e97b22a05dfa2a9ae7518d5f7beb0712b79b057deea5d07080fba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "21915465f08e97b22a05dfa2a9ae7518d5f7beb0712b79b057deea5d07080fba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21915465f08e97b22a05dfa2a9ae7518d5f7beb0712b79b057deea5d07080fba", kill_on_drop: false }` [INFO] [stdout] 21915465f08e97b22a05dfa2a9ae7518d5f7beb0712b79b057deea5d07080fba [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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 -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b4562e77fd7508e1a23182681b5f6c550f4d1abb1bf5830fbdfc8d8a13001a42 [INFO] running `Command { std: "docker" "start" "-a" "b4562e77fd7508e1a23182681b5f6c550f4d1abb1bf5830fbdfc8d8a13001a42", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.135 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking colored v2.0.0 [INFO] [stderr] Checking rust-primes v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `print_prime_in_color` [INFO] [stdout] --> src/main.rs:1:58 [INFO] [stdout] | [INFO] [stdout] 1 | use api::printer::{print_positive_number_prime_in_color, print_prime_in_color}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `print_prime_in_color` [INFO] [stdout] --> src/main.rs:1:58 [INFO] [stdout] | [INFO] [stdout] 1 | use api::printer::{print_positive_number_prime_in_color, print_prime_in_color}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate` is never used [INFO] [stdout] --> src/api/common.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn validate(amount_of_partitions: u64, search_range: &Range) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `break_down_search_range_into_partitions` is never used [INFO] [stdout] --> src/api/common.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn break_down_search_range_into_partitions( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_partition` is never used [INFO] [stdout] --> src/api/common.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn calculate_partition( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_primes_parallel` is never used [INFO] [stdout] --> src/api/finder_v1.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn find_primes_parallel( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `execute_threads` is never used [INFO] [stdout] --> src/api/finder_v1.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn execute_threads( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `worker` is never used [INFO] [stdout] --> src/api/finder_v1.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn worker(search_range: Range) -> JoinHandle> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_primes_parallel` is never used [INFO] [stdout] --> src/api/finder_v2.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn find_primes_parallel( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `execute_threads_tx_rx` is never used [INFO] [stdout] --> src/api/finder_v2.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn execute_threads_tx_rx( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `worker_tx_rx` is never used [INFO] [stdout] --> src/api/finder_v2.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn worker_tx_rx(search_range: Range, tx: Sender<(u64, bool)>) -> JoinHandle<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_prime_in_color` is never used [INFO] [stdout] --> src/api/printer.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn print_prime_in_color(list_with_primes: Vec<(u64, bool)>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `numbers` is never read [INFO] [stdout] --> src/model/search_range.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct SearchRange { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 6 | numbers: Range, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ThreadPanicError` is never constructed [INFO] [stdout] --> src/model/validation_error.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ValidationErrorKind { [INFO] [stdout] | ------------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 7 | ThreadPanicError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ValidationErrorKind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/api/finder_v2.rs:68:6 [INFO] [stdout] | [INFO] [stdout] 56 | let (tx, rx): (Sender<(u64, bool)>, Receiver<(u64, bool)>) = mpsc::channel(); [INFO] [stdout] | -- -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 57 | [INFO] [stdout] 58 | let handles: Vec> = search_ranges_by_thread [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 68 | (Ok(rx), handles) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/api/finder_v2.rs:60:44 [INFO] [stdout] | [INFO] [stdout] 60 | .map(|search_range| (search_range, tx.clone())) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/api/finder_v2.rs:72:19 [INFO] [stdout] | [INFO] [stdout] 71 | fn worker_tx_rx(search_range: Range, tx: Sender<(u64, bool)>) -> JoinHandle<()> { [INFO] [stdout] | ----------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 72 | thread::spawn(move || { [INFO] [stdout] | ___________________^ [INFO] [stdout] 73 | | for num in search_range { [INFO] [stdout] 74 | | tx.send((num, is_prime(num))).unwrap(); [INFO] [stdout] 75 | | } [INFO] [stdout] 76 | | }) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/infrastructure/thread_pool.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 20 | let (sender, receiver) = mpsc::channel::(); [INFO] [stdout] | ------ -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 21 | let receiver = Arc::new(Mutex::new(receiver)); [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 22 | [INFO] [stdout] 23 | let mut workers = Vec::with_capacity(size); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 31 | sender: Some(sender), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/infrastructure/thread_pool.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn new(id: usize, receiver: Arc>>) -> Worker { [INFO] [stdout] | ----------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 67 | let thread = thread::spawn(move || loop { [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 92 | thread: Some(thread), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate` is never used [INFO] [stdout] --> src/api/common.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn validate(amount_of_partitions: u64, search_range: &Range) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `break_down_search_range_into_partitions` is never used [INFO] [stdout] --> src/api/common.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn break_down_search_range_into_partitions( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_partition` is never used [INFO] [stdout] --> src/api/common.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn calculate_partition( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_primes_parallel` is never used [INFO] [stdout] --> src/api/finder_v1.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn find_primes_parallel( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `execute_threads` is never used [INFO] [stdout] --> src/api/finder_v1.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn execute_threads( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `worker` is never used [INFO] [stdout] --> src/api/finder_v1.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn worker(search_range: Range) -> JoinHandle> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_primes_parallel` is never used [INFO] [stdout] --> src/api/finder_v2.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn find_primes_parallel( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `execute_threads_tx_rx` is never used [INFO] [stdout] --> src/api/finder_v2.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn execute_threads_tx_rx( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `worker_tx_rx` is never used [INFO] [stdout] --> src/api/finder_v2.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn worker_tx_rx(search_range: Range, tx: Sender<(u64, bool)>) -> JoinHandle<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_prime_in_color` is never used [INFO] [stdout] --> src/api/printer.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn print_prime_in_color(list_with_primes: Vec<(u64, bool)>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `numbers` is never read [INFO] [stdout] --> src/model/search_range.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct SearchRange { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 6 | numbers: Range, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ThreadPanicError` is never constructed [INFO] [stdout] --> src/model/validation_error.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ValidationErrorKind { [INFO] [stdout] | ------------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 7 | ThreadPanicError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ValidationErrorKind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/api/finder_v2.rs:68:6 [INFO] [stdout] | [INFO] [stdout] 56 | let (tx, rx): (Sender<(u64, bool)>, Receiver<(u64, bool)>) = mpsc::channel(); [INFO] [stdout] | -- -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 57 | [INFO] [stdout] 58 | let handles: Vec> = search_ranges_by_thread [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 68 | (Ok(rx), handles) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/api/finder_v2.rs:60:44 [INFO] [stdout] | [INFO] [stdout] 60 | .map(|search_range| (search_range, tx.clone())) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/api/finder_v2.rs:72:19 [INFO] [stdout] | [INFO] [stdout] 71 | fn worker_tx_rx(search_range: Range, tx: Sender<(u64, bool)>) -> JoinHandle<()> { [INFO] [stdout] | ----------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 72 | thread::spawn(move || { [INFO] [stdout] | ___________________^ [INFO] [stdout] 73 | | for num in search_range { [INFO] [stdout] 74 | | tx.send((num, is_prime(num))).unwrap(); [INFO] [stdout] 75 | | } [INFO] [stdout] 76 | | }) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/infrastructure/thread_pool.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 20 | let (sender, receiver) = mpsc::channel::(); [INFO] [stdout] | ------ -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 21 | let receiver = Arc::new(Mutex::new(receiver)); [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 22 | [INFO] [stdout] 23 | let mut workers = Vec::with_capacity(size); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 31 | sender: Some(sender), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/infrastructure/thread_pool.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn new(id: usize, receiver: Arc>>) -> Worker { [INFO] [stdout] | ----------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 67 | let thread = thread::spawn(move || loop { [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 92 | thread: Some(thread), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-primes` (bin "rust-primes") due to 6 previous errors; 13 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 5 previous errors; 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-primes` (bin "rust-primes" test) due to 6 previous errors; 13 warnings emitted [INFO] running `Command { std: "docker" "inspect" "b4562e77fd7508e1a23182681b5f6c550f4d1abb1bf5830fbdfc8d8a13001a42", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b4562e77fd7508e1a23182681b5f6c550f4d1abb1bf5830fbdfc8d8a13001a42", kill_on_drop: false }` [INFO] [stdout] b4562e77fd7508e1a23182681b5f6c550f4d1abb1bf5830fbdfc8d8a13001a42