[INFO] cloning repository https://github.com/Reedus0/bnet [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Reedus0/bnet" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FReedus0%2Fbnet", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FReedus0%2Fbnet'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 03dea373c555acda29f9a7c41febfe73f04d644d [INFO] checking Reedus0/bnet/03dea373c555acda29f9a7c41febfe73f04d644d against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FReedus0%2Fbnet" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Reedus0/bnet on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Reedus0/bnet [INFO] finished tweaking git repo https://github.com/Reedus0/bnet [INFO] tweaked toml for git repo https://github.com/Reedus0/bnet written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Reedus0/bnet 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2e3af289a072a69e397e1bef87cf6bb76f739116b53dd07f78c25775f729c8ff [INFO] running `Command { std: "docker" "start" "-a" "2e3af289a072a69e397e1bef87cf6bb76f739116b53dd07f78c25775f729c8ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2e3af289a072a69e397e1bef87cf6bb76f739116b53dd07f78c25775f729c8ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e3af289a072a69e397e1bef87cf6bb76f739116b53dd07f78c25775f729c8ff", kill_on_drop: false }` [INFO] [stdout] 2e3af289a072a69e397e1bef87cf6bb76f739116b53dd07f78c25775f729c8ff [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 324e396de64f2ba5ee29c6a6d559a1bda76145060285e5b2ff1c6e9d158c9d32 [INFO] running `Command { std: "docker" "start" "-a" "324e396de64f2ba5ee29c6a6d559a1bda76145060285e5b2ff1c6e9d158c9d32", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Checking bnet_core v0.1.0 (/tmp/fixit/crates/core) [INFO] [stderr] Checking bnet v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/server/main.rs from 2021 edition to 2024 [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/server/main.rs:83:51 [INFO] [stdout] | [INFO] [stdout] 83 | msg: format!("{:?}", unsafe { &USERS }), [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 83 | msg: format!("{:?}", unsafe { addr_of!(USERS) }), [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/server/main.rs:148:28 [INFO] [stdout] | [INFO] [stdout] 148 | for client in unsafe { &mut USERS } { [INFO] [stdout] | ^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 148 | for client in unsafe { addr_of_mut!(USERS) } { [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/server/main.rs:156:28 [INFO] [stdout] | [INFO] [stdout] 156 | for client in unsafe { &mut USERS } { [INFO] [stdout] | ^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 156 | for client in unsafe { addr_of_mut!(USERS) } { [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/server/main.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | 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 borrow that must be used [INFO] [stdout] --> src/server/main.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | unsafe { &mut USERS.push(new_user) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 36 | unsafe { let _ = &mut USERS.push(new_user); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/server/main.rs:65:26 [INFO] [stdout] | [INFO] [stdout] 65 | unsafe { &mut USERS.remove(USERS.iter().position(|x| *x.ip == user.ip).unwrap()) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 65 | unsafe { let _ = &mut USERS.remove(USERS.iter().position(|x| *x.ip == user.ip).unwrap()); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `USER_RESPONSE` should have a snake case name [INFO] [stdout] --> src/server/main.rs:80:21 [INFO] [stdout] | [INFO] [stdout] 80 | let USER_RESPONSE: models::Request = models::Request { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `user_response` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ACTION_RESULT` should have a snake case name [INFO] [stdout] --> src/server/main.rs:112:21 [INFO] [stdout] | [INFO] [stdout] 112 | let ACTION_RESULT: models::Request = models::Request { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `action_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ACTION_RESPONSE` should have a snake case name [INFO] [stdout] --> src/server/main.rs:124:25 [INFO] [stdout] | [INFO] [stdout] 124 | let ACTION_RESPONSE: models::Request = models::Request { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `action_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/server/main.rs:83:51 [INFO] [stdout] | [INFO] [stdout] 83 | msg: format!("{:?}", unsafe { &USERS }), [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 83 | msg: format!("{:?}", unsafe { addr_of!(USERS) }), [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/client/main.rs from 2021 edition to 2024 [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/server/main.rs:148:28 [INFO] [stdout] | [INFO] [stdout] 148 | for client in unsafe { &mut USERS } { [INFO] [stdout] | ^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 148 | for client in unsafe { addr_of_mut!(USERS) } { [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/server/main.rs:156:28 [INFO] [stdout] | [INFO] [stdout] 156 | for client in unsafe { &mut USERS } { [INFO] [stdout] | ^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 156 | for client in unsafe { addr_of_mut!(USERS) } { [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/server/main.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | 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 borrow that must be used [INFO] [stdout] --> src/server/main.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | unsafe { &mut USERS.push(new_user) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 36 | unsafe { let _ = &mut USERS.push(new_user); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/server/main.rs:65:26 [INFO] [stdout] | [INFO] [stdout] 65 | unsafe { &mut USERS.remove(USERS.iter().position(|x| *x.ip == user.ip).unwrap()) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 65 | unsafe { let _ = &mut USERS.remove(USERS.iter().position(|x| *x.ip == user.ip).unwrap()); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `USER_RESPONSE` should have a snake case name [INFO] [stdout] --> src/server/main.rs:80:21 [INFO] [stdout] | [INFO] [stdout] 80 | let USER_RESPONSE: models::Request = models::Request { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `user_response` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ACTION_RESULT` should have a snake case name [INFO] [stdout] --> src/server/main.rs:112:21 [INFO] [stdout] | [INFO] [stdout] 112 | let ACTION_RESULT: models::Request = models::Request { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `action_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ACTION_RESPONSE` should have a snake case name [INFO] [stdout] --> src/server/main.rs:124:25 [INFO] [stdout] | [INFO] [stdout] 124 | let ACTION_RESPONSE: models::Request = models::Request { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `action_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/admin/main.rs from 2021 edition to 2024 [INFO] [stdout] warning: variable `ACTION_REQUEST` should have a snake case name [INFO] [stdout] --> src/client/main.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 39 | let ACTION_REQUEST = terminal::execute_command(args_formated); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `action_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/client/main.rs:40:25 [INFO] [stdout] | [INFO] [stdout] 40 | &utils::send_request(&stream, &ACTION_REQUEST); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 40 | let _ = &utils::send_request(&stream, &ACTION_REQUEST); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `LOGIN_REQUEST` should have a snake case name [INFO] [stdout] --> src/admin/main.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | let LOGIN_REQUEST: models::Request = models::Request { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `login_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ACTION_FOR` should have a snake case name [INFO] [stdout] --> src/admin/main.rs:36:29 [INFO] [stdout] | [INFO] [stdout] 36 | let ACTION_FOR: models::Request = models::Request { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `action_for` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `GET_ACTION_RESULT` should have a snake case name [INFO] [stdout] --> src/admin/main.rs:43:29 [INFO] [stdout] | [INFO] [stdout] 43 | let GET_ACTION_RESULT: models::Request = models::Request { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_action_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `LOGIN_REQUEST` should have a snake case name [INFO] [stdout] --> src/admin/main.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | let LOGIN_REQUEST: models::Request = models::Request { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `login_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ACTION_FOR` should have a snake case name [INFO] [stdout] --> src/admin/main.rs:36:29 [INFO] [stdout] | [INFO] [stdout] 36 | let ACTION_FOR: models::Request = models::Request { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `action_for` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `GET_ACTION_RESULT` should have a snake case name [INFO] [stdout] --> src/admin/main.rs:43:29 [INFO] [stdout] | [INFO] [stdout] 43 | let GET_ACTION_RESULT: models::Request = models::Request { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_action_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ACTION_REQUEST` should have a snake case name [INFO] [stdout] --> src/client/main.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 39 | let ACTION_REQUEST = terminal::execute_command(args_formated); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `action_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/client/main.rs:40:25 [INFO] [stdout] | [INFO] [stdout] 40 | &utils::send_request(&stream, &ACTION_REQUEST); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 40 | let _ = &utils::send_request(&stream, &ACTION_REQUEST); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.28s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking bnet v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: variable `LOGIN_REQUEST` should have a snake case name [INFO] [stdout] --> src/admin/main.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | let LOGIN_REQUEST: models::Request = models::Request { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `login_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ACTION_FOR` should have a snake case name [INFO] [stdout] --> src/admin/main.rs:36:29 [INFO] [stdout] | [INFO] [stdout] 36 | let ACTION_FOR: models::Request = models::Request { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `action_for` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `GET_ACTION_RESULT` should have a snake case name [INFO] [stdout] --> src/admin/main.rs:43:29 [INFO] [stdout] | [INFO] [stdout] 43 | let GET_ACTION_RESULT: models::Request = models::Request { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_action_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/server/main.rs:83:51 [INFO] [stdout] | [INFO] [stdout] 83 | msg: format!("{:?}", unsafe { &USERS }), [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 83 | msg: format!("{:?}", unsafe { addr_of!(USERS) }), [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `LOGIN_REQUEST` should have a snake case name [INFO] [stdout] --> src/admin/main.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | let LOGIN_REQUEST: models::Request = models::Request { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `login_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/server/main.rs:148:28 [INFO] [stdout] | [INFO] [stdout] 148 | for client in unsafe { &mut USERS } { [INFO] [stdout] | ^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 148 | for client in unsafe { addr_of_mut!(USERS) } { [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ACTION_FOR` should have a snake case name [INFO] [stdout] --> src/admin/main.rs:36:29 [INFO] [stdout] | [INFO] [stdout] 36 | let ACTION_FOR: models::Request = models::Request { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `action_for` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/server/main.rs:156:28 [INFO] [stdout] | [INFO] [stdout] 156 | for client in unsafe { &mut USERS } { [INFO] [stdout] | ^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 156 | for client in unsafe { addr_of_mut!(USERS) } { [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `GET_ACTION_RESULT` should have a snake case name [INFO] [stdout] --> src/admin/main.rs:43:29 [INFO] [stdout] | [INFO] [stdout] 43 | let GET_ACTION_RESULT: models::Request = models::Request { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_action_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/server/main.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | 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] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/server/main.rs:83:51 [INFO] [stdout] | [INFO] [stdout] 83 | msg: format!("{:?}", unsafe { &USERS }), [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 83 | msg: format!("{:?}", unsafe { addr_of!(USERS) }), [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ACTION_REQUEST` should have a snake case name [INFO] [stdout] --> src/client/main.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 39 | let ACTION_REQUEST = terminal::execute_command(args_formated); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `action_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/server/main.rs:148:28 [INFO] [stdout] | [INFO] [stdout] 148 | for client in unsafe { &mut USERS } { [INFO] [stdout] | ^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 148 | for client in unsafe { addr_of_mut!(USERS) } { [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/server/main.rs:156:28 [INFO] [stdout] | [INFO] [stdout] 156 | for client in unsafe { &mut USERS } { [INFO] [stdout] | ^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 156 | for client in unsafe { addr_of_mut!(USERS) } { [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/client/main.rs:40:25 [INFO] [stdout] | [INFO] [stdout] 40 | &utils::send_request(&stream, &ACTION_REQUEST); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 40 | let _ = &utils::send_request(&stream, &ACTION_REQUEST); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ACTION_REQUEST` should have a snake case name [INFO] [stdout] --> src/client/main.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 39 | let ACTION_REQUEST = terminal::execute_command(args_formated); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `action_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/client/main.rs:40:25 [INFO] [stdout] | [INFO] [stdout] 40 | &utils::send_request(&stream, &ACTION_REQUEST); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 40 | let _ = &utils::send_request(&stream, &ACTION_REQUEST); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0796`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/server/main.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | 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: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `bnet` (bin "server" test) due to 4 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 3 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0796`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bnet` (bin "server") due to 4 previous errors; 1 warning emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "324e396de64f2ba5ee29c6a6d559a1bda76145060285e5b2ff1c6e9d158c9d32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "324e396de64f2ba5ee29c6a6d559a1bda76145060285e5b2ff1c6e9d158c9d32", kill_on_drop: false }` [INFO] [stdout] 324e396de64f2ba5ee29c6a6d559a1bda76145060285e5b2ff1c6e9d158c9d32