[INFO] cloning repository https://github.com/mohamedleithy/loadBalancer_Server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mohamedleithy/loadBalancer_Server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmohamedleithy%2FloadBalancer_Server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmohamedleithy%2FloadBalancer_Server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cdbedea52e0e23c55cbd6eff73506a20af645dfd [INFO] building mohamedleithy/loadBalancer_Server against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmohamedleithy%2FloadBalancer_Server" "/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/mohamedleithy/loadBalancer_Server on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mohamedleithy/loadBalancer_Server [INFO] finished tweaking git repo https://github.com/mohamedleithy/loadBalancer_Server [INFO] tweaked toml for git repo https://github.com/mohamedleithy/loadBalancer_Server written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/mohamedleithy/loadBalancer_Server 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded local-ip v0.1.0 [INFO] [stderr] Downloaded systemstat v0.2.2 [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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 837260b11b50e8f604ed956b5b52fedf4d0b40a843338bd985b351e8863ad52f [INFO] running `Command { std: "docker" "start" "-a" "837260b11b50e8f604ed956b5b52fedf4d0b40a843338bd985b351e8863ad52f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "837260b11b50e8f604ed956b5b52fedf4d0b40a843338bd985b351e8863ad52f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "837260b11b50e8f604ed956b5b52fedf4d0b40a843338bd985b351e8863ad52f", kill_on_drop: false }` [INFO] [stdout] 837260b11b50e8f604ed956b5b52fedf4d0b40a843338bd985b351e8863ad52f [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 -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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3e65f5a0be483d9c3eb2eaadff7daf65e7bfe063a4771afdc91e4d3360a6a4c7 [INFO] running `Command { std: "docker" "start" "-a" "3e65f5a0be483d9c3eb2eaadff7daf65e7bfe063a4771afdc91e4d3360a6a4c7", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.137 [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Compiling winapi v0.2.8 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling regex-syntax v0.3.9 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling time-core v0.1.0 [INFO] [stderr] Compiling utf8-ranges v0.1.3 [INFO] [stderr] Compiling bytesize v1.1.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling time v0.3.17 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling nom v7.1.1 [INFO] [stderr] Compiling thread-id v2.0.0 [INFO] [stderr] Compiling memchr v0.1.11 [INFO] [stderr] Compiling thread_local v0.2.7 [INFO] [stderr] Compiling aho-corasick v0.5.3 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling regex v0.1.80 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling local-ip v0.1.0 [INFO] [stderr] Compiling systemstat v0.2.2 [INFO] [stderr] Compiling loadBalancer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::seq::index` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use rand::seq::index; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `server` should have an upper camel case name [INFO] [stdout] --> src/main.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | struct server{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Server` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:133:31 [INFO] [stdout] | [INFO] [stdout] 133 | ... if(ip.to_string() == server.ip){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 133 - if(ip.to_string() == server.ip){ [INFO] [stdout] 133 + if ip.to_string() == server.ip { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:136:31 [INFO] [stdout] | [INFO] [stdout] 136 | ... if(server.cpu_score>max){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 136 - if(server.cpu_score>max){ [INFO] [stdout] 136 + if server.cpu_score>max { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:141:27 [INFO] [stdout] | [INFO] [stdout] 141 | if(myScore==max){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 141 - if(myScore==max){ [INFO] [stdout] 141 + if myScore==max { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:258:9 [INFO] [stdout] | [INFO] [stdout] 237 | / loop { [INFO] [stdout] 238 | | [INFO] [stdout] 239 | | println!("{} Recieving messages from agents", agentsThreadMsg); [INFO] [stdout] 240 | | let mut buf = [0; 60]; [INFO] [stdout] ... | [INFO] [stdout] 254 | | socket.send_to(buf, src1).unwrap(); [INFO] [stdout] 255 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 258 | handler.join().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handler` [INFO] [stdout] --> src/main.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let handler = thread::spawn( move || { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handler` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handler1` [INFO] [stdout] --> src/main.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 93 | let handler1 = thread::spawn(move || { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handler1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handler2` [INFO] [stdout] --> src/main.rs:170:21 [INFO] [stdout] | [INFO] [stdout] 170 | let handler2 = thread::spawn(move || -> ! { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handler2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `serverOutThreadMsg` [INFO] [stdout] --> src/main.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let serverOutThreadMsg = "serverOutThread::"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_serverOutThreadMsg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amt` [INFO] [stdout] --> src/main.rs:104:30 [INFO] [stdout] | [INFO] [stdout] 104 | let (amt, src) = socket.recv_from(&mut buf).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_amt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amt` [INFO] [stdout] --> src/main.rs:179:30 [INFO] [stdout] | [INFO] [stdout] 179 | let (amt, src) = socket.recv_from(&mut buf).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_amt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 55 | let mut serverInfo11 = serverInfo1.lock().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:68:21 [INFO] [stdout] | [INFO] [stdout] 68 | let mut buffer = msg.as_bytes(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `state` is never read [INFO] [stdout] --> src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 20 | struct server{ [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 21 | ip: String, [INFO] [stdout] 22 | state: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tempAgents` should have a snake case name [INFO] [stdout] --> src/main.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | let tempAgents: Vec = vec![]; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `temp_agents` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tempServers` should have a snake case name [INFO] [stdout] --> src/main.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | let tempServers: [server; 3] = [server { ip: ip.to_string(), state: true, cpu_score: 100}, server { ip: "192.168.8.118".to_string()... [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `temp_servers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `serverInfo` should have a snake case name [INFO] [stdout] --> src/main.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | let serverInfo = Arc::new(Mutex::new(tempServers)); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `server_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `serverInfo1` should have a snake case name [INFO] [stdout] --> src/main.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let serverInfo1 = Arc::clone(&serverInfo); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `server_info1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `serverOutThreadMsg` should have a snake case name [INFO] [stdout] --> src/main.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let serverOutThreadMsg = "serverOutThread::"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `server_out_thread_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `serverInfo11` should have a snake case name [INFO] [stdout] --> src/main.rs:55:25 [INFO] [stdout] | [INFO] [stdout] 55 | let mut serverInfo11 = serverInfo1.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `server_info11` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `serverInfo2` should have a snake case name [INFO] [stdout] --> src/main.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 88 | let serverInfo2 = Arc::clone(&serverInfo); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `server_info2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `serverInThreadMsg` should have a snake case name [INFO] [stdout] --> src/main.rs:95:21 [INFO] [stdout] | [INFO] [stdout] 95 | let serverInThreadMsg = "serverInThread::"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `server_in_thread_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `serverInfo22` should have a snake case name [INFO] [stdout] --> src/main.rs:105:33 [INFO] [stdout] | [INFO] [stdout] 105 | let mut serverInfo22 = serverInfo2.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `server_info22` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `myScore` should have a snake case name [INFO] [stdout] --> src/main.rs:129:33 [INFO] [stdout] | [INFO] [stdout] 129 | let mut myScore = 0; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `my_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `updatingAgentsThreadMsg` should have a snake case name [INFO] [stdout] --> src/main.rs:173:25 [INFO] [stdout] | [INFO] [stdout] 173 | let updatingAgentsThreadMsg = "UpdatingAgentsThread::"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `updating_agents_thread_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `agentsThreadMsg` should have a snake case name [INFO] [stdout] --> src/main.rs:232:13 [INFO] [stdout] | [INFO] [stdout] 232 | let agentsThreadMsg = "agentsThread::"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `agents_thread_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `numberOfRequestsMsg` should have a snake case name [INFO] [stdout] --> src/main.rs:234:13 [INFO] [stdout] | [INFO] [stdout] 234 | let numberOfRequestsMsg = "numOfRequests::"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `number_of_requests_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.88s [INFO] running `Command { std: "docker" "inspect" "3e65f5a0be483d9c3eb2eaadff7daf65e7bfe063a4771afdc91e4d3360a6a4c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e65f5a0be483d9c3eb2eaadff7daf65e7bfe063a4771afdc91e4d3360a6a4c7", kill_on_drop: false }` [INFO] [stdout] 3e65f5a0be483d9c3eb2eaadff7daf65e7bfe063a4771afdc91e4d3360a6a4c7 [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 -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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dfc2cd9943f1cc965c5a7a42e704e2a3d30c758618cde4ef177c7f7f5c67681d [INFO] running `Command { std: "docker" "start" "-a" "dfc2cd9943f1cc965c5a7a42e704e2a3d30c758618cde4ef177c7f7f5c67681d", kill_on_drop: false }` [INFO] [stderr] Compiling loadBalancer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::seq::index` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use rand::seq::index; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `server` should have an upper camel case name [INFO] [stdout] --> src/main.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | struct server{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Server` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:133:31 [INFO] [stdout] | [INFO] [stdout] 133 | ... if(ip.to_string() == server.ip){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 133 - if(ip.to_string() == server.ip){ [INFO] [stdout] 133 + if ip.to_string() == server.ip { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:136:31 [INFO] [stdout] | [INFO] [stdout] 136 | ... if(server.cpu_score>max){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 136 - if(server.cpu_score>max){ [INFO] [stdout] 136 + if server.cpu_score>max { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:141:27 [INFO] [stdout] | [INFO] [stdout] 141 | if(myScore==max){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 141 - if(myScore==max){ [INFO] [stdout] 141 + if myScore==max { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:258:9 [INFO] [stdout] | [INFO] [stdout] 237 | / loop { [INFO] [stdout] 238 | | [INFO] [stdout] 239 | | println!("{} Recieving messages from agents", agentsThreadMsg); [INFO] [stdout] 240 | | let mut buf = [0; 60]; [INFO] [stdout] ... | [INFO] [stdout] 254 | | socket.send_to(buf, src1).unwrap(); [INFO] [stdout] 255 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 258 | handler.join().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handler` [INFO] [stdout] --> src/main.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let handler = thread::spawn( move || { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handler` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handler1` [INFO] [stdout] --> src/main.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 93 | let handler1 = thread::spawn(move || { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handler1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handler2` [INFO] [stdout] --> src/main.rs:170:21 [INFO] [stdout] | [INFO] [stdout] 170 | let handler2 = thread::spawn(move || -> ! { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handler2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `serverOutThreadMsg` [INFO] [stdout] --> src/main.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let serverOutThreadMsg = "serverOutThread::"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_serverOutThreadMsg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amt` [INFO] [stdout] --> src/main.rs:104:30 [INFO] [stdout] | [INFO] [stdout] 104 | let (amt, src) = socket.recv_from(&mut buf).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_amt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amt` [INFO] [stdout] --> src/main.rs:179:30 [INFO] [stdout] | [INFO] [stdout] 179 | let (amt, src) = socket.recv_from(&mut buf).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_amt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 55 | let mut serverInfo11 = serverInfo1.lock().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:68:21 [INFO] [stdout] | [INFO] [stdout] 68 | let mut buffer = msg.as_bytes(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `state` is never read [INFO] [stdout] --> src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 20 | struct server{ [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 21 | ip: String, [INFO] [stdout] 22 | state: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tempAgents` should have a snake case name [INFO] [stdout] --> src/main.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | let tempAgents: Vec = vec![]; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `temp_agents` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tempServers` should have a snake case name [INFO] [stdout] --> src/main.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | let tempServers: [server; 3] = [server { ip: ip.to_string(), state: true, cpu_score: 100}, server { ip: "192.168.8.118".to_string()... [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `temp_servers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `serverInfo` should have a snake case name [INFO] [stdout] --> src/main.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | let serverInfo = Arc::new(Mutex::new(tempServers)); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `server_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `serverInfo1` should have a snake case name [INFO] [stdout] --> src/main.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let serverInfo1 = Arc::clone(&serverInfo); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `server_info1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `serverOutThreadMsg` should have a snake case name [INFO] [stdout] --> src/main.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let serverOutThreadMsg = "serverOutThread::"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `server_out_thread_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `serverInfo11` should have a snake case name [INFO] [stdout] --> src/main.rs:55:25 [INFO] [stdout] | [INFO] [stdout] 55 | let mut serverInfo11 = serverInfo1.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `server_info11` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `serverInfo2` should have a snake case name [INFO] [stdout] --> src/main.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 88 | let serverInfo2 = Arc::clone(&serverInfo); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `server_info2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `serverInThreadMsg` should have a snake case name [INFO] [stdout] --> src/main.rs:95:21 [INFO] [stdout] | [INFO] [stdout] 95 | let serverInThreadMsg = "serverInThread::"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `server_in_thread_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `serverInfo22` should have a snake case name [INFO] [stdout] --> src/main.rs:105:33 [INFO] [stdout] | [INFO] [stdout] 105 | let mut serverInfo22 = serverInfo2.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `server_info22` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `myScore` should have a snake case name [INFO] [stdout] --> src/main.rs:129:33 [INFO] [stdout] | [INFO] [stdout] 129 | let mut myScore = 0; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `my_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `updatingAgentsThreadMsg` should have a snake case name [INFO] [stdout] --> src/main.rs:173:25 [INFO] [stdout] | [INFO] [stdout] 173 | let updatingAgentsThreadMsg = "UpdatingAgentsThread::"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `updating_agents_thread_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `agentsThreadMsg` should have a snake case name [INFO] [stdout] --> src/main.rs:232:13 [INFO] [stdout] | [INFO] [stdout] 232 | let agentsThreadMsg = "agentsThread::"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `agents_thread_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `numberOfRequestsMsg` should have a snake case name [INFO] [stdout] --> src/main.rs:234:13 [INFO] [stdout] | [INFO] [stdout] 234 | let numberOfRequestsMsg = "numOfRequests::"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `number_of_requests_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.34s [INFO] running `Command { std: "docker" "inspect" "dfc2cd9943f1cc965c5a7a42e704e2a3d30c758618cde4ef177c7f7f5c67681d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dfc2cd9943f1cc965c5a7a42e704e2a3d30c758618cde4ef177c7f7f5c67681d", kill_on_drop: false }` [INFO] [stdout] dfc2cd9943f1cc965c5a7a42e704e2a3d30c758618cde4ef177c7f7f5c67681d