[INFO] cloning repository https://github.com/shanegibbs/spatium-wasm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/shanegibbs/spatium-wasm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshanegibbs%2Fspatium-wasm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshanegibbs%2Fspatium-wasm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 73bf514ea9a4cf6962149d5d628ad169faa328a7 [INFO] testing shanegibbs/spatium-wasm against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshanegibbs%2Fspatium-wasm" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/shanegibbs/spatium-wasm on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/shanegibbs/spatium-wasm [INFO] finished tweaking git repo https://github.com/shanegibbs/spatium-wasm [INFO] tweaked toml for git repo https://github.com/shanegibbs/spatium-wasm written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate git repo https://github.com/shanegibbs/spatium-wasm already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/shanegibbs/rand.git` [INFO] [stderr] Updating git repository `https://github.com/raskr/rust-autograd` [INFO] [stderr] warning: Patch `rand v0.3.18 (https://github.com/shanegibbs/rand.git?branch=wasm#cbd99e5e)` was not used in the crate graph. [INFO] [stderr] Check that the patched package version and available features are compatible [INFO] [stderr] with the dependency requirements. If the patch has a different version from [INFO] [stderr] what is locked in the Cargo.lock file, run `cargo update` to use the new [INFO] [stderr] version. This may also occur with an optional dependency that is not enabled. [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pcg_rand v0.7.1 [INFO] [stderr] Downloaded ndarray-rand v0.6.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bf7d86d180b2b257a657d124090bff96ce9a30006333934077c3717db8c5dc39 [INFO] running `Command { std: "docker" "start" "-a" "bf7d86d180b2b257a657d124090bff96ce9a30006333934077c3717db8c5dc39", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bf7d86d180b2b257a657d124090bff96ce9a30006333934077c3717db8c5dc39", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf7d86d180b2b257a657d124090bff96ce9a30006333934077c3717db8c5dc39", kill_on_drop: false }` [INFO] [stdout] bf7d86d180b2b257a657d124090bff96ce9a30006333934077c3717db8c5dc39 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dc31ce7ae6b47653b76cc834dd3a8c82707cc487d082e3ccfab05aadaba2697c [INFO] running `Command { std: "docker" "start" "-a" "dc31ce7ae6b47653b76cc834dd3a8c82707cc487d082e3ccfab05aadaba2697c", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: Patch `rand v0.3.18 (https://github.com/shanegibbs/rand.git?branch=wasm#cbd99e5e)` was not used in the crate graph. [INFO] [stderr] Check that the patched package version and available features are compatible [INFO] [stderr] with the dependency requirements. If the patch has a different version from [INFO] [stderr] what is locked in the Cargo.lock file, run `cargo update` to use the new [INFO] [stderr] version. This may also occur with an optional dependency that is not enabled. [INFO] [stderr] Compiling nodrop v0.1.12 [INFO] [stderr] Compiling matrixmultiply v0.1.14 [INFO] [stderr] Compiling rawpointer v0.1.0 [INFO] [stderr] Compiling ndarray v0.10.14 [INFO] [stderr] Compiling either v1.5.0 [INFO] [stderr] Compiling rayon-core v1.4.0 [INFO] [stderr] Compiling itoa v0.4.1 [INFO] [stderr] Compiling glob v0.2.11 [INFO] [stderr] Compiling dtoa v0.4.2 [INFO] [stderr] Compiling spatium-wasm v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling proc-macro2 v0.2.3 [INFO] [stderr] Compiling num_cpus v1.8.0 [INFO] [stderr] Compiling crossbeam-utils v0.2.2 [INFO] [stderr] Compiling num-complex v0.1.43 [INFO] [stderr] Compiling rustc_version v0.2.2 [INFO] [stderr] Compiling itertools v0.7.8 [INFO] [stderr] Compiling arrayvec v0.4.7 [INFO] [stderr] Compiling extprim v1.5.1 [INFO] [stderr] Compiling quote v0.4.2 [INFO] [stderr] Compiling crossbeam-epoch v0.3.1 [INFO] [stderr] Compiling syn v0.12.14 [INFO] [stderr] Compiling crossbeam-deque v0.2.0 [INFO] [stderr] Compiling rayon v0.8.2 [INFO] [stderr] Compiling serde_derive_internals v0.22.1 [INFO] [stderr] Compiling autograd v0.7.0 (https://github.com/raskr/rust-autograd#71acf4c4) [INFO] [stderr] Compiling ndarray-rand v0.6.1 [INFO] [stderr] Compiling serde_derive v1.0.35 [INFO] [stderr] Compiling serde v1.0.35 [INFO] [stderr] Compiling serde_json v1.0.13 [INFO] [stderr] Compiling pcg_rand v0.7.1 [INFO] [stderr] Compiling spatium-lib v0.1.0 (/opt/rustwide/workdir/lib) [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> lib/src/game/mod.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 18 | fn eval(&self, &SpatiumSys, &Box); [INFO] [stdout] | ^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &SpatiumSys` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> lib/src/game/mod.rs:18:33 [INFO] [stdout] | [INFO] [stdout] 18 | fn eval(&self, &SpatiumSys, &Box); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &Box` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> lib/src/game/mod.rs:59:32 [INFO] [stdout] | [INFO] [stdout] 59 | pub game1: GameDescription<(usize)>, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 59 - pub game1: GameDescription<(usize)>, [INFO] [stdout] 59 + pub game1: GameDescription, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> lib/src/game/mod.rs:93:43 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn into_game(self, rng: RcRng) -> (Box) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 93 - pub fn into_game(self, rng: RcRng) -> (Box) { [INFO] [stdout] 93 + pub fn into_game(self, rng: RcRng) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `std` is imported redundantly [INFO] [stdout] --> lib/src/network/qtable.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | use std; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> lib/src/network/mod.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 18 | fn test(&self, &SpatiumSys, &GameState) -> (Action, f32) { [INFO] [stdout] | ^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &SpatiumSys` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> lib/src/network/mod.rs:18:33 [INFO] [stdout] | [INFO] [stdout] 18 | fn test(&self, &SpatiumSys, &GameState) -> (Action, f32) { [INFO] [stdout] | ^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &GameState` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> lib/src/network/mod.rs:21:31 [INFO] [stdout] | [INFO] [stdout] 21 | fn next_action(&mut self, &SpatiumSys, Option, &GameState) -> (Action, f32); [INFO] [stdout] | ^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &SpatiumSys` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> lib/src/network/mod.rs:21:44 [INFO] [stdout] | [INFO] [stdout] 21 | fn next_action(&mut self, &SpatiumSys, Option, &GameState) -> (Action, f32); [INFO] [stdout] | ^^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Option` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> lib/src/network/mod.rs:21:59 [INFO] [stdout] | [INFO] [stdout] 21 | fn next_action(&mut self, &SpatiumSys, Option, &GameState) -> (Action, f32); [INFO] [stdout] | ^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &GameState` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> lib/src/network/mod.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | &SpatiumSys, [INFO] [stdout] | ^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &SpatiumSys` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> lib/src/network/mod.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | RcRng, [INFO] [stdout] | ^^^^^ help: try naming the parameter or explicitly ignoring it: `_: RcRng` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> lib/src/network/mod.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | GameState, [INFO] [stdout] | ^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: GameState` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> lib/src/network/mod.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | &Action, [INFO] [stdout] | ^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &Action` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> lib/src/network/mod.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | &GameState, [INFO] [stdout] | ^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &GameState` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> lib/src/network/mod.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | usize, [INFO] [stdout] | ^^^^^ help: try naming the parameter or explicitly ignoring it: `_: usize` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> lib/src/network/mod.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | bool, [INFO] [stdout] | ^^^^ help: try naming the parameter or explicitly ignoring it: `_: bool` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> lib/src/lib.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | fn debug(&self, &str) {} [INFO] [stdout] | ^^^^ help: try naming the parameter or explicitly ignoring it: `_: &str` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/rng.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | rng: Rc>>, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 6 - rng: Rc>>, [INFO] [stdout] 6 + rng: Rc>>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/spatium.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | game: 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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 17 - game: Box, [INFO] [stdout] 17 + game: Box, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/spatium.rs:18:18 [INFO] [stdout] | [INFO] [stdout] 18 | network: 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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 18 - network: Box, [INFO] [stdout] 18 + network: Box, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/game/mod.rs:16:30 [INFO] [stdout] | [INFO] [stdout] 16 | fn step(&mut self, sys: &SpatiumSys, action: &Action) -> (GameState, usize, bool); [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 16 - fn step(&mut self, sys: &SpatiumSys, action: &Action) -> (GameState, usize, bool); [INFO] [stdout] 16 + fn step(&mut self, sys: &dyn SpatiumSys, action: &Action) -> (GameState, usize, bool); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/game/mod.rs:18:21 [INFO] [stdout] | [INFO] [stdout] 18 | fn eval(&self, &SpatiumSys, &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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 18 - fn eval(&self, &SpatiumSys, &Box); [INFO] [stdout] 18 + fn eval(&self, &dyn SpatiumSys, &Box); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/game/mod.rs:18:38 [INFO] [stdout] | [INFO] [stdout] 18 | fn eval(&self, &SpatiumSys, &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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 18 - fn eval(&self, &SpatiumSys, &Box); [INFO] [stdout] 18 + fn eval(&self, &SpatiumSys, &Box); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/game/mod.rs:93:48 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn into_game(self, rng: RcRng) -> (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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 93 - pub fn into_game(self, rng: RcRng) -> (Box) { [INFO] [stdout] 93 + pub fn into_game(self, rng: RcRng) -> (Box) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/network/mod.rs:18:21 [INFO] [stdout] | [INFO] [stdout] 18 | fn test(&self, &SpatiumSys, &GameState) -> (Action, f32) { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 18 - fn test(&self, &SpatiumSys, &GameState) -> (Action, f32) { [INFO] [stdout] 18 + fn test(&self, &dyn SpatiumSys, &GameState) -> (Action, f32) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/network/mod.rs:21:32 [INFO] [stdout] | [INFO] [stdout] 21 | fn next_action(&mut self, &SpatiumSys, Option, &GameState) -> (Action, f32); [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 21 - fn next_action(&mut self, &SpatiumSys, Option, &GameState) -> (Action, f32); [INFO] [stdout] 21 + fn next_action(&mut self, &dyn SpatiumSys, Option, &GameState) -> (Action, f32); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/network/mod.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | &SpatiumSys, [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 24 - &SpatiumSys, [INFO] [stdout] 24 + &dyn SpatiumSys, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/network/mod.rs:88:67 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn to_model(self, rng: RcRng, ios: (usize, usize)) -> 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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 88 - pub fn to_model(self, rng: RcRng, ios: (usize, usize)) -> Box { [INFO] [stdout] 88 + pub fn to_model(self, rng: RcRng, ios: (usize, usize)) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/rng.rs:10:25 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new(rng: Box) -> Self { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 10 - pub fn new(rng: Box) -> Self { [INFO] [stdout] 10 + pub fn new(rng: Box) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/game/game1.rs:154:31 [INFO] [stdout] | [INFO] [stdout] 154 | fn step(&mut self, _sys: &SpatiumSys, action: &Action) -> (GameState, usize, bool) { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 154 - fn step(&mut self, _sys: &SpatiumSys, action: &Action) -> (GameState, usize, bool) { [INFO] [stdout] 154 + fn step(&mut self, _sys: &dyn SpatiumSys, action: &Action) -> (GameState, usize, bool) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/game/game1.rs:211:59 [INFO] [stdout] | [INFO] [stdout] 211 | pub fn new(p: Game1Parameters, mut rng: RcRng) -> 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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 211 - pub fn new(p: Game1Parameters, mut rng: RcRng) -> Box { [INFO] [stdout] 211 + pub fn new(p: Game1Parameters, mut rng: RcRng) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/game/game1.rs:269:30 [INFO] [stdout] | [INFO] [stdout] 269 | fn step(&mut self, sys: &SpatiumSys, action: &Action) -> (GameState, usize, bool) { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 269 - fn step(&mut self, sys: &SpatiumSys, action: &Action) -> (GameState, usize, bool) { [INFO] [stdout] 269 + fn step(&mut self, sys: &dyn SpatiumSys, action: &Action) -> (GameState, usize, bool) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/game/game1.rs:285:26 [INFO] [stdout] | [INFO] [stdout] 285 | fn eval(&self, sys: &SpatiumSys, model: &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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 285 - fn eval(&self, sys: &SpatiumSys, model: &Box) { [INFO] [stdout] 285 + fn eval(&self, sys: &dyn SpatiumSys, model: &Box) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/game/game1.rs:285:50 [INFO] [stdout] | [INFO] [stdout] 285 | fn eval(&self, sys: &SpatiumSys, model: &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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 285 - fn eval(&self, sys: &SpatiumSys, model: &Box) { [INFO] [stdout] 285 + fn eval(&self, sys: &SpatiumSys, model: &Box) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/network/qtable.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | fn test(&self, _sys: &SpatiumSys, game_state: &GameState) -> (Action, f32) { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 22 - fn test(&self, _sys: &SpatiumSys, game_state: &GameState) -> (Action, f32) { [INFO] [stdout] 22 + fn test(&self, _sys: &dyn SpatiumSys, game_state: &GameState) -> (Action, f32) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/network/qtable.rs:31:35 [INFO] [stdout] | [INFO] [stdout] 31 | fn next_action(&mut self, _: &SpatiumSys, rng: Option, s: &GameState) -> (Action, f32) { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 31 - fn next_action(&mut self, _: &SpatiumSys, rng: Option, s: &GameState) -> (Action, f32) { [INFO] [stdout] 31 + fn next_action(&mut self, _: &dyn SpatiumSys, rng: Option, s: &GameState) -> (Action, f32) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/network/qtable.rs:50:16 [INFO] [stdout] | [INFO] [stdout] 50 | _sys: &SpatiumSys, [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 50 - _sys: &SpatiumSys, [INFO] [stdout] 50 + _sys: &dyn SpatiumSys, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/network/single_layer.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 90 | _sys: &SpatiumSys, [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 90 - _sys: &SpatiumSys, [INFO] [stdout] 90 + _sys: &dyn SpatiumSys, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/network/single_layer.rs:101:15 [INFO] [stdout] | [INFO] [stdout] 101 | sys: &SpatiumSys, [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 101 - sys: &SpatiumSys, [INFO] [stdout] 101 + sys: &dyn SpatiumSys, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/network/single_layer.rs:110:15 [INFO] [stdout] | [INFO] [stdout] 110 | sys: &SpatiumSys, [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 110 - sys: &SpatiumSys, [INFO] [stdout] 110 + sys: &dyn SpatiumSys, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/network/single_layer.rs:158:26 [INFO] [stdout] | [INFO] [stdout] 158 | fn test(&self, sys: &SpatiumSys, game_state: &GameState) -> (Action, f32) { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 158 - fn test(&self, sys: &SpatiumSys, game_state: &GameState) -> (Action, f32) { [INFO] [stdout] 158 + fn test(&self, sys: &dyn SpatiumSys, game_state: &GameState) -> (Action, f32) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/network/single_layer.rs:165:15 [INFO] [stdout] | [INFO] [stdout] 165 | sys: &SpatiumSys, [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 165 - sys: &SpatiumSys, [INFO] [stdout] 165 + sys: &dyn SpatiumSys, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/network/single_layer.rs:193:15 [INFO] [stdout] | [INFO] [stdout] 193 | sys: &SpatiumSys, [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 193 - sys: &SpatiumSys, [INFO] [stdout] 193 + sys: &dyn SpatiumSys, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mse_each` [INFO] [stdout] --> lib/src/network/neural_net.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | mse_each: Tensor, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mse_each` [INFO] [stdout] --> lib/src/network/neural_net.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn mse_each(&self, x_val: Array2, y_val: Array2) -> ArrayD { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> lib/src/action.rs:40:25 [INFO] [stdout] | [INFO] [stdout] 40 | i => panic!(format!("Bad action value: {}", i)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 40 - i => panic!(format!("Bad action value: {}", i)), [INFO] [stdout] 40 + i => panic!("Bad action value: {}", i), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> lib/src/lib.rs:110:16 [INFO] [stdout] | [INFO] [stdout] 110 | panic!(format!("[fatal] {}", e)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 110 - panic!(format!("[fatal] {}", e)) [INFO] [stdout] 110 + panic!("[fatal] {}", e) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | / lazy_static! { [INFO] [stdout] 23 | | static ref DATA: SpatiumJs = Mutex::new(None); [INFO] [stdout] 24 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/externs.rs:15:20 [INFO] [stdout] | [INFO] [stdout] 15 | panic!(e); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 15 | panic!("{}", e); [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 15 | std::panic::panic_any(e); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[f32; 4]`, which is not FFI-safe [INFO] [stdout] --> src/exports.rs:53:42 [INFO] [stdout] | [INFO] [stdout] 53 | pub extern "C" fn eval(_state: usize) -> [f32; 4] { [INFO] [stdout] | ^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] = help: consider passing a pointer to the array [INFO] [stdout] = note: passing raw arrays by value is not FFI-safe [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 14.68s [INFO] running `Command { std: "docker" "inspect" "dc31ce7ae6b47653b76cc834dd3a8c82707cc487d082e3ccfab05aadaba2697c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc31ce7ae6b47653b76cc834dd3a8c82707cc487d082e3ccfab05aadaba2697c", kill_on_drop: false }` [INFO] [stdout] dc31ce7ae6b47653b76cc834dd3a8c82707cc487d082e3ccfab05aadaba2697c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f7826b1ddcbae7c39f780fc83b1b467e80e6a52740fd505e1890775cd14203bc [INFO] running `Command { std: "docker" "start" "-a" "f7826b1ddcbae7c39f780fc83b1b467e80e6a52740fd505e1890775cd14203bc", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: Patch `rand v0.3.18 (https://github.com/shanegibbs/rand.git?branch=wasm#cbd99e5e)` was not used in the crate graph. [INFO] [stderr] Check that the patched package version and available features are compatible [INFO] [stderr] with the dependency requirements. If the patch has a different version from [INFO] [stderr] what is locked in the Cargo.lock file, run `cargo update` to use the new [INFO] [stderr] version. This may also occur with an optional dependency that is not enabled. [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> lib/src/game/mod.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 18 | fn eval(&self, &SpatiumSys, &Box); [INFO] [stdout] | ^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &SpatiumSys` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> lib/src/game/mod.rs:18:33 [INFO] [stdout] | [INFO] [stdout] 18 | fn eval(&self, &SpatiumSys, &Box); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &Box` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> lib/src/game/mod.rs:59:32 [INFO] [stdout] | [INFO] [stdout] 59 | pub game1: GameDescription<(usize)>, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 59 - pub game1: GameDescription<(usize)>, [INFO] [stdout] 59 + pub game1: GameDescription, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> lib/src/game/mod.rs:93:43 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn into_game(self, rng: RcRng) -> (Box) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 93 - pub fn into_game(self, rng: RcRng) -> (Box) { [INFO] [stdout] 93 + pub fn into_game(self, rng: RcRng) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `std` is imported redundantly [INFO] [stdout] --> lib/src/network/qtable.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | use std; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> lib/src/network/mod.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 18 | fn test(&self, &SpatiumSys, &GameState) -> (Action, f32) { [INFO] [stdout] | ^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &SpatiumSys` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> lib/src/network/mod.rs:18:33 [INFO] [stdout] | [INFO] [stdout] 18 | fn test(&self, &SpatiumSys, &GameState) -> (Action, f32) { [INFO] [stdout] | ^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &GameState` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> lib/src/network/mod.rs:21:31 [INFO] [stdout] | [INFO] [stdout] 21 | fn next_action(&mut self, &SpatiumSys, Option, &GameState) -> (Action, f32); [INFO] [stdout] | ^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &SpatiumSys` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> lib/src/network/mod.rs:21:44 [INFO] [stdout] | [INFO] [stdout] 21 | fn next_action(&mut self, &SpatiumSys, Option, &GameState) -> (Action, f32); [INFO] [stdout] | ^^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Option` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> lib/src/network/mod.rs:21:59 [INFO] [stdout] | [INFO] [stdout] 21 | fn next_action(&mut self, &SpatiumSys, Option, &GameState) -> (Action, f32); [INFO] [stdout] | ^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &GameState` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> lib/src/network/mod.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | &SpatiumSys, [INFO] [stdout] | ^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &SpatiumSys` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> lib/src/network/mod.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | RcRng, [INFO] [stdout] | ^^^^^ help: try naming the parameter or explicitly ignoring it: `_: RcRng` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> lib/src/network/mod.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | GameState, [INFO] [stdout] | ^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: GameState` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> lib/src/network/mod.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | &Action, [INFO] [stdout] | ^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &Action` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> lib/src/network/mod.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | &GameState, [INFO] [stdout] | ^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &GameState` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> lib/src/network/mod.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | usize, [INFO] [stdout] | ^^^^^ help: try naming the parameter or explicitly ignoring it: `_: usize` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> lib/src/network/mod.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | bool, [INFO] [stdout] | ^^^^ help: try naming the parameter or explicitly ignoring it: `_: bool` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> lib/src/lib.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | fn debug(&self, &str) {} [INFO] [stdout] | ^^^^ help: try naming the parameter or explicitly ignoring it: `_: &str` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/rng.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | rng: Rc>>, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 6 - rng: Rc>>, [INFO] [stdout] 6 + rng: Rc>>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/spatium.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | game: 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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 17 - game: Box, [INFO] [stdout] 17 + game: Box, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/spatium.rs:18:18 [INFO] [stdout] | [INFO] [stdout] 18 | network: 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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 18 - network: Box, [INFO] [stdout] 18 + network: Box, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/game/mod.rs:16:30 [INFO] [stdout] | [INFO] [stdout] 16 | fn step(&mut self, sys: &SpatiumSys, action: &Action) -> (GameState, usize, bool); [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 16 - fn step(&mut self, sys: &SpatiumSys, action: &Action) -> (GameState, usize, bool); [INFO] [stdout] 16 + fn step(&mut self, sys: &dyn SpatiumSys, action: &Action) -> (GameState, usize, bool); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/game/mod.rs:18:21 [INFO] [stdout] | [INFO] [stdout] 18 | fn eval(&self, &SpatiumSys, &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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 18 - fn eval(&self, &SpatiumSys, &Box); [INFO] [stdout] 18 + fn eval(&self, &dyn SpatiumSys, &Box); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/game/mod.rs:18:38 [INFO] [stdout] | [INFO] [stdout] 18 | fn eval(&self, &SpatiumSys, &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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 18 - fn eval(&self, &SpatiumSys, &Box); [INFO] [stdout] 18 + fn eval(&self, &SpatiumSys, &Box); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/game/mod.rs:93:48 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn into_game(self, rng: RcRng) -> (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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 93 - pub fn into_game(self, rng: RcRng) -> (Box) { [INFO] [stdout] 93 + pub fn into_game(self, rng: RcRng) -> (Box) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/network/mod.rs:18:21 [INFO] [stdout] | [INFO] [stdout] 18 | fn test(&self, &SpatiumSys, &GameState) -> (Action, f32) { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 18 - fn test(&self, &SpatiumSys, &GameState) -> (Action, f32) { [INFO] [stdout] 18 + fn test(&self, &dyn SpatiumSys, &GameState) -> (Action, f32) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/network/mod.rs:21:32 [INFO] [stdout] | [INFO] [stdout] 21 | fn next_action(&mut self, &SpatiumSys, Option, &GameState) -> (Action, f32); [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 21 - fn next_action(&mut self, &SpatiumSys, Option, &GameState) -> (Action, f32); [INFO] [stdout] 21 + fn next_action(&mut self, &dyn SpatiumSys, Option, &GameState) -> (Action, f32); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/network/mod.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | &SpatiumSys, [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 24 - &SpatiumSys, [INFO] [stdout] 24 + &dyn SpatiumSys, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/network/mod.rs:88:67 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn to_model(self, rng: RcRng, ios: (usize, usize)) -> 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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 88 - pub fn to_model(self, rng: RcRng, ios: (usize, usize)) -> Box { [INFO] [stdout] 88 + pub fn to_model(self, rng: RcRng, ios: (usize, usize)) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/rng.rs:10:25 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new(rng: Box) -> Self { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 10 - pub fn new(rng: Box) -> Self { [INFO] [stdout] 10 + pub fn new(rng: Box) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/game/game1.rs:154:31 [INFO] [stdout] | [INFO] [stdout] 154 | fn step(&mut self, _sys: &SpatiumSys, action: &Action) -> (GameState, usize, bool) { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 154 - fn step(&mut self, _sys: &SpatiumSys, action: &Action) -> (GameState, usize, bool) { [INFO] [stdout] 154 + fn step(&mut self, _sys: &dyn SpatiumSys, action: &Action) -> (GameState, usize, bool) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/game/game1.rs:211:59 [INFO] [stdout] | [INFO] [stdout] 211 | pub fn new(p: Game1Parameters, mut rng: RcRng) -> 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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 211 - pub fn new(p: Game1Parameters, mut rng: RcRng) -> Box { [INFO] [stdout] 211 + pub fn new(p: Game1Parameters, mut rng: RcRng) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/game/game1.rs:269:30 [INFO] [stdout] | [INFO] [stdout] 269 | fn step(&mut self, sys: &SpatiumSys, action: &Action) -> (GameState, usize, bool) { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 269 - fn step(&mut self, sys: &SpatiumSys, action: &Action) -> (GameState, usize, bool) { [INFO] [stdout] 269 + fn step(&mut self, sys: &dyn SpatiumSys, action: &Action) -> (GameState, usize, bool) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/game/game1.rs:285:26 [INFO] [stdout] | [INFO] [stdout] 285 | fn eval(&self, sys: &SpatiumSys, model: &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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 285 - fn eval(&self, sys: &SpatiumSys, model: &Box) { [INFO] [stdout] 285 + fn eval(&self, sys: &dyn SpatiumSys, model: &Box) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/game/game1.rs:285:50 [INFO] [stdout] | [INFO] [stdout] 285 | fn eval(&self, sys: &SpatiumSys, model: &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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 285 - fn eval(&self, sys: &SpatiumSys, model: &Box) { [INFO] [stdout] 285 + fn eval(&self, sys: &SpatiumSys, model: &Box) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/network/qtable.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | fn test(&self, _sys: &SpatiumSys, game_state: &GameState) -> (Action, f32) { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 22 - fn test(&self, _sys: &SpatiumSys, game_state: &GameState) -> (Action, f32) { [INFO] [stdout] 22 + fn test(&self, _sys: &dyn SpatiumSys, game_state: &GameState) -> (Action, f32) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/network/qtable.rs:31:35 [INFO] [stdout] | [INFO] [stdout] 31 | fn next_action(&mut self, _: &SpatiumSys, rng: Option, s: &GameState) -> (Action, f32) { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 31 - fn next_action(&mut self, _: &SpatiumSys, rng: Option, s: &GameState) -> (Action, f32) { [INFO] [stdout] 31 + fn next_action(&mut self, _: &dyn SpatiumSys, rng: Option, s: &GameState) -> (Action, f32) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/network/qtable.rs:50:16 [INFO] [stdout] | [INFO] [stdout] 50 | _sys: &SpatiumSys, [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 50 - _sys: &SpatiumSys, [INFO] [stdout] 50 + _sys: &dyn SpatiumSys, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/network/single_layer.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 90 | _sys: &SpatiumSys, [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 90 - _sys: &SpatiumSys, [INFO] [stdout] 90 + _sys: &dyn SpatiumSys, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/network/single_layer.rs:101:15 [INFO] [stdout] | [INFO] [stdout] 101 | sys: &SpatiumSys, [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 101 - sys: &SpatiumSys, [INFO] [stdout] 101 + sys: &dyn SpatiumSys, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/network/single_layer.rs:110:15 [INFO] [stdout] | [INFO] [stdout] 110 | sys: &SpatiumSys, [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 110 - sys: &SpatiumSys, [INFO] [stdout] 110 + sys: &dyn SpatiumSys, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/network/single_layer.rs:158:26 [INFO] [stdout] | [INFO] [stdout] 158 | fn test(&self, sys: &SpatiumSys, game_state: &GameState) -> (Action, f32) { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 158 - fn test(&self, sys: &SpatiumSys, game_state: &GameState) -> (Action, f32) { [INFO] [stdout] 158 + fn test(&self, sys: &dyn SpatiumSys, game_state: &GameState) -> (Action, f32) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/network/single_layer.rs:165:15 [INFO] [stdout] | [INFO] [stdout] 165 | sys: &SpatiumSys, [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 165 - sys: &SpatiumSys, [INFO] [stdout] 165 + sys: &dyn SpatiumSys, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib/src/network/single_layer.rs:193:15 [INFO] [stdout] | [INFO] [stdout] 193 | sys: &SpatiumSys, [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 193 - sys: &SpatiumSys, [INFO] [stdout] 193 + sys: &dyn SpatiumSys, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mse_each` [INFO] [stdout] --> lib/src/network/neural_net.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | mse_each: Tensor, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mse_each` [INFO] [stdout] --> lib/src/network/neural_net.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn mse_each(&self, x_val: Array2, y_val: Array2) -> ArrayD { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> lib/src/action.rs:40:25 [INFO] [stdout] | [INFO] [stdout] 40 | i => panic!(format!("Bad action value: {}", i)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 40 - i => panic!(format!("Bad action value: {}", i)), [INFO] [stdout] 40 + i => panic!("Bad action value: {}", i), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling spatium-wasm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> lib/src/lib.rs:110:16 [INFO] [stdout] | [INFO] [stdout] 110 | panic!(format!("[fatal] {}", e)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 110 - panic!(format!("[fatal] {}", e)) [INFO] [stdout] 110 + panic!("[fatal] {}", e) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | / lazy_static! { [INFO] [stdout] 23 | | static ref DATA: SpatiumJs = Mutex::new(None); [INFO] [stdout] 24 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/externs.rs:15:20 [INFO] [stdout] | [INFO] [stdout] 15 | panic!(e); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 15 | panic!("{}", e); [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 15 | std::panic::panic_any(e); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[f32; 4]`, which is not FFI-safe [INFO] [stdout] --> src/exports.rs:53:42 [INFO] [stdout] | [INFO] [stdout] 53 | pub extern "C" fn eval(_state: usize) -> [f32; 4] { [INFO] [stdout] | ^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] = help: consider passing a pointer to the array [INFO] [stdout] = note: passing raw arrays by value is not FFI-safe [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 7.02s [INFO] running `Command { std: "docker" "inspect" "f7826b1ddcbae7c39f780fc83b1b467e80e6a52740fd505e1890775cd14203bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f7826b1ddcbae7c39f780fc83b1b467e80e6a52740fd505e1890775cd14203bc", kill_on_drop: false }` [INFO] [stdout] f7826b1ddcbae7c39f780fc83b1b467e80e6a52740fd505e1890775cd14203bc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 7fa52d2f778fa45677f2610c70b18c4696a3016a63bf42a76c95be115679d658 [INFO] running `Command { std: "docker" "start" "-a" "7fa52d2f778fa45677f2610c70b18c4696a3016a63bf42a76c95be115679d658", kill_on_drop: false }` [INFO] [stderr] warning: Patch `rand v0.3.18 (https://github.com/shanegibbs/rand.git?branch=wasm#cbd99e5e)` was not used in the crate graph. [INFO] [stderr] Check that the patched package version and available features are compatible [INFO] [stderr] with the dependency requirements. If the patch has a different version from [INFO] [stderr] what is locked in the Cargo.lock file, run `cargo update` to use the new [INFO] [stderr] version. This may also occur with an optional dependency that is not enabled. [INFO] [stderr] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stderr] --> lib/src/game/mod.rs:18:20 [INFO] [stderr] | [INFO] [stderr] 18 | fn eval(&self, &SpatiumSys, &Box); [INFO] [stderr] | ^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &SpatiumSys` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stderr] = note: for more information, see issue #41686 [INFO] [stderr] [INFO] [stderr] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stderr] --> lib/src/game/mod.rs:18:33 [INFO] [stderr] | [INFO] [stderr] 18 | fn eval(&self, &SpatiumSys, &Box); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &Box` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stderr] = note: for more information, see issue #41686 [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> lib/src/game/mod.rs:59:32 [INFO] [stderr] | [INFO] [stderr] 59 | pub game1: GameDescription<(usize)>, [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 59 - pub game1: GameDescription<(usize)>, [INFO] [stderr] 59 + pub game1: GameDescription, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> lib/src/game/mod.rs:93:43 [INFO] [stderr] | [INFO] [stderr] 93 | pub fn into_game(self, rng: RcRng) -> (Box) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 93 - pub fn into_game(self, rng: RcRng) -> (Box) { [INFO] [stderr] 93 + pub fn into_game(self, rng: RcRng) -> Box { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: the item `std` is imported redundantly [INFO] [stderr] --> lib/src/network/qtable.rs:83:9 [INFO] [stderr] | [INFO] [stderr] 83 | use std; [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stderr] --> lib/src/network/mod.rs:18:20 [INFO] [stderr] | [INFO] [stderr] 18 | fn test(&self, &SpatiumSys, &GameState) -> (Action, f32) { [INFO] [stderr] | ^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &SpatiumSys` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stderr] = note: for more information, see issue #41686 [INFO] [stderr] [INFO] [stderr] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stderr] --> lib/src/network/mod.rs:18:33 [INFO] [stderr] | [INFO] [stderr] 18 | fn test(&self, &SpatiumSys, &GameState) -> (Action, f32) { [INFO] [stderr] | ^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &GameState` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stderr] = note: for more information, see issue #41686 [INFO] [stderr] [INFO] [stderr] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stderr] --> lib/src/network/mod.rs:21:31 [INFO] [stderr] | [INFO] [stderr] 21 | fn next_action(&mut self, &SpatiumSys, Option, &GameState) -> (Action, f32); [INFO] [stderr] | ^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &SpatiumSys` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stderr] = note: for more information, see issue #41686 [INFO] [stderr] [INFO] [stderr] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stderr] --> lib/src/network/mod.rs:21:44 [INFO] [stderr] | [INFO] [stderr] 21 | fn next_action(&mut self, &SpatiumSys, Option, &GameState) -> (Action, f32); [INFO] [stderr] | ^^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Option` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stderr] = note: for more information, see issue #41686 [INFO] [stderr] [INFO] [stderr] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stderr] --> lib/src/network/mod.rs:21:59 [INFO] [stderr] | [INFO] [stderr] 21 | fn next_action(&mut self, &SpatiumSys, Option, &GameState) -> (Action, f32); [INFO] [stderr] | ^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &GameState` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stderr] = note: for more information, see issue #41686 [INFO] [stderr] [INFO] [stderr] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stderr] --> lib/src/network/mod.rs:24:9 [INFO] [stderr] | [INFO] [stderr] 24 | &SpatiumSys, [INFO] [stderr] | ^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &SpatiumSys` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stderr] = note: for more information, see issue #41686 [INFO] [stderr] [INFO] [stderr] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stderr] --> lib/src/network/mod.rs:25:9 [INFO] [stderr] | [INFO] [stderr] 25 | RcRng, [INFO] [stderr] | ^^^^^ help: try naming the parameter or explicitly ignoring it: `_: RcRng` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stderr] = note: for more information, see issue #41686 [INFO] [stderr] [INFO] [stderr] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stderr] --> lib/src/network/mod.rs:26:9 [INFO] [stderr] | [INFO] [stderr] 26 | GameState, [INFO] [stderr] | ^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: GameState` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stderr] = note: for more information, see issue #41686 [INFO] [stderr] [INFO] [stderr] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stderr] --> lib/src/network/mod.rs:27:9 [INFO] [stderr] | [INFO] [stderr] 27 | &Action, [INFO] [stderr] | ^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &Action` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stderr] = note: for more information, see issue #41686 [INFO] [stderr] [INFO] [stderr] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stderr] --> lib/src/network/mod.rs:28:9 [INFO] [stderr] | [INFO] [stderr] 28 | &GameState, [INFO] [stderr] | ^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &GameState` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stderr] = note: for more information, see issue #41686 [INFO] [stderr] [INFO] [stderr] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stderr] --> lib/src/network/mod.rs:29:9 [INFO] [stderr] | [INFO] [stderr] 29 | usize, [INFO] [stderr] | ^^^^^ help: try naming the parameter or explicitly ignoring it: `_: usize` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stderr] = note: for more information, see issue #41686 [INFO] [stderr] [INFO] [stderr] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stderr] --> lib/src/network/mod.rs:30:9 [INFO] [stderr] | [INFO] [stderr] 30 | bool, [INFO] [stderr] | ^^^^ help: try naming the parameter or explicitly ignoring it: `_: bool` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stderr] = note: for more information, see issue #41686 [INFO] [stderr] [INFO] [stderr] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stderr] --> lib/src/lib.rs:105:21 [INFO] [stderr] | [INFO] [stderr] 105 | fn debug(&self, &str) {} [INFO] [stderr] | ^^^^ help: try naming the parameter or explicitly ignoring it: `_: &str` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stderr] = note: for more information, see issue #41686 [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> lib/src/rng.rs:6:25 [INFO] [stderr] | [INFO] [stderr] 6 | rng: Rc>>, [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 6 - rng: Rc>>, [INFO] [stderr] 6 + rng: Rc>>, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> lib/src/spatium.rs:17:15 [INFO] [stderr] | [INFO] [stderr] 17 | game: Box, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 17 - game: Box, [INFO] [stderr] 17 + game: Box, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> lib/src/spatium.rs:18:18 [INFO] [stderr] | [INFO] [stderr] 18 | network: Box, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 18 - network: Box, [INFO] [stderr] 18 + network: Box, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> lib/src/game/mod.rs:16:30 [INFO] [stderr] | [INFO] [stderr] 16 | fn step(&mut self, sys: &SpatiumSys, action: &Action) -> (GameState, usize, bool); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 16 - fn step(&mut self, sys: &SpatiumSys, action: &Action) -> (GameState, usize, bool); [INFO] [stderr] 16 + fn step(&mut self, sys: &dyn SpatiumSys, action: &Action) -> (GameState, usize, bool); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> lib/src/game/mod.rs:18:21 [INFO] [stderr] | [INFO] [stderr] 18 | fn eval(&self, &SpatiumSys, &Box); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 18 - fn eval(&self, &SpatiumSys, &Box); [INFO] [stderr] 18 + fn eval(&self, &dyn SpatiumSys, &Box); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> lib/src/game/mod.rs:18:38 [INFO] [stderr] | [INFO] [stderr] 18 | fn eval(&self, &SpatiumSys, &Box); [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 18 - fn eval(&self, &SpatiumSys, &Box); [INFO] [stderr] 18 + fn eval(&self, &SpatiumSys, &Box); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> lib/src/game/mod.rs:93:48 [INFO] [stderr] | [INFO] [stderr] 93 | pub fn into_game(self, rng: RcRng) -> (Box) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 93 - pub fn into_game(self, rng: RcRng) -> (Box) { [INFO] [stderr] 93 + pub fn into_game(self, rng: RcRng) -> (Box) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> lib/src/network/mod.rs:18:21 [INFO] [stderr] | [INFO] [stderr] 18 | fn test(&self, &SpatiumSys, &GameState) -> (Action, f32) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 18 - fn test(&self, &SpatiumSys, &GameState) -> (Action, f32) { [INFO] [stderr] 18 + fn test(&self, &dyn SpatiumSys, &GameState) -> (Action, f32) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> lib/src/network/mod.rs:21:32 [INFO] [stderr] | [INFO] [stderr] 21 | fn next_action(&mut self, &SpatiumSys, Option, &GameState) -> (Action, f32); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 21 - fn next_action(&mut self, &SpatiumSys, Option, &GameState) -> (Action, f32); [INFO] [stderr] 21 + fn next_action(&mut self, &dyn SpatiumSys, Option, &GameState) -> (Action, f32); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> lib/src/network/mod.rs:24:10 [INFO] [stderr] | [INFO] [stderr] 24 | &SpatiumSys, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 24 - &SpatiumSys, [INFO] [stderr] 24 + &dyn SpatiumSys, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> lib/src/network/mod.rs:88:67 [INFO] [stderr] | [INFO] [stderr] 88 | pub fn to_model(self, rng: RcRng, ios: (usize, usize)) -> Box { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 88 - pub fn to_model(self, rng: RcRng, ios: (usize, usize)) -> Box { [INFO] [stderr] 88 + pub fn to_model(self, rng: RcRng, ios: (usize, usize)) -> Box { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> lib/src/rng.rs:10:25 [INFO] [stderr] | [INFO] [stderr] 10 | pub fn new(rng: Box) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 10 - pub fn new(rng: Box) -> Self { [INFO] [stderr] 10 + pub fn new(rng: Box) -> Self { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> lib/src/game/game1.rs:154:31 [INFO] [stderr] | [INFO] [stderr] 154 | fn step(&mut self, _sys: &SpatiumSys, action: &Action) -> (GameState, usize, bool) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 154 - fn step(&mut self, _sys: &SpatiumSys, action: &Action) -> (GameState, usize, bool) { [INFO] [stderr] 154 + fn step(&mut self, _sys: &dyn SpatiumSys, action: &Action) -> (GameState, usize, bool) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> lib/src/game/game1.rs:211:59 [INFO] [stderr] | [INFO] [stderr] 211 | pub fn new(p: Game1Parameters, mut rng: RcRng) -> Box { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 211 - pub fn new(p: Game1Parameters, mut rng: RcRng) -> Box { [INFO] [stderr] 211 + pub fn new(p: Game1Parameters, mut rng: RcRng) -> Box { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> lib/src/game/game1.rs:269:30 [INFO] [stderr] | [INFO] [stderr] 269 | fn step(&mut self, sys: &SpatiumSys, action: &Action) -> (GameState, usize, bool) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 269 - fn step(&mut self, sys: &SpatiumSys, action: &Action) -> (GameState, usize, bool) { [INFO] [stderr] 269 + fn step(&mut self, sys: &dyn SpatiumSys, action: &Action) -> (GameState, usize, bool) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> lib/src/game/game1.rs:285:26 [INFO] [stderr] | [INFO] [stderr] 285 | fn eval(&self, sys: &SpatiumSys, model: &Box) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 285 - fn eval(&self, sys: &SpatiumSys, model: &Box) { [INFO] [stderr] 285 + fn eval(&self, sys: &dyn SpatiumSys, model: &Box) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> lib/src/game/game1.rs:285:50 [INFO] [stderr] | [INFO] [stderr] 285 | fn eval(&self, sys: &SpatiumSys, model: &Box) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 285 - fn eval(&self, sys: &SpatiumSys, model: &Box) { [INFO] [stderr] 285 + fn eval(&self, sys: &SpatiumSys, model: &Box) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> lib/src/network/qtable.rs:22:27 [INFO] [stderr] | [INFO] [stderr] 22 | fn test(&self, _sys: &SpatiumSys, game_state: &GameState) -> (Action, f32) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 22 - fn test(&self, _sys: &SpatiumSys, game_state: &GameState) -> (Action, f32) { [INFO] [stderr] 22 + fn test(&self, _sys: &dyn SpatiumSys, game_state: &GameState) -> (Action, f32) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> lib/src/network/qtable.rs:31:35 [INFO] [stderr] | [INFO] [stderr] 31 | fn next_action(&mut self, _: &SpatiumSys, rng: Option, s: &GameState) -> (Action, f32) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 31 - fn next_action(&mut self, _: &SpatiumSys, rng: Option, s: &GameState) -> (Action, f32) { [INFO] [stderr] 31 + fn next_action(&mut self, _: &dyn SpatiumSys, rng: Option, s: &GameState) -> (Action, f32) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> lib/src/network/qtable.rs:50:16 [INFO] [stderr] | [INFO] [stderr] 50 | _sys: &SpatiumSys, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 50 - _sys: &SpatiumSys, [INFO] [stderr] 50 + _sys: &dyn SpatiumSys, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> lib/src/network/single_layer.rs:90:16 [INFO] [stderr] | [INFO] [stderr] 90 | _sys: &SpatiumSys, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 90 - _sys: &SpatiumSys, [INFO] [stderr] 90 + _sys: &dyn SpatiumSys, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> lib/src/network/single_layer.rs:101:15 [INFO] [stderr] | [INFO] [stderr] 101 | sys: &SpatiumSys, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 101 - sys: &SpatiumSys, [INFO] [stderr] 101 + sys: &dyn SpatiumSys, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> lib/src/network/single_layer.rs:110:15 [INFO] [stderr] | [INFO] [stderr] 110 | sys: &SpatiumSys, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 110 - sys: &SpatiumSys, [INFO] [stderr] 110 + sys: &dyn SpatiumSys, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> lib/src/network/single_layer.rs:158:26 [INFO] [stderr] | [INFO] [stderr] 158 | fn test(&self, sys: &SpatiumSys, game_state: &GameState) -> (Action, f32) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 158 - fn test(&self, sys: &SpatiumSys, game_state: &GameState) -> (Action, f32) { [INFO] [stderr] 158 + fn test(&self, sys: &dyn SpatiumSys, game_state: &GameState) -> (Action, f32) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> lib/src/network/single_layer.rs:165:15 [INFO] [stderr] | [INFO] [stderr] 165 | sys: &SpatiumSys, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 165 - sys: &SpatiumSys, [INFO] [stderr] 165 + sys: &dyn SpatiumSys, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> lib/src/network/single_layer.rs:193:15 [INFO] [stderr] | [INFO] [stderr] 193 | sys: &SpatiumSys, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 193 - sys: &SpatiumSys, [INFO] [stderr] 193 + sys: &dyn SpatiumSys, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field is never read: `mse_each` [INFO] [stderr] --> lib/src/network/neural_net.rs:116:5 [INFO] [stderr] | [INFO] [stderr] 116 | mse_each: Tensor, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `mse_each` [INFO] [stderr] --> lib/src/network/neural_net.rs:157:12 [INFO] [stderr] | [INFO] [stderr] 157 | pub fn mse_each(&self, x_val: Array2, y_val: Array2) -> ArrayD { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> lib/src/action.rs:40:25 [INFO] [stderr] | [INFO] [stderr] 40 | i => panic!(format!("Bad action value: {}", i)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 40 - i => panic!(format!("Bad action value: {}", i)), [INFO] [stderr] 40 + i => panic!("Bad action value: {}", i), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> lib/src/lib.rs:110:16 [INFO] [stderr] | [INFO] [stderr] 110 | panic!(format!("[fatal] {}", e)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 110 - panic!(format!("[fatal] {}", e)) [INFO] [stderr] 110 + panic!("[fatal] {}", e) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `spatium-lib` (lib) generated 48 warnings [INFO] [stderr] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stderr] --> src/lib.rs:22:1 [INFO] [stderr] | [INFO] [stderr] 22 | / lazy_static! { [INFO] [stderr] 23 | | static ref DATA: SpatiumJs = Mutex::new(None); [INFO] [stderr] 24 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/externs.rs:15:20 [INFO] [stderr] | [INFO] [stderr] 15 | panic!(e); [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: add a "{}" format string to Display the message [INFO] [stderr] | [INFO] [stderr] 15 | panic!("{}", e); [INFO] [stderr] | +++++ [INFO] [stderr] help: or use std::panic::panic_any instead [INFO] [stderr] | [INFO] [stderr] 15 | std::panic::panic_any(e); [INFO] [stderr] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `[f32; 4]`, which is not FFI-safe [INFO] [stderr] --> src/exports.rs:53:42 [INFO] [stderr] | [INFO] [stderr] 53 | pub extern "C" fn eval(_state: usize) -> [f32; 4] { [INFO] [stderr] | ^^^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stderr] = help: consider passing a pointer to the array [INFO] [stderr] = note: passing raw arrays by value is not FFI-safe [INFO] [stderr] [INFO] [stderr] warning: `spatium-wasm` (lib test) generated 3 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/spatium_wasm-9f68369a4eeb7785) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test exports::tests::test_version ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "7fa52d2f778fa45677f2610c70b18c4696a3016a63bf42a76c95be115679d658", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7fa52d2f778fa45677f2610c70b18c4696a3016a63bf42a76c95be115679d658", kill_on_drop: false }` [INFO] [stdout] 7fa52d2f778fa45677f2610c70b18c4696a3016a63bf42a76c95be115679d658