[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] building Reedus0/bnet against try#9b5e8b16bd1c4acf4cf8e6880368314cf021a987+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FReedus0%2Fbnet" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Reedus0/bnet on toolchain 9b5e8b16bd1c4acf4cf8e6880368314cf021a987 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "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-5-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" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8fcc1b27a04298b62eb5dda12a5c6aa019cf98d914d301f091dfe5c816bc26d5 [INFO] running `Command { std: "docker" "start" "-a" "8fcc1b27a04298b62eb5dda12a5c6aa019cf98d914d301f091dfe5c816bc26d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8fcc1b27a04298b62eb5dda12a5c6aa019cf98d914d301f091dfe5c816bc26d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8fcc1b27a04298b62eb5dda12a5c6aa019cf98d914d301f091dfe5c816bc26d5", kill_on_drop: false }` [INFO] [stdout] 8fcc1b27a04298b62eb5dda12a5c6aa019cf98d914d301f091dfe5c816bc26d5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 952a92da126ecb8eb9c8e32d9d1eb827b71c3bfdebaae8d6b83ae5cd10cca96c [INFO] running `Command { std: "docker" "start" "-a" "952a92da126ecb8eb9c8e32d9d1eb827b71c3bfdebaae8d6b83ae5cd10cca96c", kill_on_drop: false }` [INFO] [stderr] Compiling bnet_core v0.1.0 (/opt/rustwide/workdir/crates/core) [INFO] [stderr] Compiling bnet v0.1.0 (/opt/rustwide/workdir) [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: 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: a temporary value will be dropped here before the execution exits the block in Edition 2024, which will raise borrow checking error [INFO] [stdout] --> src/server/main.rs:70:78 [INFO] [stdout] | [INFO] [stdout] 70 | if request.get_msg() == unsafe { &config::PASSWORD.to_string() } { [INFO] [stdout] | ----------------------------^ [INFO] [stdout] | | [INFO] [stdout] | consider using a `let` binding to create a longer lived value; or replacing the `{ .. }` block with curly brackets `( .. )`; or folding the rest of the expression into the surrounding `unsafe { .. }` [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [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: 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: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/server/main.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 36 | unsafe { &mut USERS.push(new_user) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [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: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/server/main.rs:65:31 [INFO] [stdout] | [INFO] [stdout] 65 | unsafe { &mut USERS.remove(USERS.iter().position(|x| *x.ip == user.ip).unwrap()) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/server/main.rs:65:44 [INFO] [stdout] | [INFO] [stdout] 65 | unsafe { &mut USERS.remove(USERS.iter().position(|x| *x.ip == user.ip).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/server/main.rs:70:51 [INFO] [stdout] | [INFO] [stdout] 70 | if request.get_msg() == unsafe { &config::PASSWORD.to_string() } { [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/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 [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] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 83 | msg: format!("{:?}", unsafe { &raw const USERS }), [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: 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 [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 148 | for client in unsafe { &raw 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 [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 156 | for client in unsafe { &raw mut USERS } { [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/server/main.rs:166:21 [INFO] [stdout] | [INFO] [stdout] 166 | for i in 1..USERS.len() { [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 mutable reference to mutable static is discouraged [INFO] [stdout] --> src/server/main.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | USERS.get_mut(index).unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `bnet` (bin "server") due to 1 previous error; 15 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "952a92da126ecb8eb9c8e32d9d1eb827b71c3bfdebaae8d6b83ae5cd10cca96c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "952a92da126ecb8eb9c8e32d9d1eb827b71c3bfdebaae8d6b83ae5cd10cca96c", kill_on_drop: false }` [INFO] [stdout] 952a92da126ecb8eb9c8e32d9d1eb827b71c3bfdebaae8d6b83ae5cd10cca96c