[INFO] cloning repository https://github.com/M1Fream/Idle_Game_Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/M1Fream/Idle_Game_Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FM1Fream%2FIdle_Game_Rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FM1Fream%2FIdle_Game_Rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7ca883e62bd898c2a1e4840bce54594ba6e1f3a5 [INFO] testing M1Fream/Idle_Game_Rust against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FM1Fream%2FIdle_Game_Rust" "/workspace/builds/worker-16/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-16/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/M1Fream/Idle_Game_Rust on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/M1Fream/Idle_Game_Rust [INFO] finished tweaking git repo https://github.com/M1Fream/Idle_Game_Rust [INFO] tweaked toml for git repo https://github.com/M1Fream/Idle_Game_Rust written to /workspace/builds/worker-16/source/Cargo.toml [INFO] crate git repo https://github.com/M1Fream/Idle_Game_Rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a8d06054215ccc3cd73c0026a02b1de2b207cd2821ca7a4def75c02cf02fe339 [INFO] running `Command { std: "docker" "start" "-a" "a8d06054215ccc3cd73c0026a02b1de2b207cd2821ca7a4def75c02cf02fe339", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a8d06054215ccc3cd73c0026a02b1de2b207cd2821ca7a4def75c02cf02fe339", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a8d06054215ccc3cd73c0026a02b1de2b207cd2821ca7a4def75c02cf02fe339", kill_on_drop: false }` [INFO] [stdout] a8d06054215ccc3cd73c0026a02b1de2b207cd2821ca7a4def75c02cf02fe339 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2f4a1ae90e9f9a63f5df5ab3af4ed4b90f66a4c5c5792423e8a67bfeafe37361 [INFO] running `Command { std: "docker" "start" "-a" "2f4a1ae90e9f9a63f5df5ab3af4ed4b90f66a4c5c5792423e8a67bfeafe37361", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.123 [INFO] [stderr] Compiling proc-macro2 v1.0.37 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling ttf-parser v0.6.2 [INFO] [stderr] Compiling nix v0.18.0 [INFO] [stderr] Compiling slab v0.4.6 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling gimli v0.26.1 [INFO] [stderr] Compiling emath v0.12.0 [INFO] [stderr] Compiling atomic_refcell v0.1.8 [INFO] [stderr] Compiling rustc-demangle v0.1.21 [INFO] [stderr] Compiling takeable-option v0.5.0 [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling webbrowser v0.5.5 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling libloading v0.6.7 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling raw-window-handle v0.4.3 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling dlib v0.5.0 [INFO] [stderr] Compiling quick-xml v0.22.0 [INFO] [stderr] Compiling object v0.27.1 [INFO] [stderr] Compiling nom v7.1.1 [INFO] [stderr] Compiling dlib v0.4.2 [INFO] [stderr] Compiling wayland-sys v0.28.6 [INFO] [stderr] Compiling wayland-sys v0.29.4 [INFO] [stderr] Compiling x11-dl v2.19.1 [INFO] [stderr] Compiling smithay-client-toolkit v0.15.4 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling owned_ttf_parser v0.6.0 [INFO] [stderr] Compiling backtrace v0.3.64 [INFO] [stderr] Compiling rusttype v0.9.2 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling wayland-scanner v0.28.6 [INFO] [stderr] Compiling wayland-scanner v0.29.4 [INFO] [stderr] Compiling glutin_glx_sys v0.1.7 [INFO] [stderr] Compiling glutin_egl_sys v0.1.5 [INFO] [stderr] Compiling glium v0.29.1 [INFO] [stderr] Compiling ordered-float v2.10.0 [INFO] [stderr] Compiling num-complex v0.4.0 [INFO] [stderr] Compiling xcursor v0.3.4 [INFO] [stderr] Compiling addr2line v0.17.0 [INFO] [stderr] Compiling nix v0.20.0 [INFO] [stderr] Compiling nix v0.22.3 [INFO] [stderr] Compiling dirs-sys v0.3.7 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.37 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling memmap2 v0.1.0 [INFO] [stderr] Compiling shared_library v0.1.9 [INFO] [stderr] Compiling raw-window-handle v0.3.4 [INFO] [stderr] Compiling memmap2 v0.3.1 [INFO] [stderr] Compiling osmesa-sys v0.1.2 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling wayland-client v0.28.6 [INFO] [stderr] Compiling wayland-protocols v0.28.6 [INFO] [stderr] Compiling xcb v0.10.1 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling dirs v4.0.0 [INFO] [stderr] Compiling wayland-client v0.29.4 [INFO] [stderr] Compiling wayland-protocols v0.29.4 [INFO] [stderr] Compiling xdg v2.4.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling epaint v0.12.0 [INFO] [stderr] Compiling mio-extras v2.0.6 [INFO] [stderr] Compiling andrew v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling egui v0.12.0 [INFO] [stderr] Compiling num v0.4.0 [INFO] [stderr] Compiling calloop v0.6.5 [INFO] [stderr] Compiling epi v0.12.0 [INFO] [stderr] Compiling wayland-commons v0.28.6 [INFO] [stderr] Compiling wayland-commons v0.29.4 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling x11-clipboard v0.5.3 [INFO] [stderr] Compiling wayland-cursor v0.28.6 [INFO] [stderr] Compiling wayland-egl v0.28.6 [INFO] [stderr] Compiling wayland-cursor v0.29.4 [INFO] [stderr] Compiling smithay-client-toolkit v0.12.3 [INFO] [stderr] Compiling winit v0.24.0 [INFO] [stderr] Compiling smithay-clipboard v0.6.5 [INFO] [stderr] Compiling copypasta v0.7.1 [INFO] [stderr] Compiling glutin v0.26.0 [INFO] [stderr] Compiling egui_glium v0.12.0 [INFO] [stderr] Compiling eframe v0.12.0 [INFO] [stderr] Compiling Idle_Game_Rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait `production_obj` should have an upper camel case name [INFO] [stdout] --> src/production.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait production_obj { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ProductionObj` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `basic_production` should have an upper camel case name [INFO] [stdout] --> src/production.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | struct basic_production<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BasicProduction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `buyable` should have an upper camel case name [INFO] [stdout] --> src/game_types.rs:65:7 [INFO] [stdout] | [INFO] [stdout] 65 | trait buyable { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Buyable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Water_well` should have an upper camel case name [INFO] [stdout] --> src/game_types.rs:153:2 [INFO] [stdout] | [INFO] [stdout] 153 | Water_well = 2, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `WaterWell` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Furnace_simple` should have an upper camel case name [INFO] [stdout] --> src/game_types.rs:154:2 [INFO] [stdout] | [INFO] [stdout] 154 | Furnace_simple = 3, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `FurnaceSimple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Steam_engine` should have an upper camel case name [INFO] [stdout] --> src/game_types.rs:155:2 [INFO] [stdout] | [INFO] [stdout] 155 | Steam_engine = 4, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SteamEngine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Electric_motor` should have an upper camel case name [INFO] [stdout] --> src/game_types.rs:156:2 [INFO] [stdout] | [INFO] [stdout] 156 | Electric_motor = 5, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ElectricMotor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Mana_well` should have an upper camel case name [INFO] [stdout] --> src/game_types.rs:161:2 [INFO] [stdout] | [INFO] [stdout] 161 | Mana_well = 10, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `ManaWell` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Occult_library` should have an upper camel case name [INFO] [stdout] --> src/game_types.rs:162:2 [INFO] [stdout] | [INFO] [stdout] 162 | Occult_library = 11, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OccultLibrary` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/game_types.rs:179:8 [INFO] [stdout] | [INFO] [stdout] 179 | while(i src/game_types.rs:203:8 [INFO] [stdout] | [INFO] [stdout] 203 | while(i src/game_types.rs:217:8 [INFO] [stdout] | [INFO] [stdout] 217 | while(i src/game_types.rs:218:6 [INFO] [stdout] | [INFO] [stdout] 218 | if(cost._res[i] > self._res[i]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 218 - if(cost._res[i] > self._res[i]) { [INFO] [stdout] 218 + if cost._res[i] > self._res[i] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `always_unlocked` should have an upper camel case name [INFO] [stdout] --> src/game_types.rs:267:8 [INFO] [stdout] | [INFO] [stdout] 267 | struct always_unlocked { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `AlwaysUnlocked` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `and_unlock` should have an upper camel case name [INFO] [stdout] --> src/game_types.rs:276:8 [INFO] [stdout] | [INFO] [stdout] 276 | struct and_unlock { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `AndUnlock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `upgrade_unlock` should have an upper camel case name [INFO] [stdout] --> src/game_types.rs:291:8 [INFO] [stdout] | [INFO] [stdout] 291 | struct upgrade_unlock { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `UpgradeUnlock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `tech_unlock` should have an upper camel case name [INFO] [stdout] --> src/game_types.rs:306:8 [INFO] [stdout] | [INFO] [stdout] 306 | struct tech_unlock { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `TechUnlock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `resource_unlock` should have an upper camel case name [INFO] [stdout] --> src/game_types.rs:321:8 [INFO] [stdout] | [INFO] [stdout] 321 | struct resource_unlock { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ResourceUnlock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `game_types::ResourceType` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use game_types::ResourceType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/production.rs:82:19 [INFO] [stdout] | [INFO] [stdout] 82 | bonuses: Vec<&'a Bonus>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 82 - bonuses: Vec<&'a Bonus>, [INFO] [stdout] 82 + bonuses: Vec<&'a dyn Bonus>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/production.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | get_tiles: Fn(world::WorldMap, world::Tile) -> Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 83 - get_tiles: Fn(world::WorldMap, world::Tile) -> Vec, [INFO] [stdout] 83 + get_tiles: dyn Fn(world::WorldMap, world::Tile) -> Vec, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/production.rs:109:23 [INFO] [stdout] | [INFO] [stdout] 109 | pub bonuses: Vec<&'a Bonus>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 109 - pub bonuses: Vec<&'a Bonus>, [INFO] [stdout] 109 + pub bonuses: Vec<&'a dyn Bonus>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/game_types.rs:95:14 [INFO] [stdout] | [INFO] [stdout] 95 | unlock: Box, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 95 - unlock: Box, [INFO] [stdout] 95 + unlock: Box, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/game_types.rs:111:14 [INFO] [stdout] | [INFO] [stdout] 111 | unlock: Box, //Maybe there shoudn't be a difference between techs and upgrades in the code or maybe it should just be a boo... [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 111 - unlock: Box, //Maybe there shoudn't be a difference between techs and upgrades in the code or maybe it should just be a bool flag [INFO] [stdout] 111 + unlock: Box, //Maybe there shoudn't be a difference between techs and upgrades in the code or maybe it should just be a bool flag [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/game_types.rs:277:20 [INFO] [stdout] | [INFO] [stdout] 277 | pub args: Vec>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 277 - pub args: Vec>, [INFO] [stdout] 277 + pub args: Vec>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/production.rs:44:36 [INFO] [stdout] | [INFO] [stdout] 44 | fn get_bonuses(&self) -> &Vec<&'a Bonus>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 44 - fn get_bonuses(&self) -> &Vec<&'a Bonus>; [INFO] [stdout] 44 + fn get_bonuses(&self) -> &Vec<&'a dyn Bonus>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/production.rs:99:36 [INFO] [stdout] | [INFO] [stdout] 99 | fn get_bonuses(&self) -> &Vec<&'a Bonus> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 99 - fn get_bonuses(&self) -> &Vec<&'a Bonus> { [INFO] [stdout] 99 + fn get_bonuses(&self) -> &Vec<&'a dyn Bonus> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/production.rs:114:36 [INFO] [stdout] | [INFO] [stdout] 114 | fn get_bonuses(&self) -> &Vec<&'a Bonus> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 114 - fn get_bonuses(&self) -> &Vec<&'a Bonus> { [INFO] [stdout] 114 + fn get_bonuses(&self) -> &Vec<&'a dyn Bonus> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/production.rs:120:58 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn new(res: game_types::Resources, bonuses: Vec<&'a Bonus>, tier : usize) -> basic_production<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 120 - pub fn new(res: game_types::Resources, bonuses: Vec<&'a Bonus>, tier : usize) -> basic_production<'a> { [INFO] [stdout] 120 + pub fn new(res: game_types::Resources, bonuses: Vec<&'a dyn Bonus>, tier : usize) -> basic_production<'a> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/game_types.rs:21:28 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn buy(&mut self, b: &buyable) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 21 - pub fn buy(&mut self, b: &buyable) -> bool { [INFO] [stdout] 21 + pub fn buy(&mut self, b: &dyn buyable) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> src/production.rs:59:23 [INFO] [stdout] | [INFO] [stdout] 59 | fn calc_ratio(&self, g: &game_types::Game, tile: world::Tile) -> f64 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tile` [INFO] [stdout] --> src/production.rs:59:45 [INFO] [stdout] | [INFO] [stdout] 59 | fn calc_ratio(&self, g: &game_types::Game, tile: world::Tile) -> f64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tile` [INFO] [stdout] --> src/production.rs:70:45 [INFO] [stdout] | [INFO] [stdout] 70 | fn calc_ratio(&self, g: &game_types::Game, tile: world::Tile) -> f64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/production.rs:89:7 [INFO] [stdout] | [INFO] [stdout] 89 | let t = self.tile; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/production.rs:90:29 [INFO] [stdout] | [INFO] [stdout] 90 | if matches!(tile.my_type, t) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> src/production.rs:133:22 [INFO] [stdout] | [INFO] [stdout] 133 | fn calc_prod(&self, g: &game_types::Game, i: usize, j:usize) -> game_types::Resources { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/production.rs:133:44 [INFO] [stdout] | [INFO] [stdout] 133 | fn calc_prod(&self, g: &game_types::Game, i: usize, j:usize) -> game_types::Resources { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/production.rs:133:54 [INFO] [stdout] | [INFO] [stdout] 133 | fn calc_prod(&self, g: &game_types::Game, i: usize, j:usize) -> game_types::Resources { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> src/game_types.rs:271:26 [INFO] [stdout] | [INFO] [stdout] 271 | fn should_unlock(&self, g: &Game) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/world.rs:12:27 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn get_edge_neighbors(map: WorldMap, tile: Tile) -> Vec { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tile` [INFO] [stdout] --> src/world.rs:12:42 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn get_edge_neighbors(map: WorldMap, tile: Tile) -> Vec { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/production.rs:134:7 [INFO] [stdout] | [INFO] [stdout] 134 | let mut mult : f64 = 1.0; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private trait `buyable` in public interface (error E0445) [INFO] [stdout] --> src/game_types.rs:21:2 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn buy(&mut self, b: &buyable) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(private_in_public)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/production.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn test() -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tier` [INFO] [stdout] --> src/production.rs:55:2 [INFO] [stdout] | [INFO] [stdout] 55 | pub tier: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `get_tiles` [INFO] [stdout] --> src/production.rs:83:2 [INFO] [stdout] | [INFO] [stdout] 83 | get_tiles: Fn(world::WorldMap, world::Tile) -> Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tier` [INFO] [stdout] --> src/production.rs:110:2 [INFO] [stdout] | [INFO] [stdout] 110 | pub tier: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/production.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn new(res: game_types::Resources, bonuses: Vec<&'a Bonus>, tier : usize) -> basic_production<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `init_prod_objs` [INFO] [stdout] --> src/production.rs:155:4 [INFO] [stdout] | [INFO] [stdout] 155 | fn init_prod_objs() -> ArrayVec, { game_types::Building::NUM_BUILDINGS }> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/game_types.rs:89:2 [INFO] [stdout] | [INFO] [stdout] 89 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tier` [INFO] [stdout] --> src/game_types.rs:92:2 [INFO] [stdout] | [INFO] [stdout] 92 | tier: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `desc` [INFO] [stdout] --> src/game_types.rs:93:2 [INFO] [stdout] | [INFO] [stdout] 93 | desc: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/game_types.rs:105:2 [INFO] [stdout] | [INFO] [stdout] 105 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tier` [INFO] [stdout] --> src/game_types.rs:108:2 [INFO] [stdout] | [INFO] [stdout] 108 | tier: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `desc` [INFO] [stdout] --> src/game_types.rs:109:2 [INFO] [stdout] | [INFO] [stdout] 109 | desc: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `NUM_TECHS` [INFO] [stdout] --> src/game_types.rs:121:2 [INFO] [stdout] | [INFO] [stdout] 121 | const NUM_TECHS : usize = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `level` [INFO] [stdout] --> src/game_types.rs:133:2 [INFO] [stdout] | [INFO] [stdout] 133 | level: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Building` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/game_types.rs:130:16 [INFO] [stdout] | [INFO] [stdout] 130 | #[derive(Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `unlocked` [INFO] [stdout] --> src/world.rs:7:2 [INFO] [stdout] | [INFO] [stdout] 7 | unlocked: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Tile` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/world.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_edge_neighbors` [INFO] [stdout] --> src/world.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn get_edge_neighbors(map: WorldMap, tile: Tile) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `Idle_Game_Rust` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `idle_game_rust` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 60 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 53.68s [INFO] running `Command { std: "docker" "inspect" "2f4a1ae90e9f9a63f5df5ab3af4ed4b90f66a4c5c5792423e8a67bfeafe37361", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f4a1ae90e9f9a63f5df5ab3af4ed4b90f66a4c5c5792423e8a67bfeafe37361", kill_on_drop: false }` [INFO] [stdout] 2f4a1ae90e9f9a63f5df5ab3af4ed4b90f66a4c5c5792423e8a67bfeafe37361 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 73cd398566ea90461885abcd731263c674179e7b1ea062c9a19286cbafc85be7 [INFO] running `Command { std: "docker" "start" "-a" "73cd398566ea90461885abcd731263c674179e7b1ea062c9a19286cbafc85be7", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling Idle_Game_Rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait `production_obj` should have an upper camel case name [INFO] [stdout] --> src/production.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait production_obj { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ProductionObj` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `basic_production` should have an upper camel case name [INFO] [stdout] --> src/production.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | struct basic_production<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BasicProduction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `buyable` should have an upper camel case name [INFO] [stdout] --> src/game_types.rs:65:7 [INFO] [stdout] | [INFO] [stdout] 65 | trait buyable { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Buyable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Water_well` should have an upper camel case name [INFO] [stdout] --> src/game_types.rs:153:2 [INFO] [stdout] | [INFO] [stdout] 153 | Water_well = 2, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `WaterWell` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Furnace_simple` should have an upper camel case name [INFO] [stdout] --> src/game_types.rs:154:2 [INFO] [stdout] | [INFO] [stdout] 154 | Furnace_simple = 3, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `FurnaceSimple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Steam_engine` should have an upper camel case name [INFO] [stdout] --> src/game_types.rs:155:2 [INFO] [stdout] | [INFO] [stdout] 155 | Steam_engine = 4, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SteamEngine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Electric_motor` should have an upper camel case name [INFO] [stdout] --> src/game_types.rs:156:2 [INFO] [stdout] | [INFO] [stdout] 156 | Electric_motor = 5, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ElectricMotor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Mana_well` should have an upper camel case name [INFO] [stdout] --> src/game_types.rs:161:2 [INFO] [stdout] | [INFO] [stdout] 161 | Mana_well = 10, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `ManaWell` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Occult_library` should have an upper camel case name [INFO] [stdout] --> src/game_types.rs:162:2 [INFO] [stdout] | [INFO] [stdout] 162 | Occult_library = 11, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OccultLibrary` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/game_types.rs:179:8 [INFO] [stdout] | [INFO] [stdout] 179 | while(i src/game_types.rs:203:8 [INFO] [stdout] | [INFO] [stdout] 203 | while(i src/game_types.rs:217:8 [INFO] [stdout] | [INFO] [stdout] 217 | while(i src/game_types.rs:218:6 [INFO] [stdout] | [INFO] [stdout] 218 | if(cost._res[i] > self._res[i]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 218 - if(cost._res[i] > self._res[i]) { [INFO] [stdout] 218 + if cost._res[i] > self._res[i] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `always_unlocked` should have an upper camel case name [INFO] [stdout] --> src/game_types.rs:267:8 [INFO] [stdout] | [INFO] [stdout] 267 | struct always_unlocked { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `AlwaysUnlocked` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `and_unlock` should have an upper camel case name [INFO] [stdout] --> src/game_types.rs:276:8 [INFO] [stdout] | [INFO] [stdout] 276 | struct and_unlock { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `AndUnlock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `upgrade_unlock` should have an upper camel case name [INFO] [stdout] --> src/game_types.rs:291:8 [INFO] [stdout] | [INFO] [stdout] 291 | struct upgrade_unlock { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `UpgradeUnlock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `tech_unlock` should have an upper camel case name [INFO] [stdout] --> src/game_types.rs:306:8 [INFO] [stdout] | [INFO] [stdout] 306 | struct tech_unlock { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `TechUnlock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `resource_unlock` should have an upper camel case name [INFO] [stdout] --> src/game_types.rs:321:8 [INFO] [stdout] | [INFO] [stdout] 321 | struct resource_unlock { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ResourceUnlock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `game_types::ResourceType` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use game_types::ResourceType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/production.rs:82:19 [INFO] [stdout] | [INFO] [stdout] 82 | bonuses: Vec<&'a Bonus>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 82 - bonuses: Vec<&'a Bonus>, [INFO] [stdout] 82 + bonuses: Vec<&'a dyn Bonus>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/production.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | get_tiles: Fn(world::WorldMap, world::Tile) -> Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 83 - get_tiles: Fn(world::WorldMap, world::Tile) -> Vec, [INFO] [stdout] 83 + get_tiles: dyn Fn(world::WorldMap, world::Tile) -> Vec, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/production.rs:109:23 [INFO] [stdout] | [INFO] [stdout] 109 | pub bonuses: Vec<&'a Bonus>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 109 - pub bonuses: Vec<&'a Bonus>, [INFO] [stdout] 109 + pub bonuses: Vec<&'a dyn Bonus>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/game_types.rs:95:14 [INFO] [stdout] | [INFO] [stdout] 95 | unlock: Box, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 95 - unlock: Box, [INFO] [stdout] 95 + unlock: Box, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/game_types.rs:111:14 [INFO] [stdout] | [INFO] [stdout] 111 | unlock: Box, //Maybe there shoudn't be a difference between techs and upgrades in the code or maybe it should just be a boo... [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 111 - unlock: Box, //Maybe there shoudn't be a difference between techs and upgrades in the code or maybe it should just be a bool flag [INFO] [stdout] 111 + unlock: Box, //Maybe there shoudn't be a difference between techs and upgrades in the code or maybe it should just be a bool flag [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/game_types.rs:277:20 [INFO] [stdout] | [INFO] [stdout] 277 | pub args: Vec>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 277 - pub args: Vec>, [INFO] [stdout] 277 + pub args: Vec>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/production.rs:44:36 [INFO] [stdout] | [INFO] [stdout] 44 | fn get_bonuses(&self) -> &Vec<&'a Bonus>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 44 - fn get_bonuses(&self) -> &Vec<&'a Bonus>; [INFO] [stdout] 44 + fn get_bonuses(&self) -> &Vec<&'a dyn Bonus>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/production.rs:99:36 [INFO] [stdout] | [INFO] [stdout] 99 | fn get_bonuses(&self) -> &Vec<&'a Bonus> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 99 - fn get_bonuses(&self) -> &Vec<&'a Bonus> { [INFO] [stdout] 99 + fn get_bonuses(&self) -> &Vec<&'a dyn Bonus> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/production.rs:114:36 [INFO] [stdout] | [INFO] [stdout] 114 | fn get_bonuses(&self) -> &Vec<&'a Bonus> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 114 - fn get_bonuses(&self) -> &Vec<&'a Bonus> { [INFO] [stdout] 114 + fn get_bonuses(&self) -> &Vec<&'a dyn Bonus> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/production.rs:120:58 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn new(res: game_types::Resources, bonuses: Vec<&'a Bonus>, tier : usize) -> basic_production<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 120 - pub fn new(res: game_types::Resources, bonuses: Vec<&'a Bonus>, tier : usize) -> basic_production<'a> { [INFO] [stdout] 120 + pub fn new(res: game_types::Resources, bonuses: Vec<&'a dyn Bonus>, tier : usize) -> basic_production<'a> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/game_types.rs:21:28 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn buy(&mut self, b: &buyable) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 21 - pub fn buy(&mut self, b: &buyable) -> bool { [INFO] [stdout] 21 + pub fn buy(&mut self, b: &dyn buyable) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> src/production.rs:59:23 [INFO] [stdout] | [INFO] [stdout] 59 | fn calc_ratio(&self, g: &game_types::Game, tile: world::Tile) -> f64 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tile` [INFO] [stdout] --> src/production.rs:59:45 [INFO] [stdout] | [INFO] [stdout] 59 | fn calc_ratio(&self, g: &game_types::Game, tile: world::Tile) -> f64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tile` [INFO] [stdout] --> src/production.rs:70:45 [INFO] [stdout] | [INFO] [stdout] 70 | fn calc_ratio(&self, g: &game_types::Game, tile: world::Tile) -> f64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/production.rs:89:7 [INFO] [stdout] | [INFO] [stdout] 89 | let t = self.tile; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/production.rs:90:29 [INFO] [stdout] | [INFO] [stdout] 90 | if matches!(tile.my_type, t) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> src/production.rs:133:22 [INFO] [stdout] | [INFO] [stdout] 133 | fn calc_prod(&self, g: &game_types::Game, i: usize, j:usize) -> game_types::Resources { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/production.rs:133:44 [INFO] [stdout] | [INFO] [stdout] 133 | fn calc_prod(&self, g: &game_types::Game, i: usize, j:usize) -> game_types::Resources { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/production.rs:133:54 [INFO] [stdout] | [INFO] [stdout] 133 | fn calc_prod(&self, g: &game_types::Game, i: usize, j:usize) -> game_types::Resources { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> src/game_types.rs:271:26 [INFO] [stdout] | [INFO] [stdout] 271 | fn should_unlock(&self, g: &Game) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/world.rs:12:27 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn get_edge_neighbors(map: WorldMap, tile: Tile) -> Vec { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tile` [INFO] [stdout] --> src/world.rs:12:42 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn get_edge_neighbors(map: WorldMap, tile: Tile) -> Vec { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/production.rs:134:7 [INFO] [stdout] | [INFO] [stdout] 134 | let mut mult : f64 = 1.0; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private trait `buyable` in public interface (error E0445) [INFO] [stdout] --> src/game_types.rs:21:2 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn buy(&mut self, b: &buyable) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(private_in_public)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/production.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn test() -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tier` [INFO] [stdout] --> src/production.rs:55:2 [INFO] [stdout] | [INFO] [stdout] 55 | pub tier: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `get_tiles` [INFO] [stdout] --> src/production.rs:83:2 [INFO] [stdout] | [INFO] [stdout] 83 | get_tiles: Fn(world::WorldMap, world::Tile) -> Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tier` [INFO] [stdout] --> src/production.rs:110:2 [INFO] [stdout] | [INFO] [stdout] 110 | pub tier: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/production.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn new(res: game_types::Resources, bonuses: Vec<&'a Bonus>, tier : usize) -> basic_production<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `init_prod_objs` [INFO] [stdout] --> src/production.rs:155:4 [INFO] [stdout] | [INFO] [stdout] 155 | fn init_prod_objs() -> ArrayVec, { game_types::Building::NUM_BUILDINGS }> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/game_types.rs:89:2 [INFO] [stdout] | [INFO] [stdout] 89 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tier` [INFO] [stdout] --> src/game_types.rs:92:2 [INFO] [stdout] | [INFO] [stdout] 92 | tier: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `desc` [INFO] [stdout] --> src/game_types.rs:93:2 [INFO] [stdout] | [INFO] [stdout] 93 | desc: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/game_types.rs:105:2 [INFO] [stdout] | [INFO] [stdout] 105 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tier` [INFO] [stdout] --> src/game_types.rs:108:2 [INFO] [stdout] | [INFO] [stdout] 108 | tier: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `desc` [INFO] [stdout] --> src/game_types.rs:109:2 [INFO] [stdout] | [INFO] [stdout] 109 | desc: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `NUM_TECHS` [INFO] [stdout] --> src/game_types.rs:121:2 [INFO] [stdout] | [INFO] [stdout] 121 | const NUM_TECHS : usize = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `level` [INFO] [stdout] --> src/game_types.rs:133:2 [INFO] [stdout] | [INFO] [stdout] 133 | level: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Building` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/game_types.rs:130:16 [INFO] [stdout] | [INFO] [stdout] 130 | #[derive(Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `unlocked` [INFO] [stdout] --> src/world.rs:7:2 [INFO] [stdout] | [INFO] [stdout] 7 | unlocked: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Tile` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/world.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_edge_neighbors` [INFO] [stdout] --> src/world.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn get_edge_neighbors(map: WorldMap, tile: Tile) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `Idle_Game_Rust` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `idle_game_rust` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 60 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.32s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/Idle_Game_Rust-d5f6068bcb54f037) [INFO] running `Command { std: "docker" "inspect" "73cd398566ea90461885abcd731263c674179e7b1ea062c9a19286cbafc85be7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "73cd398566ea90461885abcd731263c674179e7b1ea062c9a19286cbafc85be7", kill_on_drop: false }` [INFO] [stdout] 73cd398566ea90461885abcd731263c674179e7b1ea062c9a19286cbafc85be7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] c36490992ed3ed97dc5c1ac4d2c007a0e34151002cc6b762c06c8f5acea207f8 [INFO] running `Command { std: "docker" "start" "-a" "c36490992ed3ed97dc5c1ac4d2c007a0e34151002cc6b762c06c8f5acea207f8", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: trait `production_obj` should have an upper camel case name [INFO] [stderr] --> src/production.rs:10:11 [INFO] [stderr] | [INFO] [stderr] 10 | pub trait production_obj { [INFO] [stderr] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ProductionObj` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `basic_production` should have an upper camel case name [INFO] [stderr] --> src/production.rs:104:8 [INFO] [stderr] | [INFO] [stderr] 104 | struct basic_production<'a> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BasicProduction` [INFO] [stderr] [INFO] [stderr] warning: trait `buyable` should have an upper camel case name [INFO] [stderr] --> src/game_types.rs:65:7 [INFO] [stderr] | [INFO] [stderr] 65 | trait buyable { [INFO] [stderr] | ^^^^^^^ help: convert the identifier to upper camel case: `Buyable` [INFO] [stderr] [INFO] [stderr] warning: variant `Water_well` should have an upper camel case name [INFO] [stderr] --> src/game_types.rs:153:2 [INFO] [stderr] | [INFO] [stderr] 153 | Water_well = 2, [INFO] [stderr] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `WaterWell` [INFO] [stderr] [INFO] [stderr] warning: variant `Furnace_simple` should have an upper camel case name [INFO] [stderr] --> src/game_types.rs:154:2 [INFO] [stderr] | [INFO] [stderr] 154 | Furnace_simple = 3, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `FurnaceSimple` [INFO] [stderr] [INFO] [stderr] warning: variant `Steam_engine` should have an upper camel case name [INFO] [stderr] --> src/game_types.rs:155:2 [INFO] [stderr] | [INFO] [stderr] 155 | Steam_engine = 4, [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SteamEngine` [INFO] [stderr] [INFO] [stderr] warning: variant `Electric_motor` should have an upper camel case name [INFO] [stderr] --> src/game_types.rs:156:2 [INFO] [stderr] | [INFO] [stderr] 156 | Electric_motor = 5, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ElectricMotor` [INFO] [stderr] [INFO] [stderr] warning: variant `Mana_well` should have an upper camel case name [INFO] [stderr] --> src/game_types.rs:161:2 [INFO] [stderr] | [INFO] [stderr] 161 | Mana_well = 10, [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to upper camel case: `ManaWell` [INFO] [stderr] [INFO] [stderr] warning: variant `Occult_library` should have an upper camel case name [INFO] [stderr] --> src/game_types.rs:162:2 [INFO] [stderr] | [INFO] [stderr] 162 | Occult_library = 11, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OccultLibrary` [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `while` condition [INFO] [stderr] --> src/game_types.rs:179:8 [INFO] [stderr] | [INFO] [stderr] 179 | while(i src/game_types.rs:203:8 [INFO] [stderr] | [INFO] [stderr] 203 | while(i src/game_types.rs:217:8 [INFO] [stderr] | [INFO] [stderr] 217 | while(i src/game_types.rs:218:6 [INFO] [stderr] | [INFO] [stderr] 218 | if(cost._res[i] > self._res[i]) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 218 - if(cost._res[i] > self._res[i]) { [INFO] [stderr] 218 + if cost._res[i] > self._res[i] { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: type `always_unlocked` should have an upper camel case name [INFO] [stderr] --> src/game_types.rs:267:8 [INFO] [stderr] | [INFO] [stderr] 267 | struct always_unlocked { [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `AlwaysUnlocked` [INFO] [stderr] [INFO] [stderr] warning: type `and_unlock` should have an upper camel case name [INFO] [stderr] --> src/game_types.rs:276:8 [INFO] [stderr] | [INFO] [stderr] 276 | struct and_unlock { [INFO] [stderr] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `AndUnlock` [INFO] [stderr] [INFO] [stderr] warning: type `upgrade_unlock` should have an upper camel case name [INFO] [stderr] --> src/game_types.rs:291:8 [INFO] [stderr] | [INFO] [stderr] 291 | struct upgrade_unlock { [INFO] [stderr] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `UpgradeUnlock` [INFO] [stderr] [INFO] [stderr] warning: type `tech_unlock` should have an upper camel case name [INFO] [stderr] --> src/game_types.rs:306:8 [INFO] [stderr] | [INFO] [stderr] 306 | struct tech_unlock { [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `TechUnlock` [INFO] [stderr] [INFO] [stderr] warning: type `resource_unlock` should have an upper camel case name [INFO] [stderr] --> src/game_types.rs:321:8 [INFO] [stderr] | [INFO] [stderr] 321 | struct resource_unlock { [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ResourceUnlock` [INFO] [stderr] [INFO] [stderr] warning: unused import: `game_types::ResourceType` [INFO] [stderr] --> src/main.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use game_types::ResourceType; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/production.rs:82:19 [INFO] [stderr] | [INFO] [stderr] 82 | bonuses: Vec<&'a Bonus>, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 82 - bonuses: Vec<&'a Bonus>, [INFO] [stderr] 82 + bonuses: Vec<&'a dyn Bonus>, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/production.rs:83:13 [INFO] [stderr] | [INFO] [stderr] 83 | get_tiles: Fn(world::WorldMap, world::Tile) -> Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 83 - get_tiles: Fn(world::WorldMap, world::Tile) -> Vec, [INFO] [stderr] 83 + get_tiles: dyn Fn(world::WorldMap, world::Tile) -> Vec, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/production.rs:109:23 [INFO] [stderr] | [INFO] [stderr] 109 | pub bonuses: Vec<&'a Bonus>, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 109 - pub bonuses: Vec<&'a Bonus>, [INFO] [stderr] 109 + pub bonuses: Vec<&'a dyn Bonus>, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/game_types.rs:95:14 [INFO] [stderr] | [INFO] [stderr] 95 | unlock: Box, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 95 - unlock: Box, [INFO] [stderr] 95 + unlock: Box, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/game_types.rs:111:14 [INFO] [stderr] | [INFO] [stderr] 111 | unlock: Box, //Maybe there shoudn't be a difference between techs and upgrades in the code or maybe it should just be a boo... [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 111 - unlock: Box, //Maybe there shoudn't be a difference between techs and upgrades in the code or maybe it should just be a bool flag [INFO] [stderr] 111 + unlock: Box, //Maybe there shoudn't be a difference between techs and upgrades in the code or maybe it should just be a bool flag [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/game_types.rs:277:20 [INFO] [stderr] | [INFO] [stderr] 277 | pub args: Vec>, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 277 - pub args: Vec>, [INFO] [stderr] 277 + pub args: Vec>, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/production.rs:44:36 [INFO] [stderr] | [INFO] [stderr] 44 | fn get_bonuses(&self) -> &Vec<&'a Bonus>; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 44 - fn get_bonuses(&self) -> &Vec<&'a Bonus>; [INFO] [stderr] 44 + fn get_bonuses(&self) -> &Vec<&'a dyn Bonus>; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/production.rs:99:36 [INFO] [stderr] | [INFO] [stderr] 99 | fn get_bonuses(&self) -> &Vec<&'a Bonus> { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 99 - fn get_bonuses(&self) -> &Vec<&'a Bonus> { [INFO] [stderr] 99 + fn get_bonuses(&self) -> &Vec<&'a dyn Bonus> { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/production.rs:114:36 [INFO] [stderr] | [INFO] [stderr] 114 | fn get_bonuses(&self) -> &Vec<&'a Bonus> { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 114 - fn get_bonuses(&self) -> &Vec<&'a Bonus> { [INFO] [stderr] 114 + fn get_bonuses(&self) -> &Vec<&'a dyn Bonus> { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/production.rs:120:58 [INFO] [stderr] | [INFO] [stderr] 120 | pub fn new(res: game_types::Resources, bonuses: Vec<&'a Bonus>, tier : usize) -> basic_production<'a> { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 120 - pub fn new(res: game_types::Resources, bonuses: Vec<&'a Bonus>, tier : usize) -> basic_production<'a> { [INFO] [stderr] 120 + pub fn new(res: game_types::Resources, bonuses: Vec<&'a dyn Bonus>, tier : usize) -> basic_production<'a> { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/game_types.rs:21:28 [INFO] [stderr] | [INFO] [stderr] 21 | pub fn buy(&mut self, b: &buyable) -> bool { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 21 - pub fn buy(&mut self, b: &buyable) -> bool { [INFO] [stderr] 21 + pub fn buy(&mut self, b: &dyn buyable) -> bool { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `g` [INFO] [stderr] --> src/production.rs:59:23 [INFO] [stderr] | [INFO] [stderr] 59 | fn calc_ratio(&self, g: &game_types::Game, tile: world::Tile) -> f64 { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `tile` [INFO] [stderr] --> src/production.rs:59:45 [INFO] [stderr] | [INFO] [stderr] 59 | fn calc_ratio(&self, g: &game_types::Game, tile: world::Tile) -> f64 { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tile` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `tile` [INFO] [stderr] --> src/production.rs:70:45 [INFO] [stderr] | [INFO] [stderr] 70 | fn calc_ratio(&self, g: &game_types::Game, tile: world::Tile) -> f64 { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tile` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `t` [INFO] [stderr] --> src/production.rs:89:7 [INFO] [stderr] | [INFO] [stderr] 89 | let t = self.tile; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `t` [INFO] [stderr] --> src/production.rs:90:29 [INFO] [stderr] | [INFO] [stderr] 90 | if matches!(tile.my_type, t) { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `g` [INFO] [stderr] --> src/production.rs:133:22 [INFO] [stderr] | [INFO] [stderr] 133 | fn calc_prod(&self, g: &game_types::Game, i: usize, j:usize) -> game_types::Resources { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/production.rs:133:44 [INFO] [stderr] | [INFO] [stderr] 133 | fn calc_prod(&self, g: &game_types::Game, i: usize, j:usize) -> game_types::Resources { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `j` [INFO] [stderr] --> src/production.rs:133:54 [INFO] [stderr] | [INFO] [stderr] 133 | fn calc_prod(&self, g: &game_types::Game, i: usize, j:usize) -> game_types::Resources { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `g` [INFO] [stderr] --> src/game_types.rs:271:26 [INFO] [stderr] | [INFO] [stderr] 271 | fn should_unlock(&self, g: &Game) -> bool { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `map` [INFO] [stderr] --> src/world.rs:12:27 [INFO] [stderr] | [INFO] [stderr] 12 | pub fn get_edge_neighbors(map: WorldMap, tile: Tile) -> Vec { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `tile` [INFO] [stderr] --> src/world.rs:12:42 [INFO] [stderr] | [INFO] [stderr] 12 | pub fn get_edge_neighbors(map: WorldMap, tile: Tile) -> Vec { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tile` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/production.rs:134:7 [INFO] [stderr] | [INFO] [stderr] 134 | let mut mult : f64 = 1.0; [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: private trait `buyable` in public interface (error E0445) [INFO] [stderr] --> src/game_types.rs:21:2 [INFO] [stderr] | [INFO] [stderr] 21 | pub fn buy(&mut self, b: &buyable) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(private_in_public)]` 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 #34537 [INFO] [stderr] [INFO] [stderr] warning: function is never used: `test` [INFO] [stderr] --> src/production.rs:6:8 [INFO] [stderr] | [INFO] [stderr] 6 | pub fn test() -> usize { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field is never read: `tier` [INFO] [stderr] --> src/production.rs:55:2 [INFO] [stderr] | [INFO] [stderr] 55 | pub tier: usize, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `get_tiles` [INFO] [stderr] --> src/production.rs:83:2 [INFO] [stderr] | [INFO] [stderr] 83 | get_tiles: Fn(world::WorldMap, world::Tile) -> Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `tier` [INFO] [stderr] --> src/production.rs:110:2 [INFO] [stderr] | [INFO] [stderr] 110 | pub tier: usize, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/production.rs:120:9 [INFO] [stderr] | [INFO] [stderr] 120 | pub fn new(res: game_types::Resources, bonuses: Vec<&'a Bonus>, tier : usize) -> basic_production<'a> { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `init_prod_objs` [INFO] [stderr] --> src/production.rs:155:4 [INFO] [stderr] | [INFO] [stderr] 155 | fn init_prod_objs() -> ArrayVec, { game_types::Building::NUM_BUILDINGS }> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `name` [INFO] [stderr] --> src/game_types.rs:89:2 [INFO] [stderr] | [INFO] [stderr] 89 | name: String, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `tier` [INFO] [stderr] --> src/game_types.rs:92:2 [INFO] [stderr] | [INFO] [stderr] 92 | tier: usize, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `desc` [INFO] [stderr] --> src/game_types.rs:93:2 [INFO] [stderr] | [INFO] [stderr] 93 | desc: String, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `name` [INFO] [stderr] --> src/game_types.rs:105:2 [INFO] [stderr] | [INFO] [stderr] 105 | name: String, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `tier` [INFO] [stderr] --> src/game_types.rs:108:2 [INFO] [stderr] | [INFO] [stderr] 108 | tier: usize, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `desc` [INFO] [stderr] --> src/game_types.rs:109:2 [INFO] [stderr] | [INFO] [stderr] 109 | desc: String, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `NUM_TECHS` [INFO] [stderr] --> src/game_types.rs:121:2 [INFO] [stderr] | [INFO] [stderr] 121 | const NUM_TECHS : usize = 2; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `level` [INFO] [stderr] --> src/game_types.rs:133:2 [INFO] [stderr] | [INFO] [stderr] 133 | level: u8, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Building` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/game_types.rs:130:16 [INFO] [stderr] | [INFO] [stderr] 130 | #[derive(Copy, Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `unlocked` [INFO] [stderr] --> src/world.rs:7:2 [INFO] [stderr] | [INFO] [stderr] 7 | unlocked: bool, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Tile` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/world.rs:4:16 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Copy, Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: function is never used: `get_edge_neighbors` [INFO] [stderr] --> src/world.rs:12:8 [INFO] [stderr] | [INFO] [stderr] 12 | pub fn get_edge_neighbors(map: WorldMap, tile: Tile) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: crate `Idle_Game_Rust` should have a snake case name [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] = help: convert the identifier to snake case: `idle_game_rust` [INFO] [stderr] [INFO] [stderr] warning: `Idle_Game_Rust` (bin "Idle_Game_Rust" test) generated 60 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.41s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/Idle_Game_Rust-d5f6068bcb54f037) [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; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "c36490992ed3ed97dc5c1ac4d2c007a0e34151002cc6b762c06c8f5acea207f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c36490992ed3ed97dc5c1ac4d2c007a0e34151002cc6b762c06c8f5acea207f8", kill_on_drop: false }` [INFO] [stdout] c36490992ed3ed97dc5c1ac4d2c007a0e34151002cc6b762c06c8f5acea207f8