[INFO] updating cached repository https://github.com/masonium/card-engine [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 82041c99c5a84b4425e2c3ffb656a591da7e0775 [INFO] testing masonium/card-engine against beta-2020-06-03 for beta-1.45-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmasonium%2Fcard-engine" "/workspace/builds/worker-6/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/masonium/card-engine on toolchain beta-2020-06-03 [INFO] running `"/workspace/cargo-home/bin/cargo" "+beta-2020-06-03" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/masonium/card-engine [INFO] finished tweaking git repo https://github.com/masonium/card-engine [INFO] tweaked toml for git repo https://github.com/masonium/card-engine written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/masonium/card-engine already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+beta-2020-06-03" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-06-03" "build" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] ab3801f187c2977b010136dffbbd87164e943c4fc30e6d6355ffc1b1b00a36bf [INFO] running `"docker" "start" "-a" "ab3801f187c2977b010136dffbbd87164e943c4fc30e6d6355ffc1b1b00a36bf"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling libc v0.2.23 [INFO] [stderr] Compiling matrixmultiply v0.1.13 [INFO] [stderr] Compiling either v1.1.0 [INFO] [stderr] Compiling ndarray v0.9.1 [INFO] [stderr] Compiling num-traits v0.1.37 [INFO] [stderr] Compiling ansi_term v0.9.0 [INFO] [stderr] Compiling bitflags v0.8.2 [INFO] [stderr] Compiling unicode-segmentation v1.2.0 [INFO] [stderr] Compiling lazy_static v0.2.8 [INFO] [stderr] Compiling itertools v0.6.0 [INFO] [stderr] Compiling rand v0.3.15 [INFO] [stderr] Compiling term_size v0.3.0 [INFO] [stderr] Compiling atty v0.2.2 [INFO] [stderr] Compiling termion v1.3.0 [INFO] [stderr] Compiling time v0.1.37 [INFO] [stderr] Compiling num-complex v0.1.37 [INFO] [stderr] Compiling clap v2.24.2 [INFO] [stderr] Compiling ndarray-rand v0.5.0 [INFO] [stderr] Compiling card-engine v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/germanwhist/engine.rs:71:16 [INFO] [stderr] | [INFO] [stderr] 71 | phase: Box, [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn GamePhase` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/germanwhist/engine.rs:78:24 [INFO] [stderr] | [INFO] [stderr] 78 | let phase: Box = Box::new(GameOverPhase{}); [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn GamePhase` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/germanwhist/engine.rs:126:33 [INFO] [stderr] | [INFO] [stderr] 126 | pub fn get_phase(&self) -> &GamePhase { [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn GamePhase` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/germanwhist/phase.rs:17:57 [INFO] [stderr] | [INFO] [stderr] 17 | fn transition(&mut self, gs: &mut GameState) -> Box; [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn GamePhase` [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/germanwhist/phase.rs:43:13 [INFO] [stderr] | [INFO] [stderr] 43 | /// this is the first card played [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 44 | gs.player_view_mut(action.player).remove_card(&action.card)?; [INFO] [stderr] | ------------------------------------------------------------ rustdoc does not generate documentation for expressions [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/germanwhist/phase.rs:90:17 [INFO] [stderr] | [INFO] [stderr] 90 | /// Give players their new cards [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 91 | / { [INFO] [stderr] 92 | | let r = gs.revealed.take().expect("must be a revealed card"); [INFO] [stderr] 93 | | gs.player_view_mut(winner).add_card(r.clone()); [INFO] [stderr] 94 | | [INFO] [stderr] ... | [INFO] [stderr] 100 | | events[loser].push(rec_ev); [INFO] [stderr] 101 | | } [INFO] [stderr] | |_________________- rustdoc does not generate documentation for expressions [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/germanwhist/phase.rs:164:56 [INFO] [stderr] | [INFO] [stderr] 164 | fn transition(&mut self, _: &mut GameState) -> Box { [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn GamePhase` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/germanwhist/phase.rs:190:56 [INFO] [stderr] | [INFO] [stderr] 190 | fn transition(&mut self, _: &mut GameState) -> Box { [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn GamePhase` [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/learning/neural_net.rs:54:25 [INFO] [stderr] | [INFO] [stderr] 54 | pub fn af(&self) -> (fn(f32) -> f32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/learning/neural_net.rs:65:26 [INFO] [stderr] | [INFO] [stderr] 65 | pub fn agf(&self) -> (fn(f32, f32) -> f32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/learning/training.rs:48:9 [INFO] [stderr] | [INFO] [stderr] 48 | /// epsilon-greedy state-choosing [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 49 | let mut rng = thread_rng(); [INFO] [stderr] | --------------------------- rustdoc does not generate documentation for statements [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/germanwhist/player.rs:189:23 [INFO] [stderr] | [INFO] [stderr] 189 | fn card_to_vector(mut x: &mut ArrayViewMut, card: &Option, suit_order: &[Suit]) { [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `dump` [INFO] [stderr] --> src/learning/neural_net.rs:283:8 [INFO] [stderr] | [INFO] [stderr] 283 | fn dump(&self) { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added. [INFO] [stderr] --> src/cards.rs:40:19 [INFO] [stderr] | [INFO] [stderr] 40 | ALL_SUITS.into_iter() [INFO] [stderr] | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(array_into_iter)]` on by default [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #66145 [INFO] [stderr] [INFO] [stderr] warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added. [INFO] [stderr] --> src/cards.rs:144:19 [INFO] [stderr] | [INFO] [stderr] 144 | ALL_RANKS.into_iter() [INFO] [stderr] | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #66145 [INFO] [stderr] [INFO] [stderr] warning: 23 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/bin/basic_player.rs:100:23 [INFO] [stderr] | [INFO] [stderr] 100 | let players: [Box; 2] = [Box::new(BasicPlayer::new(r)), Box::new(RandomPlayer::new())]; [INFO] [stderr] | ^^^^^^ help: use `dyn`: `dyn Player` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/bin/basic_player.rs:147:23 [INFO] [stderr] | [INFO] [stderr] 147 | let players: [Box; 2] = [Box::new(BasicPlayer::new(None)), Box::new(RandomPlayer::new())]; [INFO] [stderr] | ^^^^^^ help: use `dyn`: `dyn Player` [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/bin/basic_player.rs:200:5 [INFO] [stderr] | [INFO] [stderr] 200 | /// start the game [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 201 | let mut actions = eng.possible_actions(); [INFO] [stderr] | ----------------------------------------- rustdoc does not generate documentation for statements [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | / lazy_static! { [INFO] [stderr] 20 | | static ref A: Array = arr1(&[0.3, 0.4, -0.5, 0.8, 0.2]); [INFO] [stderr] 21 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | / lazy_static! { [INFO] [stderr] 20 | | static ref A: Array = arr1(&[0.3, 0.4, -0.5, 0.8, 0.2]); [INFO] [stderr] 21 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 26 | / lazy_static! { [INFO] [stderr] 27 | | static ref A: Array = arr2(&[[0.3, 0.4, -0.5, 0.8, 0.2], [INFO] [stderr] 28 | | [-0.2, 0.6, 0.3, 0.1, 0.1]]); [INFO] [stderr] 29 | | static ref b: Array = arr1(&[-0.071, 0.4]); [INFO] [stderr] 30 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 26 | / lazy_static! { [INFO] [stderr] 27 | | static ref A: Array = arr2(&[[0.3, 0.4, -0.5, 0.8, 0.2], [INFO] [stderr] 28 | | [-0.2, 0.6, 0.3, 0.1, 0.1]]); [INFO] [stderr] 29 | | static ref b: Array = arr1(&[-0.071, 0.4]); [INFO] [stderr] 30 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 26 | / lazy_static! { [INFO] [stderr] 27 | | static ref A: Array = arr2(&[[0.3, 0.4, -0.5, 0.8, 0.2], [INFO] [stderr] 28 | | [-0.2, 0.6, 0.3, 0.1, 0.1]]); [INFO] [stderr] 29 | | static ref b: Array = arr1(&[-0.071, 0.4]); [INFO] [stderr] 30 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 26 | / lazy_static! { [INFO] [stderr] 27 | | static ref A: Array = arr2(&[[0.3, 0.4, -0.5, 0.8, 0.2], [INFO] [stderr] 28 | | [-0.2, 0.6, 0.3, 0.1, 0.1]]); [INFO] [stderr] 29 | | static ref b: Array = arr1(&[-0.071, 0.4]); [INFO] [stderr] 30 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 39 | / lazy_static! { [INFO] [stderr] 40 | | static ref A1: Array = arr2(&[[0.3, 0.4, -0.5, 0.8, 0.2], [INFO] [stderr] 41 | | [0.14, -0.4, -0.5, 0.28, 0.2], [INFO] [stderr] 42 | | [0.56, 0.4, 0.75, -0.1, -0.2]]); [INFO] [stderr] ... | [INFO] [stderr] 45 | | static ref A2: Array = arr1(&[1.0, -0.2, 0.5]); [INFO] [stderr] 46 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 39 | / lazy_static! { [INFO] [stderr] 40 | | static ref A1: Array = arr2(&[[0.3, 0.4, -0.5, 0.8, 0.2], [INFO] [stderr] 41 | | [0.14, -0.4, -0.5, 0.28, 0.2], [INFO] [stderr] 42 | | [0.56, 0.4, 0.75, -0.1, -0.2]]); [INFO] [stderr] ... | [INFO] [stderr] 45 | | static ref A2: Array = arr1(&[1.0, -0.2, 0.5]); [INFO] [stderr] 46 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 39 | / lazy_static! { [INFO] [stderr] 40 | | static ref A1: Array = arr2(&[[0.3, 0.4, -0.5, 0.8, 0.2], [INFO] [stderr] 41 | | [0.14, -0.4, -0.5, 0.28, 0.2], [INFO] [stderr] 42 | | [0.56, 0.4, 0.75, -0.1, -0.2]]); [INFO] [stderr] ... | [INFO] [stderr] 45 | | static ref A2: Array = arr1(&[1.0, -0.2, 0.5]); [INFO] [stderr] 46 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 39 | / lazy_static! { [INFO] [stderr] 40 | | static ref A1: Array = arr2(&[[0.3, 0.4, -0.5, 0.8, 0.2], [INFO] [stderr] 41 | | [0.14, -0.4, -0.5, 0.28, 0.2], [INFO] [stderr] 42 | | [0.56, 0.4, 0.75, -0.1, -0.2]]); [INFO] [stderr] ... | [INFO] [stderr] 45 | | static ref A2: Array = arr1(&[1.0, -0.2, 0.5]); [INFO] [stderr] 46 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 39 | / lazy_static! { [INFO] [stderr] 40 | | static ref A1: Array = arr2(&[[0.3, 0.4, -0.5, 0.8, 0.2], [INFO] [stderr] 41 | | [0.14, -0.4, -0.5, 0.28, 0.2], [INFO] [stderr] 42 | | [0.56, 0.4, 0.75, -0.1, -0.2]]); [INFO] [stderr] ... | [INFO] [stderr] 45 | | static ref A2: Array = arr1(&[1.0, -0.2, 0.5]); [INFO] [stderr] 46 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 39 | / lazy_static! { [INFO] [stderr] 40 | | static ref A1: Array = arr2(&[[0.3, 0.4, -0.5, 0.8, 0.2], [INFO] [stderr] 41 | | [0.14, -0.4, -0.5, 0.28, 0.2], [INFO] [stderr] 42 | | [0.56, 0.4, 0.75, -0.1, -0.2]]); [INFO] [stderr] ... | [INFO] [stderr] 45 | | static ref A2: Array = arr1(&[1.0, -0.2, 0.5]); [INFO] [stderr] 46 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:56:5 [INFO] [stderr] | [INFO] [stderr] 56 | / lazy_static! { [INFO] [stderr] 57 | | static ref A1: Array = arr2(&[[0.1, 0.2], [INFO] [stderr] 58 | | [0.3, 0.4], [INFO] [stderr] 59 | | [0.5, 0.6]]); [INFO] [stderr] ... | [INFO] [stderr] 62 | | static ref A2: Array = arr1(&[0.6, -0.4, -0.2]); [INFO] [stderr] 63 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:56:5 [INFO] [stderr] | [INFO] [stderr] 56 | / lazy_static! { [INFO] [stderr] 57 | | static ref A1: Array = arr2(&[[0.1, 0.2], [INFO] [stderr] 58 | | [0.3, 0.4], [INFO] [stderr] 59 | | [0.5, 0.6]]); [INFO] [stderr] ... | [INFO] [stderr] 62 | | static ref A2: Array = arr1(&[0.6, -0.4, -0.2]); [INFO] [stderr] 63 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:56:5 [INFO] [stderr] | [INFO] [stderr] 56 | / lazy_static! { [INFO] [stderr] 57 | | static ref A1: Array = arr2(&[[0.1, 0.2], [INFO] [stderr] 58 | | [0.3, 0.4], [INFO] [stderr] 59 | | [0.5, 0.6]]); [INFO] [stderr] ... | [INFO] [stderr] 62 | | static ref A2: Array = arr1(&[0.6, -0.4, -0.2]); [INFO] [stderr] 63 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:56:5 [INFO] [stderr] | [INFO] [stderr] 56 | / lazy_static! { [INFO] [stderr] 57 | | static ref A1: Array = arr2(&[[0.1, 0.2], [INFO] [stderr] 58 | | [0.3, 0.4], [INFO] [stderr] 59 | | [0.5, 0.6]]); [INFO] [stderr] ... | [INFO] [stderr] 62 | | static ref A2: Array = arr1(&[0.6, -0.4, -0.2]); [INFO] [stderr] 63 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:56:5 [INFO] [stderr] | [INFO] [stderr] 56 | / lazy_static! { [INFO] [stderr] 57 | | static ref A1: Array = arr2(&[[0.1, 0.2], [INFO] [stderr] 58 | | [0.3, 0.4], [INFO] [stderr] 59 | | [0.5, 0.6]]); [INFO] [stderr] ... | [INFO] [stderr] 62 | | static ref A2: Array = arr1(&[0.6, -0.4, -0.2]); [INFO] [stderr] 63 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:56:5 [INFO] [stderr] | [INFO] [stderr] 56 | / lazy_static! { [INFO] [stderr] 57 | | static ref A1: Array = arr2(&[[0.1, 0.2], [INFO] [stderr] 58 | | [0.3, 0.4], [INFO] [stderr] 59 | | [0.5, 0.6]]); [INFO] [stderr] ... | [INFO] [stderr] 62 | | static ref A2: Array = arr1(&[0.6, -0.4, -0.2]); [INFO] [stderr] 63 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/bin/basic_player.rs:251:9 [INFO] [stderr] | [INFO] [stderr] 251 | sl.train_on_episode(false); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: static variable `b` should have an upper case name [INFO] [stderr] --> src/bin/single_layer_learn.rs:29:20 [INFO] [stderr] | [INFO] [stderr] 29 | static ref b: Array = arr1(&[-0.071, 0.4]); [INFO] [stderr] | ^ help: convert the identifier to upper case: `B` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 4 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: 19 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 29.33s [INFO] running `"docker" "inspect" "ab3801f187c2977b010136dffbbd87164e943c4fc30e6d6355ffc1b1b00a36bf"` [INFO] running `"docker" "rm" "-f" "ab3801f187c2977b010136dffbbd87164e943c4fc30e6d6355ffc1b1b00a36bf"` [INFO] [stdout] ab3801f187c2977b010136dffbbd87164e943c4fc30e6d6355ffc1b1b00a36bf [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-06-03" "test" "--frozen" "--no-run"` [INFO] [stdout] f858bbfd25ad52aca7fffeec713da04c4f178cc76bfb217be4bfc9103d445018 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `"docker" "start" "-a" "f858bbfd25ad52aca7fffeec713da04c4f178cc76bfb217be4bfc9103d445018"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling card-engine v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/germanwhist/engine.rs:71:16 [INFO] [stderr] | [INFO] [stderr] 71 | phase: Box, [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn GamePhase` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/germanwhist/engine.rs:78:24 [INFO] [stderr] | [INFO] [stderr] 78 | let phase: Box = Box::new(GameOverPhase{}); [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn GamePhase` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/germanwhist/engine.rs:126:33 [INFO] [stderr] | [INFO] [stderr] 126 | pub fn get_phase(&self) -> &GamePhase { [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn GamePhase` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/germanwhist/phase.rs:17:57 [INFO] [stderr] | [INFO] [stderr] 17 | fn transition(&mut self, gs: &mut GameState) -> Box; [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn GamePhase` [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/germanwhist/phase.rs:43:13 [INFO] [stderr] | [INFO] [stderr] 43 | /// this is the first card played [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 44 | gs.player_view_mut(action.player).remove_card(&action.card)?; [INFO] [stderr] | ------------------------------------------------------------ rustdoc does not generate documentation for expressions [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/germanwhist/phase.rs:90:17 [INFO] [stderr] | [INFO] [stderr] 90 | /// Give players their new cards [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 91 | / { [INFO] [stderr] 92 | | let r = gs.revealed.take().expect("must be a revealed card"); [INFO] [stderr] 93 | | gs.player_view_mut(winner).add_card(r.clone()); [INFO] [stderr] 94 | | [INFO] [stderr] ... | [INFO] [stderr] 100 | | events[loser].push(rec_ev); [INFO] [stderr] 101 | | } [INFO] [stderr] | |_________________- rustdoc does not generate documentation for expressions [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/germanwhist/phase.rs:164:56 [INFO] [stderr] | [INFO] [stderr] 164 | fn transition(&mut self, _: &mut GameState) -> Box { [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn GamePhase` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/germanwhist/phase.rs:190:56 [INFO] [stderr] | [INFO] [stderr] 190 | fn transition(&mut self, _: &mut GameState) -> Box { [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn GamePhase` [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/learning/neural_net.rs:54:25 [INFO] [stderr] | [INFO] [stderr] 54 | pub fn af(&self) -> (fn(f32) -> f32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/learning/neural_net.rs:65:26 [INFO] [stderr] | [INFO] [stderr] 65 | pub fn agf(&self) -> (fn(f32, f32) -> f32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/learning/training.rs:48:9 [INFO] [stderr] | [INFO] [stderr] 48 | /// epsilon-greedy state-choosing [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 49 | let mut rng = thread_rng(); [INFO] [stderr] | --------------------------- rustdoc does not generate documentation for statements [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/germanwhist/player.rs:189:23 [INFO] [stderr] | [INFO] [stderr] 189 | fn card_to_vector(mut x: &mut ArrayViewMut, card: &Option, suit_order: &[Suit]) { [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `dump` [INFO] [stderr] --> src/learning/neural_net.rs:283:8 [INFO] [stderr] | [INFO] [stderr] 283 | fn dump(&self) { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added. [INFO] [stderr] --> src/cards.rs:40:19 [INFO] [stderr] | [INFO] [stderr] 40 | ALL_SUITS.into_iter() [INFO] [stderr] | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(array_into_iter)]` on by default [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #66145 [INFO] [stderr] [INFO] [stderr] warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added. [INFO] [stderr] --> src/cards.rs:144:19 [INFO] [stderr] | [INFO] [stderr] 144 | ALL_RANKS.into_iter() [INFO] [stderr] | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #66145 [INFO] [stderr] [INFO] [stderr] warning: 23 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/bin/basic_player.rs:100:23 [INFO] [stderr] | [INFO] [stderr] 100 | let players: [Box; 2] = [Box::new(BasicPlayer::new(r)), Box::new(RandomPlayer::new())]; [INFO] [stderr] | ^^^^^^ help: use `dyn`: `dyn Player` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/bin/basic_player.rs:147:23 [INFO] [stderr] | [INFO] [stderr] 147 | let players: [Box; 2] = [Box::new(BasicPlayer::new(None)), Box::new(RandomPlayer::new())]; [INFO] [stderr] | ^^^^^^ help: use `dyn`: `dyn Player` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/germanwhist/engine.rs:71:16 [INFO] [stderr] | [INFO] [stderr] 71 | phase: Box, [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn GamePhase` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/germanwhist/engine.rs:78:24 [INFO] [stderr] | [INFO] [stderr] 78 | let phase: Box = Box::new(GameOverPhase{}); [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn GamePhase` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/germanwhist/engine.rs:126:33 [INFO] [stderr] | [INFO] [stderr] 126 | pub fn get_phase(&self) -> &GamePhase { [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn GamePhase` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/germanwhist/phase.rs:17:57 [INFO] [stderr] | [INFO] [stderr] 17 | fn transition(&mut self, gs: &mut GameState) -> Box; [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn GamePhase` [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/germanwhist/phase.rs:43:13 [INFO] [stderr] | [INFO] [stderr] 43 | /// this is the first card played [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 44 | gs.player_view_mut(action.player).remove_card(&action.card)?; [INFO] [stderr] | ------------------------------------------------------------ rustdoc does not generate documentation for expressions [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/germanwhist/phase.rs:90:17 [INFO] [stderr] | [INFO] [stderr] 90 | /// Give players their new cards [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 91 | / { [INFO] [stderr] 92 | | let r = gs.revealed.take().expect("must be a revealed card"); [INFO] [stderr] 93 | | gs.player_view_mut(winner).add_card(r.clone()); [INFO] [stderr] 94 | | [INFO] [stderr] ... | [INFO] [stderr] 100 | | events[loser].push(rec_ev); [INFO] [stderr] 101 | | } [INFO] [stderr] | |_________________- rustdoc does not generate documentation for expressions [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/germanwhist/phase.rs:164:56 [INFO] [stderr] | [INFO] [stderr] 164 | fn transition(&mut self, _: &mut GameState) -> Box { [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn GamePhase` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/germanwhist/phase.rs:190:56 [INFO] [stderr] | [INFO] [stderr] 190 | fn transition(&mut self, _: &mut GameState) -> Box { [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn GamePhase` [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/learning/neural_net.rs:54:25 [INFO] [stderr] | [INFO] [stderr] 54 | pub fn af(&self) -> (fn(f32) -> f32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/learning/neural_net.rs:65:26 [INFO] [stderr] | [INFO] [stderr] 65 | pub fn agf(&self) -> (fn(f32, f32) -> f32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/learning/training.rs:48:9 [INFO] [stderr] | [INFO] [stderr] 48 | /// epsilon-greedy state-choosing [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 49 | let mut rng = thread_rng(); [INFO] [stderr] | --------------------------- rustdoc does not generate documentation for statements [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/bin/basic_player.rs:200:5 [INFO] [stderr] | [INFO] [stderr] 200 | /// start the game [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 201 | let mut actions = eng.possible_actions(); [INFO] [stderr] | ----------------------------------------- rustdoc does not generate documentation for statements [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | / lazy_static! { [INFO] [stderr] 20 | | static ref A: Array = arr1(&[0.3, 0.4, -0.5, 0.8, 0.2]); [INFO] [stderr] 21 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | / lazy_static! { [INFO] [stderr] 20 | | static ref A: Array = arr1(&[0.3, 0.4, -0.5, 0.8, 0.2]); [INFO] [stderr] 21 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 26 | / lazy_static! { [INFO] [stderr] 27 | | static ref A: Array = arr2(&[[0.3, 0.4, -0.5, 0.8, 0.2], [INFO] [stderr] 28 | | [-0.2, 0.6, 0.3, 0.1, 0.1]]); [INFO] [stderr] 29 | | static ref b: Array = arr1(&[-0.071, 0.4]); [INFO] [stderr] 30 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 26 | / lazy_static! { [INFO] [stderr] 27 | | static ref A: Array = arr2(&[[0.3, 0.4, -0.5, 0.8, 0.2], [INFO] [stderr] 28 | | [-0.2, 0.6, 0.3, 0.1, 0.1]]); [INFO] [stderr] 29 | | static ref b: Array = arr1(&[-0.071, 0.4]); [INFO] [stderr] 30 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 26 | / lazy_static! { [INFO] [stderr] 27 | | static ref A: Array = arr2(&[[0.3, 0.4, -0.5, 0.8, 0.2], [INFO] [stderr] 28 | | [-0.2, 0.6, 0.3, 0.1, 0.1]]); [INFO] [stderr] 29 | | static ref b: Array = arr1(&[-0.071, 0.4]); [INFO] [stderr] 30 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 26 | / lazy_static! { [INFO] [stderr] 27 | | static ref A: Array = arr2(&[[0.3, 0.4, -0.5, 0.8, 0.2], [INFO] [stderr] 28 | | [-0.2, 0.6, 0.3, 0.1, 0.1]]); [INFO] [stderr] 29 | | static ref b: Array = arr1(&[-0.071, 0.4]); [INFO] [stderr] 30 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 39 | / lazy_static! { [INFO] [stderr] 40 | | static ref A1: Array = arr2(&[[0.3, 0.4, -0.5, 0.8, 0.2], [INFO] [stderr] 41 | | [0.14, -0.4, -0.5, 0.28, 0.2], [INFO] [stderr] 42 | | [0.56, 0.4, 0.75, -0.1, -0.2]]); [INFO] [stderr] ... | [INFO] [stderr] 45 | | static ref A2: Array = arr1(&[1.0, -0.2, 0.5]); [INFO] [stderr] 46 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 39 | / lazy_static! { [INFO] [stderr] 40 | | static ref A1: Array = arr2(&[[0.3, 0.4, -0.5, 0.8, 0.2], [INFO] [stderr] 41 | | [0.14, -0.4, -0.5, 0.28, 0.2], [INFO] [stderr] 42 | | [0.56, 0.4, 0.75, -0.1, -0.2]]); [INFO] [stderr] ... | [INFO] [stderr] 45 | | static ref A2: Array = arr1(&[1.0, -0.2, 0.5]); [INFO] [stderr] 46 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 39 | / lazy_static! { [INFO] [stderr] 40 | | static ref A1: Array = arr2(&[[0.3, 0.4, -0.5, 0.8, 0.2], [INFO] [stderr] 41 | | [0.14, -0.4, -0.5, 0.28, 0.2], [INFO] [stderr] 42 | | [0.56, 0.4, 0.75, -0.1, -0.2]]); [INFO] [stderr] ... | [INFO] [stderr] 45 | | static ref A2: Array = arr1(&[1.0, -0.2, 0.5]); [INFO] [stderr] 46 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 39 | / lazy_static! { [INFO] [stderr] 40 | | static ref A1: Array = arr2(&[[0.3, 0.4, -0.5, 0.8, 0.2], [INFO] [stderr] 41 | | [0.14, -0.4, -0.5, 0.28, 0.2], [INFO] [stderr] 42 | | [0.56, 0.4, 0.75, -0.1, -0.2]]); [INFO] [stderr] ... | [INFO] [stderr] 45 | | static ref A2: Array = arr1(&[1.0, -0.2, 0.5]); [INFO] [stderr] 46 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 39 | / lazy_static! { [INFO] [stderr] 40 | | static ref A1: Array = arr2(&[[0.3, 0.4, -0.5, 0.8, 0.2], [INFO] [stderr] 41 | | [0.14, -0.4, -0.5, 0.28, 0.2], [INFO] [stderr] 42 | | [0.56, 0.4, 0.75, -0.1, -0.2]]); [INFO] [stderr] ... | [INFO] [stderr] 45 | | static ref A2: Array = arr1(&[1.0, -0.2, 0.5]); [INFO] [stderr] 46 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 39 | / lazy_static! { [INFO] [stderr] 40 | | static ref A1: Array = arr2(&[[0.3, 0.4, -0.5, 0.8, 0.2], [INFO] [stderr] 41 | | [0.14, -0.4, -0.5, 0.28, 0.2], [INFO] [stderr] 42 | | [0.56, 0.4, 0.75, -0.1, -0.2]]); [INFO] [stderr] ... | [INFO] [stderr] 45 | | static ref A2: Array = arr1(&[1.0, -0.2, 0.5]); [INFO] [stderr] 46 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:56:5 [INFO] [stderr] | [INFO] [stderr] 56 | / lazy_static! { [INFO] [stderr] 57 | | static ref A1: Array = arr2(&[[0.1, 0.2], [INFO] [stderr] 58 | | [0.3, 0.4], [INFO] [stderr] 59 | | [0.5, 0.6]]); [INFO] [stderr] ... | [INFO] [stderr] 62 | | static ref A2: Array = arr1(&[0.6, -0.4, -0.2]); [INFO] [stderr] 63 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:56:5 [INFO] [stderr] | [INFO] [stderr] 56 | / lazy_static! { [INFO] [stderr] 57 | | static ref A1: Array = arr2(&[[0.1, 0.2], [INFO] [stderr] 58 | | [0.3, 0.4], [INFO] [stderr] 59 | | [0.5, 0.6]]); [INFO] [stderr] ... | [INFO] [stderr] 62 | | static ref A2: Array = arr1(&[0.6, -0.4, -0.2]); [INFO] [stderr] 63 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:56:5 [INFO] [stderr] | [INFO] [stderr] 56 | / lazy_static! { [INFO] [stderr] 57 | | static ref A1: Array = arr2(&[[0.1, 0.2], [INFO] [stderr] 58 | | [0.3, 0.4], [INFO] [stderr] 59 | | [0.5, 0.6]]); [INFO] [stderr] ... | [INFO] [stderr] 62 | | static ref A2: Array = arr1(&[0.6, -0.4, -0.2]); [INFO] [stderr] 63 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:56:5 [INFO] [stderr] | [INFO] [stderr] 56 | / lazy_static! { [INFO] [stderr] 57 | | static ref A1: Array = arr2(&[[0.1, 0.2], [INFO] [stderr] 58 | | [0.3, 0.4], [INFO] [stderr] 59 | | [0.5, 0.6]]); [INFO] [stderr] ... | [INFO] [stderr] 62 | | static ref A2: Array = arr1(&[0.6, -0.4, -0.2]); [INFO] [stderr] 63 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:56:5 [INFO] [stderr] | [INFO] [stderr] 56 | / lazy_static! { [INFO] [stderr] 57 | | static ref A1: Array = arr2(&[[0.1, 0.2], [INFO] [stderr] 58 | | [0.3, 0.4], [INFO] [stderr] 59 | | [0.5, 0.6]]); [INFO] [stderr] ... | [INFO] [stderr] 62 | | static ref A2: Array = arr1(&[0.6, -0.4, -0.2]); [INFO] [stderr] 63 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:56:5 [INFO] [stderr] | [INFO] [stderr] 56 | / lazy_static! { [INFO] [stderr] 57 | | static ref A1: Array = arr2(&[[0.1, 0.2], [INFO] [stderr] 58 | | [0.3, 0.4], [INFO] [stderr] 59 | | [0.5, 0.6]]); [INFO] [stderr] ... | [INFO] [stderr] 62 | | static ref A2: Array = arr1(&[0.6, -0.4, -0.2]); [INFO] [stderr] 63 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/bin/basic_player.rs:251:9 [INFO] [stderr] | [INFO] [stderr] 251 | sl.train_on_episode(false); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: static variable `b` should have an upper case name [INFO] [stderr] --> src/bin/single_layer_learn.rs:29:20 [INFO] [stderr] | [INFO] [stderr] 29 | static ref b: Array = arr1(&[-0.071, 0.4]); [INFO] [stderr] | ^ help: convert the identifier to upper case: `B` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 4 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: 19 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/germanwhist/player.rs:189:23 [INFO] [stderr] | [INFO] [stderr] 189 | fn card_to_vector(mut x: &mut ArrayViewMut, card: &Option, suit_order: &[Suit]) { [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `dump` [INFO] [stderr] --> src/learning/neural_net.rs:283:8 [INFO] [stderr] | [INFO] [stderr] 283 | fn dump(&self) { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added. [INFO] [stderr] --> src/cards.rs:40:19 [INFO] [stderr] | [INFO] [stderr] 40 | ALL_SUITS.into_iter() [INFO] [stderr] | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(array_into_iter)]` on by default [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #66145 [INFO] [stderr] [INFO] [stderr] warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added. [INFO] [stderr] --> src/cards.rs:144:19 [INFO] [stderr] | [INFO] [stderr] 144 | ALL_RANKS.into_iter() [INFO] [stderr] | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #66145 [INFO] [stderr] [INFO] [stderr] warning: 23 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.74s [INFO] running `"docker" "inspect" "f858bbfd25ad52aca7fffeec713da04c4f178cc76bfb217be4bfc9103d445018"` [INFO] running `"docker" "rm" "-f" "f858bbfd25ad52aca7fffeec713da04c4f178cc76bfb217be4bfc9103d445018"` [INFO] [stdout] f858bbfd25ad52aca7fffeec713da04c4f178cc76bfb217be4bfc9103d445018 [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-06-03" "test" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 0ccedd9d4951e026b147cad278f26a1ca30a3120241303d738d9ff3c9464b73b [INFO] running `"docker" "start" "-a" "0ccedd9d4951e026b147cad278f26a1ca30a3120241303d738d9ff3c9464b73b"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/germanwhist/engine.rs:71:16 [INFO] [stderr] | [INFO] [stderr] 71 | phase: Box, [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn GamePhase` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/germanwhist/engine.rs:78:24 [INFO] [stderr] | [INFO] [stderr] 78 | let phase: Box = Box::new(GameOverPhase{}); [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn GamePhase` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/germanwhist/engine.rs:126:33 [INFO] [stderr] | [INFO] [stderr] 126 | pub fn get_phase(&self) -> &GamePhase { [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn GamePhase` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/germanwhist/phase.rs:17:57 [INFO] [stderr] | [INFO] [stderr] 17 | fn transition(&mut self, gs: &mut GameState) -> Box; [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn GamePhase` [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/germanwhist/phase.rs:43:13 [INFO] [stderr] | [INFO] [stderr] 43 | /// this is the first card played [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 44 | gs.player_view_mut(action.player).remove_card(&action.card)?; [INFO] [stderr] | ------------------------------------------------------------ rustdoc does not generate documentation for expressions [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/germanwhist/phase.rs:90:17 [INFO] [stderr] | [INFO] [stderr] 90 | /// Give players their new cards [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 91 | / { [INFO] [stderr] 92 | | let r = gs.revealed.take().expect("must be a revealed card"); [INFO] [stderr] 93 | | gs.player_view_mut(winner).add_card(r.clone()); [INFO] [stderr] 94 | | [INFO] [stderr] ... | [INFO] [stderr] 100 | | events[loser].push(rec_ev); [INFO] [stderr] 101 | | } [INFO] [stderr] | |_________________- rustdoc does not generate documentation for expressions [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/germanwhist/phase.rs:164:56 [INFO] [stderr] | [INFO] [stderr] 164 | fn transition(&mut self, _: &mut GameState) -> Box { [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn GamePhase` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/germanwhist/phase.rs:190:56 [INFO] [stderr] | [INFO] [stderr] 190 | fn transition(&mut self, _: &mut GameState) -> Box { [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn GamePhase` [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/learning/neural_net.rs:54:25 [INFO] [stderr] | [INFO] [stderr] 54 | pub fn af(&self) -> (fn(f32) -> f32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/learning/neural_net.rs:65:26 [INFO] [stderr] | [INFO] [stderr] 65 | pub fn agf(&self) -> (fn(f32, f32) -> f32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/learning/training.rs:48:9 [INFO] [stderr] | [INFO] [stderr] 48 | /// epsilon-greedy state-choosing [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 49 | let mut rng = thread_rng(); [INFO] [stderr] | --------------------------- rustdoc does not generate documentation for statements [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/germanwhist/engine.rs:71:16 [INFO] [stderr] | [INFO] [stderr] 71 | phase: Box, [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn GamePhase` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/germanwhist/engine.rs:78:24 [INFO] [stderr] | [INFO] [stderr] 78 | let phase: Box = Box::new(GameOverPhase{}); [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn GamePhase` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/germanwhist/engine.rs:126:33 [INFO] [stderr] | [INFO] [stderr] 126 | pub fn get_phase(&self) -> &GamePhase { [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn GamePhase` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/germanwhist/phase.rs:17:57 [INFO] [stderr] | [INFO] [stderr] 17 | fn transition(&mut self, gs: &mut GameState) -> Box; [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn GamePhase` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/germanwhist/phase.rs:43:13 [INFO] [stderr] | [INFO] [stderr] 43 | /// this is the first card played [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 44 | gs.player_view_mut(action.player).remove_card(&action.card)?; [INFO] [stderr] | ------------------------------------------------------------ rustdoc does not generate documentation for expressions [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/germanwhist/phase.rs:90:17 [INFO] [stderr] | [INFO] [stderr] 90 | /// Give players their new cards [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 91 | / { [INFO] [stderr] 92 | | let r = gs.revealed.take().expect("must be a revealed card"); [INFO] [stderr] 93 | | gs.player_view_mut(winner).add_card(r.clone()); [INFO] [stderr] 94 | | [INFO] [stderr] ... | [INFO] [stderr] 100 | | events[loser].push(rec_ev); [INFO] [stderr] 101 | | } [INFO] [stderr] | |_________________- rustdoc does not generate documentation for expressions [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/germanwhist/phase.rs:164:56 [INFO] [stderr] | [INFO] [stderr] 164 | fn transition(&mut self, _: &mut GameState) -> Box { [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn GamePhase` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/germanwhist/phase.rs:190:56 [INFO] [stderr] | [INFO] [stderr] 190 | fn transition(&mut self, _: &mut GameState) -> Box { [INFO] [stderr] | ^^^^^^^^^ help: use `dyn`: `dyn GamePhase` [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/learning/neural_net.rs:54:25 [INFO] [stderr] | [INFO] [stderr] 54 | pub fn af(&self) -> (fn(f32) -> f32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/learning/neural_net.rs:65:26 [INFO] [stderr] | [INFO] [stderr] 65 | pub fn agf(&self) -> (fn(f32, f32) -> f32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/learning/training.rs:48:9 [INFO] [stderr] | [INFO] [stderr] 48 | /// epsilon-greedy state-choosing [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 49 | let mut rng = thread_rng(); [INFO] [stderr] | --------------------------- rustdoc does not generate documentation for statements [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/germanwhist/player.rs:189:23 [INFO] [stderr] | [INFO] [stderr] 189 | fn card_to_vector(mut x: &mut ArrayViewMut, card: &Option, suit_order: &[Suit]) { [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `dump` [INFO] [stderr] --> src/learning/neural_net.rs:283:8 [INFO] [stderr] | [INFO] [stderr] 283 | fn dump(&self) { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added. [INFO] [stderr] --> src/cards.rs:40:19 [INFO] [stderr] | [INFO] [stderr] 40 | ALL_SUITS.into_iter() [INFO] [stderr] | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(array_into_iter)]` on by default [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #66145 [INFO] [stderr] [INFO] [stderr] warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added. [INFO] [stderr] --> src/cards.rs:144:19 [INFO] [stderr] | [INFO] [stderr] 144 | ALL_RANKS.into_iter() [INFO] [stderr] | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #66145 [INFO] [stderr] [INFO] [stderr] warning: 23 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/cards.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | / lazy_static! { [INFO] [stderr] 88 | | static ref RED: String = format!("{}", color::Fg(color::Red)); [INFO] [stderr] 89 | | static ref GREEN: String = format!("{}", color::Fg(color::Green)); [INFO] [stderr] 90 | | static ref BLUE: String = format!("{}", color::Fg(color::Blue)); [INFO] [stderr] 91 | | static ref RESET: String = format!("{}", color::Fg(color::Reset)); [INFO] [stderr] 92 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/germanwhist/player.rs:189:23 [INFO] [stderr] | [INFO] [stderr] 189 | fn card_to_vector(mut x: &mut ArrayViewMut, card: &Option, suit_order: &[Suit]) { [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `dump` [INFO] [stderr] --> src/learning/neural_net.rs:283:8 [INFO] [stderr] | [INFO] [stderr] 283 | fn dump(&self) { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added. [INFO] [stderr] --> src/cards.rs:40:19 [INFO] [stderr] | [INFO] [stderr] 40 | ALL_SUITS.into_iter() [INFO] [stderr] | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(array_into_iter)]` on by default [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #66145 [INFO] [stderr] [INFO] [stderr] warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added. [INFO] [stderr] --> src/cards.rs:144:19 [INFO] [stderr] | [INFO] [stderr] 144 | ALL_RANKS.into_iter() [INFO] [stderr] | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #66145 [INFO] [stderr] [INFO] [stderr] warning: 23 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/bin/basic_player.rs:100:23 [INFO] [stderr] | [INFO] [stderr] 100 | let players: [Box; 2] = [Box::new(BasicPlayer::new(r)), Box::new(RandomPlayer::new())]; [INFO] [stderr] | ^^^^^^ help: use `dyn`: `dyn Player` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | / lazy_static! { [INFO] [stderr] 20 | | static ref A: Array = arr1(&[0.3, 0.4, -0.5, 0.8, 0.2]); [INFO] [stderr] 21 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/bin/basic_player.rs:147:23 [INFO] [stderr] | [INFO] [stderr] 147 | let players: [Box; 2] = [Box::new(BasicPlayer::new(None)), Box::new(RandomPlayer::new())]; [INFO] [stderr] | ^^^^^^ help: use `dyn`: `dyn Player` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | / lazy_static! { [INFO] [stderr] 20 | | static ref A: Array = arr1(&[0.3, 0.4, -0.5, 0.8, 0.2]); [INFO] [stderr] 21 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/bin/basic_player.rs:200:5 [INFO] [stderr] | [INFO] [stderr] 200 | /// start the game [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 201 | let mut actions = eng.possible_actions(); [INFO] [stderr] | ----------------------------------------- rustdoc does not generate documentation for statements [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/bin/basic_player.rs:251:9 [INFO] [stderr] | [INFO] [stderr] 251 | sl.train_on_episode(false); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: 4 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 26 | / lazy_static! { [INFO] [stderr] 27 | | static ref A: Array = arr2(&[[0.3, 0.4, -0.5, 0.8, 0.2], [INFO] [stderr] 28 | | [-0.2, 0.6, 0.3, 0.1, 0.1]]); [INFO] [stderr] 29 | | static ref b: Array = arr1(&[-0.071, 0.4]); [INFO] [stderr] 30 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 26 | / lazy_static! { [INFO] [stderr] 27 | | static ref A: Array = arr2(&[[0.3, 0.4, -0.5, 0.8, 0.2], [INFO] [stderr] 28 | | [-0.2, 0.6, 0.3, 0.1, 0.1]]); [INFO] [stderr] 29 | | static ref b: Array = arr1(&[-0.071, 0.4]); [INFO] [stderr] 30 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 26 | / lazy_static! { [INFO] [stderr] 27 | | static ref A: Array = arr2(&[[0.3, 0.4, -0.5, 0.8, 0.2], [INFO] [stderr] 28 | | [-0.2, 0.6, 0.3, 0.1, 0.1]]); [INFO] [stderr] 29 | | static ref b: Array = arr1(&[-0.071, 0.4]); [INFO] [stderr] 30 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 26 | / lazy_static! { [INFO] [stderr] 27 | | static ref A: Array = arr2(&[[0.3, 0.4, -0.5, 0.8, 0.2], [INFO] [stderr] 28 | | [-0.2, 0.6, 0.3, 0.1, 0.1]]); [INFO] [stderr] 29 | | static ref b: Array = arr1(&[-0.071, 0.4]); [INFO] [stderr] 30 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 39 | / lazy_static! { [INFO] [stderr] 40 | | static ref A1: Array = arr2(&[[0.3, 0.4, -0.5, 0.8, 0.2], [INFO] [stderr] 41 | | [0.14, -0.4, -0.5, 0.28, 0.2], [INFO] [stderr] 42 | | [0.56, 0.4, 0.75, -0.1, -0.2]]); [INFO] [stderr] ... | [INFO] [stderr] 45 | | static ref A2: Array = arr1(&[1.0, -0.2, 0.5]); [INFO] [stderr] 46 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 39 | / lazy_static! { [INFO] [stderr] 40 | | static ref A1: Array = arr2(&[[0.3, 0.4, -0.5, 0.8, 0.2], [INFO] [stderr] 41 | | [0.14, -0.4, -0.5, 0.28, 0.2], [INFO] [stderr] 42 | | [0.56, 0.4, 0.75, -0.1, -0.2]]); [INFO] [stderr] ... | [INFO] [stderr] 45 | | static ref A2: Array = arr1(&[1.0, -0.2, 0.5]); [INFO] [stderr] 46 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 39 | / lazy_static! { [INFO] [stderr] 40 | | static ref A1: Array = arr2(&[[0.3, 0.4, -0.5, 0.8, 0.2], [INFO] [stderr] 41 | | [0.14, -0.4, -0.5, 0.28, 0.2], [INFO] [stderr] 42 | | [0.56, 0.4, 0.75, -0.1, -0.2]]); [INFO] [stderr] ... | [INFO] [stderr] 45 | | static ref A2: Array = arr1(&[1.0, -0.2, 0.5]); [INFO] [stderr] 46 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 39 | / lazy_static! { [INFO] [stderr] 40 | | static ref A1: Array = arr2(&[[0.3, 0.4, -0.5, 0.8, 0.2], [INFO] [stderr] 41 | | [0.14, -0.4, -0.5, 0.28, 0.2], [INFO] [stderr] 42 | | [0.56, 0.4, 0.75, -0.1, -0.2]]); [INFO] [stderr] ... | [INFO] [stderr] 45 | | static ref A2: Array = arr1(&[1.0, -0.2, 0.5]); [INFO] [stderr] 46 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 39 | / lazy_static! { [INFO] [stderr] 40 | | static ref A1: Array = arr2(&[[0.3, 0.4, -0.5, 0.8, 0.2], [INFO] [stderr] 41 | | [0.14, -0.4, -0.5, 0.28, 0.2], [INFO] [stderr] 42 | | [0.56, 0.4, 0.75, -0.1, -0.2]]); [INFO] [stderr] ... | [INFO] [stderr] 45 | | static ref A2: Array = arr1(&[1.0, -0.2, 0.5]); [INFO] [stderr] 46 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 39 | / lazy_static! { [INFO] [stderr] 40 | | static ref A1: Array = arr2(&[[0.3, 0.4, -0.5, 0.8, 0.2], [INFO] [stderr] 41 | | [0.14, -0.4, -0.5, 0.28, 0.2], [INFO] [stderr] 42 | | [0.56, 0.4, 0.75, -0.1, -0.2]]); [INFO] [stderr] ... | [INFO] [stderr] 45 | | static ref A2: Array = arr1(&[1.0, -0.2, 0.5]); [INFO] [stderr] 46 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:56:5 [INFO] [stderr] | [INFO] [stderr] 56 | / lazy_static! { [INFO] [stderr] 57 | | static ref A1: Array = arr2(&[[0.1, 0.2], [INFO] [stderr] 58 | | [0.3, 0.4], [INFO] [stderr] 59 | | [0.5, 0.6]]); [INFO] [stderr] ... | [INFO] [stderr] 62 | | static ref A2: Array = arr1(&[0.6, -0.4, -0.2]); [INFO] [stderr] 63 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:56:5 [INFO] [stderr] | [INFO] [stderr] 56 | / lazy_static! { [INFO] [stderr] 57 | | static ref A1: Array = arr2(&[[0.1, 0.2], [INFO] [stderr] 58 | | [0.3, 0.4], [INFO] [stderr] 59 | | [0.5, 0.6]]); [INFO] [stderr] ... | [INFO] [stderr] 62 | | static ref A2: Array = arr1(&[0.6, -0.4, -0.2]); [INFO] [stderr] 63 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:56:5 [INFO] [stderr] | [INFO] [stderr] 56 | / lazy_static! { [INFO] [stderr] 57 | | static ref A1: Array = arr2(&[[0.1, 0.2], [INFO] [stderr] 58 | | [0.3, 0.4], [INFO] [stderr] 59 | | [0.5, 0.6]]); [INFO] [stderr] ... | [INFO] [stderr] 62 | | static ref A2: Array = arr1(&[0.6, -0.4, -0.2]); [INFO] [stderr] 63 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:56:5 [INFO] [stderr] | [INFO] [stderr] 56 | / lazy_static! { [INFO] [stderr] 57 | | static ref A1: Array = arr2(&[[0.1, 0.2], [INFO] [stderr] 58 | | [0.3, 0.4], [INFO] [stderr] 59 | | [0.5, 0.6]]); [INFO] [stderr] ... | [INFO] [stderr] 62 | | static ref A2: Array = arr1(&[0.6, -0.4, -0.2]); [INFO] [stderr] 63 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:56:5 [INFO] [stderr] | [INFO] [stderr] 56 | / lazy_static! { [INFO] [stderr] 57 | | static ref A1: Array = arr2(&[[0.1, 0.2], [INFO] [stderr] 58 | | [0.3, 0.4], [INFO] [stderr] 59 | | [0.5, 0.6]]); [INFO] [stderr] ... | [INFO] [stderr] 62 | | static ref A2: Array = arr1(&[0.6, -0.4, -0.2]); [INFO] [stderr] 63 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/bin/single_layer_learn.rs:56:5 [INFO] [stderr] | [INFO] [stderr] 56 | / lazy_static! { [INFO] [stderr] 57 | | static ref A1: Array = arr2(&[[0.1, 0.2], [INFO] [stderr] 58 | | [0.3, 0.4], [INFO] [stderr] 59 | | [0.5, 0.6]]); [INFO] [stderr] ... | [INFO] [stderr] 62 | | static ref A2: Array = arr1(&[0.6, -0.4, -0.2]); [INFO] [stderr] 63 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: static variable `b` should have an upper case name [INFO] [stderr] --> src/bin/single_layer_learn.rs:29:20 [INFO] [stderr] | [INFO] [stderr] 29 | static ref b: Array = arr1(&[-0.071, 0.4]); [INFO] [stderr] | ^ help: convert the identifier to upper case: `B` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 19 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/card_engine-5a56e06402dbe1df [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test learning::neural_net::tests::test_relu ... ok [INFO] [stdout] test learning::neural_net::tests::test_linear ... ok [INFO] [stdout] test learning::neural_net::tests::test_sym_sigmoid ... ok [INFO] [stdout] test learning::neural_net::tests::test_sigmoid ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] Running /opt/rustwide/target/debug/deps/basic_player-f301fa7222490e02 [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] Running /opt/rustwide/target/debug/deps/single_layer_learn-00689e6306e367cd [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] Doc-tests card-engine [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> /opt/rustwide/workdir/src/learning/neural_net.rs:54:25 [INFO] [stderr] | [INFO] [stderr] 54 | pub fn af(&self) -> (fn(f32) -> f32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> /opt/rustwide/workdir/src/learning/neural_net.rs:65:26 [INFO] [stderr] | [INFO] [stderr] 65 | pub fn agf(&self) -> (fn(f32, f32) -> f32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] running `"docker" "inspect" "0ccedd9d4951e026b147cad278f26a1ca30a3120241303d738d9ff3c9464b73b"` [INFO] running `"docker" "rm" "-f" "0ccedd9d4951e026b147cad278f26a1ca30a3120241303d738d9ff3c9464b73b"` [INFO] [stdout] 0ccedd9d4951e026b147cad278f26a1ca30a3120241303d738d9ff3c9464b73b