[INFO] cloning repository https://github.com/WalrusGumboot/orst [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/WalrusGumboot/orst" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWalrusGumboot%2Forst", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWalrusGumboot%2Forst'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] eb7041a3c8bd9f7688e8f39637034a9093927326 [INFO] checking WalrusGumboot/orst against try#0f31acebf540c89e4a4d5d114959fe91973419cb for pr-147017 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWalrusGumboot%2Forst" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/WalrusGumboot/orst [INFO] finished tweaking git repo https://github.com/WalrusGumboot/orst [INFO] tweaked toml for git repo https://github.com/WalrusGumboot/orst written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/WalrusGumboot/orst on toolchain 0f31acebf540c89e4a4d5d114959fe91973419cb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0f31acebf540c89e4a4d5d114959fe91973419cb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/WalrusGumboot/orst 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" "+0f31acebf540c89e4a4d5d114959fe91973419cb" "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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+0f31acebf540c89e4a4d5d114959fe91973419cb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7c13067317aa33c98cbde285a87ca9bbb5f4ee4347b00fa30b7001b0f7580248 [INFO] running `Command { std: "docker" "start" "-a" "7c13067317aa33c98cbde285a87ca9bbb5f4ee4347b00fa30b7001b0f7580248", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7c13067317aa33c98cbde285a87ca9bbb5f4ee4347b00fa30b7001b0f7580248", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c13067317aa33c98cbde285a87ca9bbb5f4ee4347b00fa30b7001b0f7580248", kill_on_drop: false }` [INFO] [stdout] 7c13067317aa33c98cbde285a87ca9bbb5f4ee4347b00fa30b7001b0f7580248 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+0f31acebf540c89e4a4d5d114959fe91973419cb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e2b125f1846d826ae0a043f076bcaa10ac3de7140a1340b9229b1c013be61db2 [INFO] running `Command { std: "docker" "start" "-a" "e2b125f1846d826ae0a043f076bcaa10ac3de7140a1340b9229b1c013be61db2", kill_on_drop: false }` [INFO] [stderr] Compiling rustix v0.38.8 [INFO] [stderr] Checking bitflags v2.4.0 [INFO] [stderr] Compiling version-compare v0.1.1 [INFO] [stderr] Checking linux-raw-sys v0.4.5 [INFO] [stderr] Checking anstyle v1.0.1 [INFO] [stderr] Checking anstyle-query v1.0.0 [INFO] [stderr] Checking clap_lex v0.5.0 [INFO] [stderr] Compiling sdl2 v0.35.2 [INFO] [stderr] Checking anstyle-parse v0.2.1 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Compiling quote v1.0.32 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling syn v2.0.28 [INFO] [stderr] Compiling sdl2-sys v0.35.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Checking anstream v0.3.2 [INFO] [stderr] Checking clap_builder v4.3.21 [INFO] [stderr] Compiling clap_derive v4.3.12 [INFO] [stderr] Checking clap v4.3.21 [INFO] [stderr] Checking orst v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `GnomeSort` is never constructed [INFO] [stdout] --> src/algorithms/gnome.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct GnomeSort { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BubbleSort` is never constructed [INFO] [stdout] --> src/algorithms/bubble.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct BubbleSort { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OptimisedBubbleSort` is never constructed [INFO] [stdout] --> src/algorithms/optimised_bubble.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct OptimisedBubbleSort { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InternalState` is never used [INFO] [stdout] --> src/algorithms/comb.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | enum InternalState { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ReturnValue` is never used [INFO] [stdout] --> src/algorithms/comb.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | enum ReturnValue { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CombSort` is never constructed [INFO] [stdout] --> src/algorithms/comb.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct CombSort { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InsertionSort` is never constructed [INFO] [stdout] --> src/algorithms/insertion.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct InsertionSort { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BogoSort` is never constructed [INFO] [stdout] --> src/algorithms/bogo.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct BogoSort {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LEFT_COLOR` is never used [INFO] [stdout] --> src/bar.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const LEFT_COLOR: Color = Color::RGB(222, 100, 91); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RIGHT_COLOUR` is never used [INFO] [stdout] --> src/bar.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const RIGHT_COLOUR: Color = Color::RGB(126, 160, 224); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bar` is never constructed [INFO] [stdout] --> src/bar.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Bar { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rgb_to_hsv` is never used [INFO] [stdout] --> src/util.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn rgb_to_hsv(c: Color) -> (f64, f64, f64) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hsv_to_rgb` is never used [INFO] [stdout] --> src/util.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn hsv_to_rgb(hue: f64, sat: f64, val: f64) -> Color { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lerp_color` is never used [INFO] [stdout] --> src/util.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn lerp_color(a: Color, b: Color, t: f64) -> Color { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/algorithms/optimised_bubble.rs:19:35 [INFO] [stdout] | [INFO] [stdout] 19 | already_ok: unsafe { *NUM_ELEM_CELL.get().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)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/algorithms/comb.rs:36:33 [INFO] [stdout] | [INFO] [stdout] 36 | gap_size: unsafe { *NUM_ELEM_CELL.get().unwrap() } - 1, [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/bar.rs:23:42 [INFO] [stdout] | [INFO] [stdout] 23 | value as f64 / unsafe { *NUM_ELEM_CELL.get().unwrap() } as f64, [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: struct `GnomeSort` is never constructed [INFO] [stdout] --> src/algorithms/gnome.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct GnomeSort { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BubbleSort` is never constructed [INFO] [stdout] --> src/algorithms/bubble.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct BubbleSort { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OptimisedBubbleSort` is never constructed [INFO] [stdout] --> src/algorithms/optimised_bubble.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct OptimisedBubbleSort { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InternalState` is never used [INFO] [stdout] --> src/algorithms/comb.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | enum InternalState { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ReturnValue` is never used [INFO] [stdout] --> src/algorithms/comb.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | enum ReturnValue { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CombSort` is never constructed [INFO] [stdout] --> src/algorithms/comb.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct CombSort { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InsertionSort` is never constructed [INFO] [stdout] --> src/algorithms/insertion.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct InsertionSort { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BogoSort` is never constructed [INFO] [stdout] --> src/algorithms/bogo.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct BogoSort {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LEFT_COLOR` is never used [INFO] [stdout] --> src/bar.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const LEFT_COLOR: Color = Color::RGB(222, 100, 91); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RIGHT_COLOUR` is never used [INFO] [stdout] --> src/bar.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const RIGHT_COLOUR: Color = Color::RGB(126, 160, 224); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bar` is never constructed [INFO] [stdout] --> src/bar.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Bar { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rgb_to_hsv` is never used [INFO] [stdout] --> src/util.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn rgb_to_hsv(c: Color) -> (f64, f64, f64) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hsv_to_rgb` is never used [INFO] [stdout] --> src/util.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn hsv_to_rgb(hue: f64, sat: f64, val: f64) -> Color { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lerp_color` is never used [INFO] [stdout] --> src/util.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn lerp_color(a: Color, b: Color, t: f64) -> Color { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/algorithms/optimised_bubble.rs:19:35 [INFO] [stdout] | [INFO] [stdout] 19 | already_ok: unsafe { *NUM_ELEM_CELL.get().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)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/algorithms/comb.rs:36:33 [INFO] [stdout] | [INFO] [stdout] 36 | gap_size: unsafe { *NUM_ELEM_CELL.get().unwrap() } - 1, [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/bar.rs:23:42 [INFO] [stdout] | [INFO] [stdout] 23 | value as f64 / unsafe { *NUM_ELEM_CELL.get().unwrap() } as f64, [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/main.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | NUM_ELEM_CELL.get_or_init(|| args.bars); [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)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:71:40 [INFO] [stdout] | [INFO] [stdout] 71 | let num_elem_from_cell = unsafe { *NUM_ELEM_CELL.get().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/algorithms/optimised_bubble.rs:19:35 [INFO] [stdout] | [INFO] [stdout] 19 | already_ok: unsafe { *NUM_ELEM_CELL.get().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/algorithms/comb.rs:36:33 [INFO] [stdout] | [INFO] [stdout] 36 | gap_size: unsafe { *NUM_ELEM_CELL.get().unwrap() } - 1, [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/bar.rs:23:42 [INFO] [stdout] | [INFO] [stdout] 23 | value as f64 / unsafe { *NUM_ELEM_CELL.get().unwrap() } as f64, [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/main.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | NUM_ELEM_CELL.get_or_init(|| args.bars); [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)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:71:40 [INFO] [stdout] | [INFO] [stdout] 71 | let num_elem_from_cell = unsafe { *NUM_ELEM_CELL.get().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/algorithms/optimised_bubble.rs:19:35 [INFO] [stdout] | [INFO] [stdout] 19 | already_ok: unsafe { *NUM_ELEM_CELL.get().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/algorithms/comb.rs:36:33 [INFO] [stdout] | [INFO] [stdout] 36 | gap_size: unsafe { *NUM_ELEM_CELL.get().unwrap() } - 1, [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/bar.rs:23:42 [INFO] [stdout] | [INFO] [stdout] 23 | value as f64 / unsafe { *NUM_ELEM_CELL.get().unwrap() } as f64, [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 7.33s [INFO] running `Command { std: "docker" "inspect" "e2b125f1846d826ae0a043f076bcaa10ac3de7140a1340b9229b1c013be61db2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2b125f1846d826ae0a043f076bcaa10ac3de7140a1340b9229b1c013be61db2", kill_on_drop: false }` [INFO] [stdout] e2b125f1846d826ae0a043f076bcaa10ac3de7140a1340b9229b1c013be61db2