[INFO] cloning repository https://github.com/eikrt/worldgen2 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/eikrt/worldgen2" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feikrt%2Fworldgen2", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feikrt%2Fworldgen2'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e1c5ac055863d57f160e33102307a79f3d5217a1 [INFO] checking eikrt/worldgen2 against master#bca37a20bd376ce3fd138e7cdee7fe704e0f8814 for pr-139493-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feikrt%2Fworldgen2" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/eikrt/worldgen2 [INFO] finished tweaking git repo https://github.com/eikrt/worldgen2 [INFO] tweaked toml for git repo https://github.com/eikrt/worldgen2 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/eikrt/worldgen2 on toolchain bca37a20bd376ce3fd138e7cdee7fe704e0f8814 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/eikrt/worldgen2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded c_vec v2.0.0 [INFO] [stderr] Downloaded noise v0.9.0 [INFO] [stderr] Downloaded gnuplot v0.0.43 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bada28492e48e9622dff90ec851101ee9d2ec3214d185877428ef3724cc87731 [INFO] running `Command { std: "docker" "start" "-a" "bada28492e48e9622dff90ec851101ee9d2ec3214d185877428ef3724cc87731", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bada28492e48e9622dff90ec851101ee9d2ec3214d185877428ef3724cc87731", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bada28492e48e9622dff90ec851101ee9d2ec3214d185877428ef3724cc87731", kill_on_drop: false }` [INFO] [stdout] bada28492e48e9622dff90ec851101ee9d2ec3214d185877428ef3724cc87731 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7d1a3ca29496c0934e9f533746f05f7087719d0dbebeeff82966de5bdc3929bf [INFO] running `Command { std: "docker" "start" "-a" "7d1a3ca29496c0934e9f533746f05f7087719d0dbebeeff82966de5bdc3929bf", kill_on_drop: false }` [INFO] [stderr] Checking linux-raw-sys v0.4.13 [INFO] [stderr] Compiling sdl2 v0.36.0 [INFO] [stderr] Checking fastrand v2.0.2 [INFO] [stderr] Checking c_vec v2.0.0 [INFO] [stderr] Compiling sdl2-sys v0.36.0 [INFO] [stderr] Compiling rustix v0.38.32 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Checking either v1.10.0 [INFO] [stderr] Checking crossbeam-queue v0.3.11 [INFO] [stderr] Checking crossbeam-channel v0.5.12 [INFO] [stderr] Checking rand_xorshift v0.3.0 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking crossbeam v0.8.4 [INFO] [stderr] Checking noise v0.9.0 [INFO] [stderr] Checking tempfile v3.10.1 [INFO] [stderr] Checking gnuplot v0.0.43 [INFO] [stderr] Checking U v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Chunk` [INFO] [stdout] --> src/renderer.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::worldgen::{Chunk, Coords, Faction, CHUNK_SIZE, TILE_SIZE}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Chunk` [INFO] [stdout] --> src/renderer.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::worldgen::{Chunk, Coords, Faction, CHUNK_SIZE, TILE_SIZE}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/bitmap.rs:397:14 [INFO] [stdout] | [INFO] [stdout] 397 | for (index, character) in input_string.chars().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/bitmap.rs:397:14 [INFO] [stdout] | [INFO] [stdout] 397 | for (index, character) in input_string.chars().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/renderer.rs:169:29 [INFO] [stdout] | [INFO] [stdout] 169 | let mut text = n; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/renderer.rs:169:29 [INFO] [stdout] | [INFO] [stdout] 169 | let mut text = n; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `faction` [INFO] [stdout] --> src/worldgen.rs:56:23 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn gen_human_name(faction: Faction, gender: &Gender) -> String { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_faction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `faction` [INFO] [stdout] --> src/worldgen.rs:56:23 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn gen_human_name(faction: Faction, gender: &Gender) -> String { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_faction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vel` [INFO] [stdout] --> src/worldgen.rs:243:9 [INFO] [stdout] | [INFO] [stdout] 243 | vel: (f32, f32), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_vel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vel` [INFO] [stdout] --> src/worldgen.rs:243:9 [INFO] [stdout] | [INFO] [stdout] 243 | vel: (f32, f32), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_vel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `roll` [INFO] [stdout] --> src/worldgen.rs:274:13 [INFO] [stdout] | [INFO] [stdout] 274 | let roll = rng.gen_range(0..10); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_roll` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `roll` [INFO] [stdout] --> src/worldgen.rs:274:13 [INFO] [stdout] | [INFO] [stdout] 274 | let roll = rng.gen_range(0..10); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_roll` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `step_increment` [INFO] [stdout] --> src/worldgen.rs:286:59 [INFO] [stdout] | [INFO] [stdout] 286 | pub fn resolve_against(&mut self, other: &mut Entity, step_increment: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_step_increment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `step_increment` [INFO] [stdout] --> src/worldgen.rs:286:59 [INFO] [stdout] | [INFO] [stdout] 286 | pub fn resolve_against(&mut self, other: &mut Entity, step_increment: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_step_increment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/worldgen.rs:357:13 [INFO] [stdout] | [INFO] [stdout] 357 | for i in 0..step_increment { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/worldgen.rs:357:13 [INFO] [stdout] | [INFO] [stdout] 357 | for i in 0..step_increment { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `step_increment` [INFO] [stdout] --> src/worldgen.rs:506:39 [INFO] [stdout] | [INFO] [stdout] 506 | pub fn resolve_between(&mut self, step_increment: i32) {} [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_step_increment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `fight`, `animal_husbandry`, `industry`, `farm`, and `oil_rig` are never read [INFO] [stdout] --> src/worldgen.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Tasks { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 31 | build: (u8, bool), [INFO] [stdout] 32 | fight: (u8, bool), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 33 | animal_husbandry: (u8, bool), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | industry: (u8, bool), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 35 | farm: (u8, bool), [INFO] [stdout] | ^^^^ [INFO] [stdout] 36 | oil_rig: (u8, bool), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tasks` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `step_increment` [INFO] [stdout] --> src/worldgen.rs:506:39 [INFO] [stdout] | [INFO] [stdout] 506 | pub fn resolve_between(&mut self, step_increment: i32) {} [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_step_increment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `intelligence` and `agility` are never read [INFO] [stdout] --> src/worldgen.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 93 | pub struct Stats { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 97 | intelligence: u8, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 98 | agility: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Stats` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `FinWords` should have an upper case name [INFO] [stdout] --> src/lang.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | pub static ref FinWords: HashMap = [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `FIN_WORDS` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `EstWords` should have an upper case name [INFO] [stdout] --> src/lang.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | pub static ref EstWords: HashMap = [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `EST_WORDS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RusWords` should have an upper case name [INFO] [stdout] --> src/lang.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | pub static ref RusWords: HashMap = HashMap::from([("".to_string(), Pos::Verb)]); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `RUS_WORDS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `fight`, `animal_husbandry`, `industry`, `farm`, and `oil_rig` are never read [INFO] [stdout] --> src/worldgen.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Tasks { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 31 | build: (u8, bool), [INFO] [stdout] 32 | fight: (u8, bool), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 33 | animal_husbandry: (u8, bool), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | industry: (u8, bool), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 35 | farm: (u8, bool), [INFO] [stdout] | ^^^^ [INFO] [stdout] 36 | oil_rig: (u8, bool), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tasks` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `intelligence` and `agility` are never read [INFO] [stdout] --> src/worldgen.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 93 | pub struct Stats { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 97 | intelligence: u8, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 98 | agility: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Stats` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `U` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `u` [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `FinWords` should have an upper case name [INFO] [stdout] --> src/lang.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | pub static ref FinWords: HashMap = [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `FIN_WORDS` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `EstWords` should have an upper case name [INFO] [stdout] --> src/lang.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | pub static ref EstWords: HashMap = [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `EST_WORDS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RusWords` should have an upper case name [INFO] [stdout] --> src/lang.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | pub static ref RusWords: HashMap = HashMap::from([("".to_string(), Pos::Verb)]); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `RUS_WORDS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/plot.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | fg.show(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 10 | let _ = fg.show(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/plot.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | fg.show(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 10 | let _ = fg.show(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::iter::Map` that must be used [INFO] [stdout] --> src/worldgen.rs:466:9 [INFO] [stdout] | [INFO] [stdout] 466 | / self.entities [INFO] [stdout] 467 | | .iter() [INFO] [stdout] 468 | | .map(|e| coin_count += e.inventory.get_coins()); [INFO] [stdout] | |___________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: iterators are lazy and do nothing unless consumed [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 466 | let _ = self.entities [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `Iterator::map` call that discard the iterator's values [INFO] [stdout] --> src/worldgen.rs:468:14 [INFO] [stdout] | [INFO] [stdout] 468 | .map(|e| coin_count += e.inventory.get_coins()); [INFO] [stdout] | ^^^^-----------------------------------------^ [INFO] [stdout] | | | [INFO] [stdout] | | this function returns `()`, which is likely not what you wanted [INFO] [stdout] | | called `Iterator::map` with callable that returns `()` [INFO] [stdout] | after this call to map, the resulting iterator is `impl Iterator`, which means the only information carried by the iterator is the number of items [INFO] [stdout] | [INFO] [stdout] = note: `Iterator::map`, like many of the methods on `Iterator`, gets executed lazily, meaning that its effects won't be visible until it is iterated [INFO] [stdout] = note: `#[warn(map_unit_fn)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: you might have meant to use `Iterator::for_each` [INFO] [stdout] | [INFO] [stdout] 468 - .map(|e| coin_count += e.inventory.get_coins()); [INFO] [stdout] 468 + .for_each(|e| coin_count += e.inventory.get_coins()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::iter::Map` that must be used [INFO] [stdout] --> src/worldgen.rs:466:9 [INFO] [stdout] | [INFO] [stdout] 466 | / self.entities [INFO] [stdout] 467 | | .iter() [INFO] [stdout] 468 | | .map(|e| coin_count += e.inventory.get_coins()); [INFO] [stdout] | |___________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: iterators are lazy and do nothing unless consumed [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 466 | let _ = self.entities [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `Iterator::map` call that discard the iterator's values [INFO] [stdout] --> src/worldgen.rs:468:14 [INFO] [stdout] | [INFO] [stdout] 468 | .map(|e| coin_count += e.inventory.get_coins()); [INFO] [stdout] | ^^^^-----------------------------------------^ [INFO] [stdout] | | | [INFO] [stdout] | | this function returns `()`, which is likely not what you wanted [INFO] [stdout] | | called `Iterator::map` with callable that returns `()` [INFO] [stdout] | after this call to map, the resulting iterator is `impl Iterator`, which means the only information carried by the iterator is the number of items [INFO] [stdout] | [INFO] [stdout] = note: `Iterator::map`, like many of the methods on `Iterator`, gets executed lazily, meaning that its effects won't be visible until it is iterated [INFO] [stdout] = note: `#[warn(map_unit_fn)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: you might have meant to use `Iterator::for_each` [INFO] [stdout] | [INFO] [stdout] 468 - .map(|e| coin_count += e.inventory.get_coins()); [INFO] [stdout] 468 + .for_each(|e| coin_count += e.inventory.get_coins()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `U::plot::plot` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use U::plot::plot; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let mut step_increment = 1; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let mut vic_world = 0; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mut render = false; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let mut world = &mut worlds[vic_world]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | Err(e) => panic!("End..."), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `step` is assigned to, but never used [INFO] [stdout] --> src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let mut step = 0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_step` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `render` [INFO] [stdout] --> src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mut render = false; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_render` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `step` is never read [INFO] [stdout] --> src/main.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | step += step_increment; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `U::plot::plot` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use U::plot::plot; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let mut step_increment = 1; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let mut vic_world = 0; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mut render = false; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let mut world = &mut worlds[vic_world]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | Err(e) => panic!("End..."), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `step` is assigned to, but never used [INFO] [stdout] --> src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let mut step = 0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_step` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `render` [INFO] [stdout] --> src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mut render = false; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_render` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `step` is never read [INFO] [stdout] --> src/main.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | step += step_increment; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.83s [INFO] running `Command { std: "docker" "inspect" "7d1a3ca29496c0934e9f533746f05f7087719d0dbebeeff82966de5bdc3929bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d1a3ca29496c0934e9f533746f05f7087719d0dbebeeff82966de5bdc3929bf", kill_on_drop: false }` [INFO] [stdout] 7d1a3ca29496c0934e9f533746f05f7087719d0dbebeeff82966de5bdc3929bf