[INFO] cloning repository https://github.com/fwcd/SC18-RustClient [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fwcd/SC18-RustClient" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffwcd%2FSC18-RustClient", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffwcd%2FSC18-RustClient'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c763d61e0f50783c552b8f6180a361a1d6058817 [INFO] building fwcd/SC18-RustClient 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%2Ffwcd%2FSC18-RustClient" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fwcd/SC18-RustClient 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/fwcd/SC18-RustClient [INFO] finished tweaking git repo https://github.com/fwcd/SC18-RustClient [INFO] tweaked toml for git repo https://github.com/fwcd/SC18-RustClient written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/fwcd/SC18-RustClient 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] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] fda485aad9137fd6cead681c02fbbe7fcb0fb8c21f2f3a6e94e91c840b1b6831 [INFO] running `Command { std: "docker" "start" "-a" "fda485aad9137fd6cead681c02fbbe7fcb0fb8c21f2f3a6e94e91c840b1b6831", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fda485aad9137fd6cead681c02fbbe7fcb0fb8c21f2f3a6e94e91c840b1b6831", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fda485aad9137fd6cead681c02fbbe7fcb0fb8c21f2f3a6e94e91c840b1b6831", kill_on_drop: false }` [INFO] [stdout] fda485aad9137fd6cead681c02fbbe7fcb0fb8c21f2f3a6e94e91c840b1b6831 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 4aa023f04a32ecebe172621043e79612ef85555f66df007ef85ec94f93f927af [INFO] running `Command { std: "docker" "start" "-a" "4aa023f04a32ecebe172621043e79612ef85555f66df007ef85ec94f93f927af", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling bitflags v1.0.1 [INFO] [stderr] Compiling xml-rs v0.7.0 [INFO] [stderr] Compiling sc18_rustclient v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/xml_client.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | listeners: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 10 | listeners: Vec>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/xml_client.rs:26:47 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn add_listener(&mut self, listener: Box) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 26 | pub fn add_listener(&mut self, listener: Box) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/xml_client.rs:52:46 [INFO] [stdout] | [INFO] [stdout] 52 | fn fire_listeners(&mut self, notifier: &mut FnMut(&mut ClientListener)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 52 | fn fire_listeners(&mut self, notifier: &mut dyn FnMut(&mut ClientListener)) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/xml_client.rs:52:57 [INFO] [stdout] | [INFO] [stdout] 52 | fn fire_listeners(&mut self, notifier: &mut FnMut(&mut ClientListener)) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 52 | fn fire_listeners(&mut self, notifier: &mut FnMut(&mut dyn ClientListener)) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/xml_client.rs:115:64 [INFO] [stdout] | [INFO] [stdout] 115 | fn get_move_upon_request(color: &str, move_req_listener: &mut ClientListener, game_state: &GameState, node: &mut XMLNode) -> Move { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 115 | fn get_move_upon_request(color: &str, move_req_listener: &mut dyn ClientListener, game_state: &GameState, node: &mut XMLNode) -> Move { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/xml_client.rs:55:28 [INFO] [stdout] | [INFO] [stdout] 55 | let mut boxed: &mut Box = &mut self.listeners[i]; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 55 | let mut boxed: &mut Box = &mut self.listeners[i]; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/xml_client.rs:76:40 [INFO] [stdout] | [INFO] [stdout] 76 | ... let mut move_req_listener: &mut ClientListener; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 76 | let mut move_req_listener: &mut dyn ClientListener; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/xml_client.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn run(mut self, target: &String, reservation: &String) { [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/xml_client.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | let mut boxed: &mut Box = &mut self.listeners[i]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/xml_client.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | let mut reference = boxed.as_mut(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/xml_client.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | ... let mut move_req_listener: &mut ClientListener; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/xml_client.rs:115:104 [INFO] [stdout] | [INFO] [stdout] 115 | fn get_move_upon_request(color: &str, move_req_listener: &mut ClientListener, game_state: &GameState, node: &mut XMLNode) -> Move { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/xml_client.rs:139:32 [INFO] [stdout] | [INFO] [stdout] 139 | fn on_update_state(&mut self, state: &GameState) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `welcome_message` [INFO] [stdout] --> src/xml_client.rs:141:35 [INFO] [stdout] | [INFO] [stdout] 141 | fn on_welcome_message(&mut self, welcome_message: &WelcomeMessage) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_welcome_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `room` [INFO] [stdout] --> src/xml_client.rs:167:24 [INFO] [stdout] | [INFO] [stdout] 167 | fn on_join(&mut self, room: &Room) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_room` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_int` is never used [INFO] [stdout] --> src/arg_parser.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 9 | impl ArgParser { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn get_int(&self, key: &str) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/game.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Room { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 4 | pub id: String [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Joined` is never constructed [INFO] [stdout] --> src/game.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Joined { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `index` is never read [INFO] [stdout] --> src/game.rs:65:6 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct Field { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 64 | pub field_type: String, [INFO] [stdout] 65 | pub index: i32 [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `as_joined`, `get_attributes`, and `get_childs` are never used [INFO] [stdout] --> src/xml_utils.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 20 | impl XMLNode { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn as_joined(&self) -> Joined { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn get_attributes(&self) -> &HashMap> { return &self.attribs; } [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | pub fn get_childs(&self) -> &Vec { return &self.childs; } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LEVEL_NONE` is never used [INFO] [stdout] --> src/logger.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | const LEVEL_NONE: i32 = 100; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LEVEL_WARN` is never used [INFO] [stdout] --> src/logger.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const LEVEL_WARN: i32 = 1; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LEVEL_INFO` is never used [INFO] [stdout] --> src/logger.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const LEVEL_INFO: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LEVEL_DEBUG` is never used [INFO] [stdout] --> src/logger.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const LEVEL_DEBUG: i32 = -1; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LEVEL_VERY_DEEP_TRACE` is never used [INFO] [stdout] --> src/logger.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const LEVEL_VERY_DEEP_TRACE: i32 = -4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `warn`, `info`, `debug`, and `very_deep_trace` are never used [INFO] [stdout] --> src/logger.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 14 | impl Logger { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn warn(&self, msg: F) where F: Fn() -> String { self.log("[WARN] ", msg, LEVEL_WARN); } [INFO] [stdout] | ^^^^ [INFO] [stdout] 24 | [INFO] [stdout] 25 | pub fn info(&self, msg: F) where F: Fn() -> String { self.log("[INFO] ", msg, LEVEL_INFO); } [INFO] [stdout] | ^^^^ [INFO] [stdout] 26 | [INFO] [stdout] 27 | pub fn debug(&self, msg: F) where F: Fn() -> String { self.log("[DEBUG] ", msg, LEVEL_DEBUG); } [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn very_deep_trace(&self, msg: F) where F: Fn() -> String { self.log("[V_DEEP_TRACE]", msg, LEVEL_VERY_DEEP_TRACE); } [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.89s [INFO] running `Command { std: "docker" "inspect" "4aa023f04a32ecebe172621043e79612ef85555f66df007ef85ec94f93f927af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4aa023f04a32ecebe172621043e79612ef85555f66df007ef85ec94f93f927af", kill_on_drop: false }` [INFO] [stdout] 4aa023f04a32ecebe172621043e79612ef85555f66df007ef85ec94f93f927af [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 53b61652565508dd184ac2758cdc3215dff5f1ac0a967b0d36e7f13866c04b5e [INFO] running `Command { std: "docker" "start" "-a" "53b61652565508dd184ac2758cdc3215dff5f1ac0a967b0d36e7f13866c04b5e", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling sc18_rustclient v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/xml_client.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | listeners: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 10 | listeners: Vec>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/xml_client.rs:26:47 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn add_listener(&mut self, listener: Box) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 26 | pub fn add_listener(&mut self, listener: Box) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/xml_client.rs:52:46 [INFO] [stdout] | [INFO] [stdout] 52 | fn fire_listeners(&mut self, notifier: &mut FnMut(&mut ClientListener)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 52 | fn fire_listeners(&mut self, notifier: &mut dyn FnMut(&mut ClientListener)) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/xml_client.rs:52:57 [INFO] [stdout] | [INFO] [stdout] 52 | fn fire_listeners(&mut self, notifier: &mut FnMut(&mut ClientListener)) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 52 | fn fire_listeners(&mut self, notifier: &mut FnMut(&mut dyn ClientListener)) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/xml_client.rs:115:64 [INFO] [stdout] | [INFO] [stdout] 115 | fn get_move_upon_request(color: &str, move_req_listener: &mut ClientListener, game_state: &GameState, node: &mut XMLNode) -> Move { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 115 | fn get_move_upon_request(color: &str, move_req_listener: &mut dyn ClientListener, game_state: &GameState, node: &mut XMLNode) -> Move { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/xml_client.rs:55:28 [INFO] [stdout] | [INFO] [stdout] 55 | let mut boxed: &mut Box = &mut self.listeners[i]; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 55 | let mut boxed: &mut Box = &mut self.listeners[i]; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/xml_client.rs:76:40 [INFO] [stdout] | [INFO] [stdout] 76 | ... let mut move_req_listener: &mut ClientListener; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 76 | let mut move_req_listener: &mut dyn ClientListener; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/xml_client.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn run(mut self, target: &String, reservation: &String) { [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/xml_client.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | let mut boxed: &mut Box = &mut self.listeners[i]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/xml_client.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | let mut reference = boxed.as_mut(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/xml_client.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | ... let mut move_req_listener: &mut ClientListener; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/xml_client.rs:115:104 [INFO] [stdout] | [INFO] [stdout] 115 | fn get_move_upon_request(color: &str, move_req_listener: &mut ClientListener, game_state: &GameState, node: &mut XMLNode) -> Move { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/xml_client.rs:139:32 [INFO] [stdout] | [INFO] [stdout] 139 | fn on_update_state(&mut self, state: &GameState) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `welcome_message` [INFO] [stdout] --> src/xml_client.rs:141:35 [INFO] [stdout] | [INFO] [stdout] 141 | fn on_welcome_message(&mut self, welcome_message: &WelcomeMessage) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_welcome_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `room` [INFO] [stdout] --> src/xml_client.rs:167:24 [INFO] [stdout] | [INFO] [stdout] 167 | fn on_join(&mut self, room: &Room) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_room` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_int` is never used [INFO] [stdout] --> src/arg_parser.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 9 | impl ArgParser { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn get_int(&self, key: &str) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/game.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Room { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 4 | pub id: String [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Joined` is never constructed [INFO] [stdout] --> src/game.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Joined { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `index` is never read [INFO] [stdout] --> src/game.rs:65:6 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct Field { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 64 | pub field_type: String, [INFO] [stdout] 65 | pub index: i32 [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `as_joined`, `get_attributes`, and `get_childs` are never used [INFO] [stdout] --> src/xml_utils.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 20 | impl XMLNode { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn as_joined(&self) -> Joined { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn get_attributes(&self) -> &HashMap> { return &self.attribs; } [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | pub fn get_childs(&self) -> &Vec { return &self.childs; } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LEVEL_NONE` is never used [INFO] [stdout] --> src/logger.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | const LEVEL_NONE: i32 = 100; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LEVEL_WARN` is never used [INFO] [stdout] --> src/logger.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const LEVEL_WARN: i32 = 1; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LEVEL_INFO` is never used [INFO] [stdout] --> src/logger.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const LEVEL_INFO: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LEVEL_DEBUG` is never used [INFO] [stdout] --> src/logger.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const LEVEL_DEBUG: i32 = -1; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LEVEL_VERY_DEEP_TRACE` is never used [INFO] [stdout] --> src/logger.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const LEVEL_VERY_DEEP_TRACE: i32 = -4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `warn`, `info`, `debug`, and `very_deep_trace` are never used [INFO] [stdout] --> src/logger.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 14 | impl Logger { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn warn(&self, msg: F) where F: Fn() -> String { self.log("[WARN] ", msg, LEVEL_WARN); } [INFO] [stdout] | ^^^^ [INFO] [stdout] 24 | [INFO] [stdout] 25 | pub fn info(&self, msg: F) where F: Fn() -> String { self.log("[INFO] ", msg, LEVEL_INFO); } [INFO] [stdout] | ^^^^ [INFO] [stdout] 26 | [INFO] [stdout] 27 | pub fn debug(&self, msg: F) where F: Fn() -> String { self.log("[DEBUG] ", msg, LEVEL_DEBUG); } [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn very_deep_trace(&self, msg: F) where F: Fn() -> String { self.log("[V_DEEP_TRACE]", msg, LEVEL_VERY_DEEP_TRACE); } [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.22s [INFO] running `Command { std: "docker" "inspect" "53b61652565508dd184ac2758cdc3215dff5f1ac0a967b0d36e7f13866c04b5e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "53b61652565508dd184ac2758cdc3215dff5f1ac0a967b0d36e7f13866c04b5e", kill_on_drop: false }` [INFO] [stdout] 53b61652565508dd184ac2758cdc3215dff5f1ac0a967b0d36e7f13866c04b5e