[INFO] cloning repository https://github.com/alec-deason/NaNoGenMo-2018 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/alec-deason/NaNoGenMo-2018" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falec-deason%2FNaNoGenMo-2018", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falec-deason%2FNaNoGenMo-2018'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a64b75f063067d6ce8b88d3141c3f12ef4aacfc1 [INFO] testing alec-deason/NaNoGenMo-2018 against master#8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e for pr-74409 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falec-deason%2FNaNoGenMo-2018" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/alec-deason/NaNoGenMo-2018 on toolchain 8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/alec-deason/NaNoGenMo-2018 [INFO] finished tweaking git repo https://github.com/alec-deason/NaNoGenMo-2018 [INFO] tweaked toml for git repo https://github.com/alec-deason/NaNoGenMo-2018 written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/alec-deason/NaNoGenMo-2018 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 03532b48c2bab1511f52618357bff3a1f574c022ea6999f96e1dab5455fdb5e8 [INFO] running `Command { std: "docker" "start" "-a" "03532b48c2bab1511f52618357bff3a1f574c022ea6999f96e1dab5455fdb5e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "03532b48c2bab1511f52618357bff3a1f574c022ea6999f96e1dab5455fdb5e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "03532b48c2bab1511f52618357bff3a1f574c022ea6999f96e1dab5455fdb5e8", kill_on_drop: false }` [INFO] [stdout] 03532b48c2bab1511f52618357bff3a1f574c022ea6999f96e1dab5455fdb5e8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 07b01c0e81ee94b85572c5fa5f5dd5718f4d9a848ccca2f793c68cafaef1a659 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "07b01c0e81ee94b85572c5fa5f5dd5718f4d9a848ccca2f793c68cafaef1a659", kill_on_drop: false }` [INFO] [stderr] Compiling rand_core v0.3.0 [INFO] [stderr] Compiling dot v0.1.4 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling rand_xorshift v0.1.0 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_isaac v0.1.0 [INFO] [stderr] Compiling rand_chacha v0.1.0 [INFO] [stderr] Compiling rand_pcg v0.1.1 [INFO] [stderr] Compiling rand v0.6.0-pre.1 [INFO] [stderr] Compiling nanogenmo_2018 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::hash_map::Entry` [INFO] [stdout] --> src/agent/daemons.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::Entry; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::seq::IteratorRandom` [INFO] [stdout] --> src/agent/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rand::seq::IteratorRandom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'std::vec::Vec::::remove_item': Removing the first item equal to a needle is already easily possible with iterators and the current Vec methods. Furthermore, having a method for one particular case of removal (linear search, only the first item, no swap remove) but not for others is inconsistent. This method will be removed soon. [INFO] [stdout] --> src/lib.rs:162:23 [INFO] [stdout] | [INFO] [stdout] 162 | the_greenwood.remove_item(&seed); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'std::vec::Vec::::remove_item': Removing the first item equal to a needle is already easily possible with iterators and the current Vec methods. Furthermore, having a method for one particular case of removal (linear search, only the first item, no swap remove) but not for others is inconsistent. This method will be removed soon. [INFO] [stdout] --> src/agent/events.rs:16:44 [INFO] [stdout] | [INFO] [stdout] 16 | world.locations[self.start].agents.remove_item(&self.agent); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::seq::IteratorRandom` [INFO] [stdout] --> src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::seq::IteratorRandom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/lib.rs:36:21 [INFO] [stdout] | [INFO] [stdout] 36 | fn apply(&self, world: &mut World) { } [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/lib.rs:37:25 [INFO] [stdout] | [INFO] [stdout] 37 | fn to_string(&self, world: &World) -> String { "".to_string() } [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/lib.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item_id` [INFO] [stdout] --> src/lib.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let mut item_id = 0; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_item_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/agent/events.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | fn to_string(&self, world: &World) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/agent/events.rs:100:25 [INFO] [stdout] | [INFO] [stdout] 100 | fn to_string(&self, world: &World) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/agent/events.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | fn to_string(&self, world: &World) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/agent/events.rs:132:25 [INFO] [stdout] | [INFO] [stdout] 132 | fn to_string(&self, world: &World) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/agent/events.rs:178:25 [INFO] [stdout] | [INFO] [stdout] 178 | fn to_string(&self, world: &World) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `agent` [INFO] [stdout] --> src/agent/executive.rs:143:43 [INFO] [stdout] | [INFO] [stdout] 143 | ... payload: |agent, _| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_agent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `agent` [INFO] [stdout] --> src/agent/daemons.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_agent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/agent/daemons.rs:10:37 [INFO] [stdout] | [INFO] [stdout] 10 | fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/agent/daemons.rs:63:37 [INFO] [stdout] | [INFO] [stdout] 63 | fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `goal` [INFO] [stdout] --> src/agent/daemons.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 88 | let goal = mind.goals.remove(&executive::Goal::Rest); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_goal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/agent/daemons.rs:98:37 [INFO] [stdout] | [INFO] [stdout] 98 | fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/agent/daemons.rs:140:37 [INFO] [stdout] | [INFO] [stdout] 140 | fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cheer` [INFO] [stdout] --> src/agent/daemons.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | let cheer = mind.cheer; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_cheer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/agent/daemons.rs:184:37 [INFO] [stdout] | [INFO] [stdout] 184 | fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let mut item_id = 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/agent/daemons.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | let mut mind = agent.mind.borrow_mut(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/executive.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | Complete { events: Vec> }, [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: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/executive.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 10 | Incomplete { events: Vec> }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [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: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/executive.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | / pub fn wander(agent: &Agent, world: &World) -> Box { [INFO] [stdout] 36 | | let mut rng = rand::thread_rng(); [INFO] [stdout] 37 | | let new_loc = *world.locations[agent.location].exits.choose(&mut rng).unwrap_or(&agent.location); [INFO] [stdout] 38 | | Box::new(events::MoveEvent { start: agent.location, end: new_loc, agent: agent.id }) [INFO] [stdout] 39 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [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: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/executive.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 189 | / fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] 190 | | let mut mind = agent.mind.borrow_mut(); [INFO] [stdout] 191 | | match &mut mind.current_goal { [INFO] [stdout] 192 | | Some((_, strategy)) => { [INFO] [stdout] ... | [INFO] [stdout] 202 | | } [INFO] [stdout] 203 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [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: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/daemons.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | / fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] 11 | | vec![] [INFO] [stdout] 12 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [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: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/daemons.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | / fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] 64 | | vec![ [INFO] [stdout] 65 | | Box::new(events::DieEvent { agent: agent.id }) [INFO] [stdout] 66 | | ] [INFO] [stdout] 67 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [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: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/daemons.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | / fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] 99 | | if agent.health.borrow().sleepiness > 1.0 { [INFO] [stdout] 100 | | vec![ [INFO] [stdout] 101 | | Box::new(events::NapEvent { agent: agent.id }) [INFO] [stdout] ... | [INFO] [stdout] 107 | | } [INFO] [stdout] 108 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [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: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/daemons.rs:140:5 [INFO] [stdout] | [INFO] [stdout] 140 | / fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] 141 | | vec![ [INFO] [stdout] 142 | | Box::new(events::DefecateEvent { agent: agent.id }) [INFO] [stdout] 143 | | ] [INFO] [stdout] 144 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [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: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/daemons.rs:184:5 [INFO] [stdout] | [INFO] [stdout] 184 | / fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] 185 | | vec![ [INFO] [stdout] 186 | | Box::new(events::MeetEvent { agent: agent.id, other: self.encounter.get().unwrap() }) [INFO] [stdout] 187 | | ] [INFO] [stdout] 188 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [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: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/mod.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub events: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [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: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/mod.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | / pub fn step_simulation(&self, world: &World) -> Vec> { [INFO] [stdout] 55 | | let mut rng = rand::thread_rng(); [INFO] [stdout] 56 | | let mut daemon_urgency: Vec = Vec::with_capacity(self.daemons.len()); [INFO] [stdout] 57 | | let mut potential_daemons = Vec::with_capacity(self.daemons.len()); [INFO] [stdout] ... | [INFO] [stdout] 77 | | } [INFO] [stdout] 78 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [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: static is never used: `FEMALE_FIRST_NAMES` [INFO] [stdout] --> src/agent/names.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | static FEMALE_FIRST_NAMES: &'static [&str] = &["Emma", "Olivia", "Ava", "Isabella", "Sophia", "Mia", "Charlotte", "Amelia", "Evelyn", "Abigail", "Dorothy", "Margaret", "Susan", "Maria", "Jennifer", "Elizabeth", "Barbara", "Linda", "Patricia", "Mary", "Mariana", "Valentina", "Isabella", "Sofía", "Valeria", "Gabriela", "Sara", "Salomé", "Daniela... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `female_name` [INFO] [stdout] --> src/agent/names.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn female_name() -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:21:95 [INFO] [stdout] | [INFO] [stdout] 21 | let agent_time = w.agents.iter().map(|a| a.total_time.get() ).fold(0.0, |acc, x| acc + x);; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/location_graph.rs:11:55 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn render_to(locations: &Vec, world: &World, output: &mut W) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 9.49s [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "07b01c0e81ee94b85572c5fa5f5dd5718f4d9a848ccca2f793c68cafaef1a659", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "07b01c0e81ee94b85572c5fa5f5dd5718f4d9a848ccca2f793c68cafaef1a659", kill_on_drop: false }` [INFO] [stdout] 07b01c0e81ee94b85572c5fa5f5dd5718f4d9a848ccca2f793c68cafaef1a659 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e8715d616c19cd54d80f4157c2db312213308a5eff2a896272854ecd27f34733 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e8715d616c19cd54d80f4157c2db312213308a5eff2a896272854ecd27f34733", kill_on_drop: false }` [INFO] [stderr] Compiling nanogenmo_2018 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::hash_map::Entry` [INFO] [stdout] --> src/agent/daemons.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::Entry; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::seq::IteratorRandom` [INFO] [stdout] --> src/agent/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rand::seq::IteratorRandom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'std::vec::Vec::::remove_item': Removing the first item equal to a needle is already easily possible with iterators and the current Vec methods. Furthermore, having a method for one particular case of removal (linear search, only the first item, no swap remove) but not for others is inconsistent. This method will be removed soon. [INFO] [stdout] --> src/lib.rs:162:23 [INFO] [stdout] | [INFO] [stdout] 162 | the_greenwood.remove_item(&seed); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'std::vec::Vec::::remove_item': Removing the first item equal to a needle is already easily possible with iterators and the current Vec methods. Furthermore, having a method for one particular case of removal (linear search, only the first item, no swap remove) but not for others is inconsistent. This method will be removed soon. [INFO] [stdout] --> src/agent/events.rs:16:44 [INFO] [stdout] | [INFO] [stdout] 16 | world.locations[self.start].agents.remove_item(&self.agent); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::seq::IteratorRandom` [INFO] [stdout] --> src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::seq::IteratorRandom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/lib.rs:36:21 [INFO] [stdout] | [INFO] [stdout] 36 | fn apply(&self, world: &mut World) { } [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/lib.rs:37:25 [INFO] [stdout] | [INFO] [stdout] 37 | fn to_string(&self, world: &World) -> String { "".to_string() } [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/lib.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item_id` [INFO] [stdout] --> src/lib.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let mut item_id = 0; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_item_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/agent/events.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | fn to_string(&self, world: &World) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/agent/events.rs:100:25 [INFO] [stdout] | [INFO] [stdout] 100 | fn to_string(&self, world: &World) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/agent/events.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | fn to_string(&self, world: &World) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/agent/events.rs:132:25 [INFO] [stdout] | [INFO] [stdout] 132 | fn to_string(&self, world: &World) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/agent/events.rs:178:25 [INFO] [stdout] | [INFO] [stdout] 178 | fn to_string(&self, world: &World) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `agent` [INFO] [stdout] --> src/agent/executive.rs:143:43 [INFO] [stdout] | [INFO] [stdout] 143 | ... payload: |agent, _| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_agent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `agent` [INFO] [stdout] --> src/agent/daemons.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_agent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/agent/daemons.rs:10:37 [INFO] [stdout] | [INFO] [stdout] 10 | fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/agent/daemons.rs:63:37 [INFO] [stdout] | [INFO] [stdout] 63 | fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `goal` [INFO] [stdout] --> src/agent/daemons.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 88 | let goal = mind.goals.remove(&executive::Goal::Rest); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_goal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/agent/daemons.rs:98:37 [INFO] [stdout] | [INFO] [stdout] 98 | fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/agent/daemons.rs:140:37 [INFO] [stdout] | [INFO] [stdout] 140 | fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cheer` [INFO] [stdout] --> src/agent/daemons.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | let cheer = mind.cheer; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_cheer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/agent/daemons.rs:184:37 [INFO] [stdout] | [INFO] [stdout] 184 | fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let mut item_id = 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/agent/daemons.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | let mut mind = agent.mind.borrow_mut(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/executive.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | Complete { events: Vec> }, [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: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/executive.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 10 | Incomplete { events: Vec> }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [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: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/executive.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | / pub fn wander(agent: &Agent, world: &World) -> Box { [INFO] [stdout] 36 | | let mut rng = rand::thread_rng(); [INFO] [stdout] 37 | | let new_loc = *world.locations[agent.location].exits.choose(&mut rng).unwrap_or(&agent.location); [INFO] [stdout] 38 | | Box::new(events::MoveEvent { start: agent.location, end: new_loc, agent: agent.id }) [INFO] [stdout] 39 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [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: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/executive.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 189 | / fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] 190 | | let mut mind = agent.mind.borrow_mut(); [INFO] [stdout] 191 | | match &mut mind.current_goal { [INFO] [stdout] 192 | | Some((_, strategy)) => { [INFO] [stdout] ... | [INFO] [stdout] 202 | | } [INFO] [stdout] 203 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [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: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/daemons.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | / fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] 11 | | vec![] [INFO] [stdout] 12 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [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: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/daemons.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | / fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] 64 | | vec![ [INFO] [stdout] 65 | | Box::new(events::DieEvent { agent: agent.id }) [INFO] [stdout] 66 | | ] [INFO] [stdout] 67 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [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: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/daemons.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | / fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] 99 | | if agent.health.borrow().sleepiness > 1.0 { [INFO] [stdout] 100 | | vec![ [INFO] [stdout] 101 | | Box::new(events::NapEvent { agent: agent.id }) [INFO] [stdout] ... | [INFO] [stdout] 107 | | } [INFO] [stdout] 108 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [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: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/daemons.rs:140:5 [INFO] [stdout] | [INFO] [stdout] 140 | / fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] 141 | | vec![ [INFO] [stdout] 142 | | Box::new(events::DefecateEvent { agent: agent.id }) [INFO] [stdout] 143 | | ] [INFO] [stdout] 144 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [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: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/daemons.rs:184:5 [INFO] [stdout] | [INFO] [stdout] 184 | / fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] 185 | | vec![ [INFO] [stdout] 186 | | Box::new(events::MeetEvent { agent: agent.id, other: self.encounter.get().unwrap() }) [INFO] [stdout] 187 | | ] [INFO] [stdout] 188 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [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: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/mod.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub events: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [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: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/mod.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | / pub fn step_simulation(&self, world: &World) -> Vec> { [INFO] [stdout] 55 | | let mut rng = rand::thread_rng(); [INFO] [stdout] 56 | | let mut daemon_urgency: Vec = Vec::with_capacity(self.daemons.len()); [INFO] [stdout] 57 | | let mut potential_daemons = Vec::with_capacity(self.daemons.len()); [INFO] [stdout] ... | [INFO] [stdout] 77 | | } [INFO] [stdout] 78 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [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: static is never used: `FEMALE_FIRST_NAMES` [INFO] [stdout] --> src/agent/names.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | static FEMALE_FIRST_NAMES: &'static [&str] = &["Emma", "Olivia", "Ava", "Isabella", "Sophia", "Mia", "Charlotte", "Amelia", "Evelyn", "Abigail", "Dorothy", "Margaret", "Susan", "Maria", "Jennifer", "Elizabeth", "Barbara", "Linda", "Patricia", "Mary", "Mariana", "Valentina", "Isabella", "Sofía", "Valeria", "Gabriela", "Sara", "Salomé", "Daniela... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `female_name` [INFO] [stdout] --> src/agent/names.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn female_name() -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:21:95 [INFO] [stdout] | [INFO] [stdout] 21 | let agent_time = w.agents.iter().map(|a| a.total_time.get() ).fold(0.0, |acc, x| acc + x);; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::Entry` [INFO] [stdout] --> src/agent/daemons.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::Entry; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::seq::IteratorRandom` [INFO] [stdout] --> src/agent/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rand::seq::IteratorRandom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/location_graph.rs:11:55 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn render_to(locations: &Vec, world: &World, output: &mut W) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'std::vec::Vec::::remove_item': Removing the first item equal to a needle is already easily possible with iterators and the current Vec methods. Furthermore, having a method for one particular case of removal (linear search, only the first item, no swap remove) but not for others is inconsistent. This method will be removed soon. [INFO] [stdout] --> src/lib.rs:162:23 [INFO] [stdout] | [INFO] [stdout] 162 | the_greenwood.remove_item(&seed); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'std::vec::Vec::::remove_item': Removing the first item equal to a needle is already easily possible with iterators and the current Vec methods. Furthermore, having a method for one particular case of removal (linear search, only the first item, no swap remove) but not for others is inconsistent. This method will be removed soon. [INFO] [stdout] --> src/agent/events.rs:16:44 [INFO] [stdout] | [INFO] [stdout] 16 | world.locations[self.start].agents.remove_item(&self.agent); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::seq::IteratorRandom` [INFO] [stdout] --> src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::seq::IteratorRandom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/lib.rs:36:21 [INFO] [stdout] | [INFO] [stdout] 36 | fn apply(&self, world: &mut World) { } [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/lib.rs:37:25 [INFO] [stdout] | [INFO] [stdout] 37 | fn to_string(&self, world: &World) -> String { "".to_string() } [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/lib.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item_id` [INFO] [stdout] --> src/lib.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let mut item_id = 0; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_item_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/agent/events.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | fn to_string(&self, world: &World) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/agent/events.rs:100:25 [INFO] [stdout] | [INFO] [stdout] 100 | fn to_string(&self, world: &World) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/agent/events.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | fn to_string(&self, world: &World) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/agent/events.rs:132:25 [INFO] [stdout] | [INFO] [stdout] 132 | fn to_string(&self, world: &World) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/agent/events.rs:178:25 [INFO] [stdout] | [INFO] [stdout] 178 | fn to_string(&self, world: &World) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `agent` [INFO] [stdout] --> src/agent/executive.rs:143:43 [INFO] [stdout] | [INFO] [stdout] 143 | ... payload: |agent, _| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_agent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `agent` [INFO] [stdout] --> src/agent/daemons.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_agent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/agent/daemons.rs:10:37 [INFO] [stdout] | [INFO] [stdout] 10 | fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/agent/daemons.rs:63:37 [INFO] [stdout] | [INFO] [stdout] 63 | fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `goal` [INFO] [stdout] --> src/agent/daemons.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 88 | let goal = mind.goals.remove(&executive::Goal::Rest); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_goal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/agent/daemons.rs:98:37 [INFO] [stdout] | [INFO] [stdout] 98 | fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/agent/daemons.rs:140:37 [INFO] [stdout] | [INFO] [stdout] 140 | fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cheer` [INFO] [stdout] --> src/agent/daemons.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | let cheer = mind.cheer; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_cheer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/agent/daemons.rs:184:37 [INFO] [stdout] | [INFO] [stdout] 184 | fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let mut item_id = 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/agent/daemons.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | let mut mind = agent.mind.borrow_mut(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/executive.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | Complete { events: Vec> }, [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: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/executive.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 10 | Incomplete { events: Vec> }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [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: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/executive.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | / pub fn wander(agent: &Agent, world: &World) -> Box { [INFO] [stdout] 36 | | let mut rng = rand::thread_rng(); [INFO] [stdout] 37 | | let new_loc = *world.locations[agent.location].exits.choose(&mut rng).unwrap_or(&agent.location); [INFO] [stdout] 38 | | Box::new(events::MoveEvent { start: agent.location, end: new_loc, agent: agent.id }) [INFO] [stdout] 39 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [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: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/executive.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 189 | / fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] 190 | | let mut mind = agent.mind.borrow_mut(); [INFO] [stdout] 191 | | match &mut mind.current_goal { [INFO] [stdout] 192 | | Some((_, strategy)) => { [INFO] [stdout] ... | [INFO] [stdout] 202 | | } [INFO] [stdout] 203 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [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: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/daemons.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | / fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] 11 | | vec![] [INFO] [stdout] 12 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [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: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/daemons.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | / fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] 64 | | vec![ [INFO] [stdout] 65 | | Box::new(events::DieEvent { agent: agent.id }) [INFO] [stdout] 66 | | ] [INFO] [stdout] 67 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [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: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/daemons.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | / fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] 99 | | if agent.health.borrow().sleepiness > 1.0 { [INFO] [stdout] 100 | | vec![ [INFO] [stdout] 101 | | Box::new(events::NapEvent { agent: agent.id }) [INFO] [stdout] ... | [INFO] [stdout] 107 | | } [INFO] [stdout] 108 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [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: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/daemons.rs:140:5 [INFO] [stdout] | [INFO] [stdout] 140 | / fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] 141 | | vec![ [INFO] [stdout] 142 | | Box::new(events::DefecateEvent { agent: agent.id }) [INFO] [stdout] 143 | | ] [INFO] [stdout] 144 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [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: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/daemons.rs:184:5 [INFO] [stdout] | [INFO] [stdout] 184 | / fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stdout] 185 | | vec![ [INFO] [stdout] 186 | | Box::new(events::MeetEvent { agent: agent.id, other: self.encounter.get().unwrap() }) [INFO] [stdout] 187 | | ] [INFO] [stdout] 188 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [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: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/mod.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub events: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [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: private trait `Event` in public interface (error E0445) [INFO] [stdout] --> src/agent/mod.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | / pub fn step_simulation(&self, world: &World) -> Vec> { [INFO] [stdout] 55 | | let mut rng = rand::thread_rng(); [INFO] [stdout] 56 | | let mut daemon_urgency: Vec = Vec::with_capacity(self.daemons.len()); [INFO] [stdout] 57 | | let mut potential_daemons = Vec::with_capacity(self.daemons.len()); [INFO] [stdout] ... | [INFO] [stdout] 77 | | } [INFO] [stdout] 78 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [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: static is never used: `FEMALE_FIRST_NAMES` [INFO] [stdout] --> src/agent/names.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | static FEMALE_FIRST_NAMES: &'static [&str] = &["Emma", "Olivia", "Ava", "Isabella", "Sophia", "Mia", "Charlotte", "Amelia", "Evelyn", "Abigail", "Dorothy", "Margaret", "Susan", "Maria", "Jennifer", "Elizabeth", "Barbara", "Linda", "Patricia", "Mary", "Mariana", "Valentina", "Isabella", "Sofía", "Valeria", "Gabriela", "Sara", "Salomé", "Daniela... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `female_name` [INFO] [stdout] --> src/agent/names.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn female_name() -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.03s [INFO] running `Command { std: "docker" "inspect" "e8715d616c19cd54d80f4157c2db312213308a5eff2a896272854ecd27f34733", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8715d616c19cd54d80f4157c2db312213308a5eff2a896272854ecd27f34733", kill_on_drop: false }` [INFO] [stdout] e8715d616c19cd54d80f4157c2db312213308a5eff2a896272854ecd27f34733 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] f03b2dfc1af73f5e52ae1c84cbc08995c7f3287d94d4ff81ff8c1c4cd47dac61 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "f03b2dfc1af73f5e52ae1c84cbc08995c7f3287d94d4ff81ff8c1c4cd47dac61", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::collections::hash_map::Entry` [INFO] [stderr] --> src/agent/daemons.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::collections::hash_map::Entry; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `rand::seq::IteratorRandom` [INFO] [stderr] --> src/agent/mod.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use rand::seq::IteratorRandom; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::vec::Vec::::remove_item': Removing the first item equal to a needle is already easily possible with iterators and the current Vec methods. Furthermore, having a method for one particular case of removal (linear search, only the first item, no swap remove) but not for others is inconsistent. This method will be removed soon. [INFO] [stderr] --> src/lib.rs:162:23 [INFO] [stderr] | [INFO] [stderr] 162 | the_greenwood.remove_item(&seed); [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::vec::Vec::::remove_item': Removing the first item equal to a needle is already easily possible with iterators and the current Vec methods. Furthermore, having a method for one particular case of removal (linear search, only the first item, no swap remove) but not for others is inconsistent. This method will be removed soon. [INFO] [stderr] --> src/agent/events.rs:16:44 [INFO] [stderr] | [INFO] [stderr] 16 | world.locations[self.start].agents.remove_item(&self.agent); [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `rand::seq::IteratorRandom` [INFO] [stderr] --> src/lib.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use rand::seq::IteratorRandom; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> src/lib.rs:36:21 [INFO] [stderr] | [INFO] [stderr] 36 | fn apply(&self, world: &mut World) { } [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> src/lib.rs:37:25 [INFO] [stderr] | [INFO] [stderr] 37 | fn to_string(&self, world: &World) -> String { "".to_string() } [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rng` [INFO] [stderr] --> src/lib.rs:61:13 [INFO] [stderr] | [INFO] [stderr] 61 | let mut rng = rand::thread_rng(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `item_id` [INFO] [stderr] --> src/lib.rs:70:13 [INFO] [stderr] | [INFO] [stderr] 70 | let mut item_id = 0; [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_item_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> src/agent/events.rs:63:25 [INFO] [stderr] | [INFO] [stderr] 63 | fn to_string(&self, world: &World) -> String { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> src/agent/events.rs:100:25 [INFO] [stderr] | [INFO] [stderr] 100 | fn to_string(&self, world: &World) -> String { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> src/agent/events.rs:116:25 [INFO] [stderr] | [INFO] [stderr] 116 | fn to_string(&self, world: &World) -> String { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> src/agent/events.rs:132:25 [INFO] [stderr] | [INFO] [stderr] 132 | fn to_string(&self, world: &World) -> String { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> src/agent/events.rs:178:25 [INFO] [stderr] | [INFO] [stderr] 178 | fn to_string(&self, world: &World) -> String { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `agent` [INFO] [stderr] --> src/agent/executive.rs:143:43 [INFO] [stderr] | [INFO] [stderr] 143 | ... payload: |agent, _| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_agent` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `agent` [INFO] [stderr] --> src/agent/daemons.rs:10:22 [INFO] [stderr] | [INFO] [stderr] 10 | fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_agent` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> src/agent/daemons.rs:10:37 [INFO] [stderr] | [INFO] [stderr] 10 | fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> src/agent/daemons.rs:63:37 [INFO] [stderr] | [INFO] [stderr] 63 | fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `goal` [INFO] [stderr] --> src/agent/daemons.rs:88:17 [INFO] [stderr] | [INFO] [stderr] 88 | let goal = mind.goals.remove(&executive::Goal::Rest); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_goal` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> src/agent/daemons.rs:98:37 [INFO] [stderr] | [INFO] [stderr] 98 | fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> src/agent/daemons.rs:140:37 [INFO] [stderr] | [INFO] [stderr] 140 | fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cheer` [INFO] [stderr] --> src/agent/daemons.rs:174:13 [INFO] [stderr] | [INFO] [stderr] 174 | let cheer = mind.cheer; [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_cheer` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> src/agent/daemons.rs:184:37 [INFO] [stderr] | [INFO] [stderr] 184 | fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/lib.rs:61:13 [INFO] [stderr] | [INFO] [stderr] 61 | let mut rng = rand::thread_rng(); [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: variable does not need to be mutable [INFO] [stderr] --> src/lib.rs:70:13 [INFO] [stderr] | [INFO] [stderr] 70 | let mut item_id = 0; [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/agent/daemons.rs:173:13 [INFO] [stderr] | [INFO] [stderr] 173 | let mut mind = agent.mind.borrow_mut(); [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: private trait `Event` in public interface (error E0445) [INFO] [stderr] --> src/agent/executive.rs:9:16 [INFO] [stderr] | [INFO] [stderr] 9 | Complete { events: Vec> }, [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: private trait `Event` in public interface (error E0445) [INFO] [stderr] --> src/agent/executive.rs:10:18 [INFO] [stderr] | [INFO] [stderr] 10 | Incomplete { events: Vec> }, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #34537 [INFO] [stderr] [INFO] [stderr] warning: private trait `Event` in public interface (error E0445) [INFO] [stderr] --> src/agent/executive.rs:35:1 [INFO] [stderr] | [INFO] [stderr] 35 | / pub fn wander(agent: &Agent, world: &World) -> Box { [INFO] [stderr] 36 | | let mut rng = rand::thread_rng(); [INFO] [stderr] 37 | | let new_loc = *world.locations[agent.location].exits.choose(&mut rng).unwrap_or(&agent.location); [INFO] [stderr] 38 | | Box::new(events::MoveEvent { start: agent.location, end: new_loc, agent: agent.id }) [INFO] [stderr] 39 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #34537 [INFO] [stderr] [INFO] [stderr] warning: private trait `Event` in public interface (error E0445) [INFO] [stderr] --> src/agent/executive.rs:189:5 [INFO] [stderr] | [INFO] [stderr] 189 | / fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stderr] 190 | | let mut mind = agent.mind.borrow_mut(); [INFO] [stderr] 191 | | match &mut mind.current_goal { [INFO] [stderr] 192 | | Some((_, strategy)) => { [INFO] [stderr] ... | [INFO] [stderr] 202 | | } [INFO] [stderr] 203 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #34537 [INFO] [stderr] [INFO] [stderr] warning: private trait `Event` in public interface (error E0445) [INFO] [stderr] --> src/agent/daemons.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | / fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stderr] 11 | | vec![] [INFO] [stderr] 12 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #34537 [INFO] [stderr] [INFO] [stderr] warning: private trait `Event` in public interface (error E0445) [INFO] [stderr] --> src/agent/daemons.rs:63:5 [INFO] [stderr] | [INFO] [stderr] 63 | / fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stderr] 64 | | vec![ [INFO] [stderr] 65 | | Box::new(events::DieEvent { agent: agent.id }) [INFO] [stderr] 66 | | ] [INFO] [stderr] 67 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #34537 [INFO] [stderr] [INFO] [stderr] warning: private trait `Event` in public interface (error E0445) [INFO] [stderr] --> src/agent/daemons.rs:98:5 [INFO] [stderr] | [INFO] [stderr] 98 | / fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stderr] 99 | | if agent.health.borrow().sleepiness > 1.0 { [INFO] [stderr] 100 | | vec![ [INFO] [stderr] 101 | | Box::new(events::NapEvent { agent: agent.id }) [INFO] [stderr] ... | [INFO] [stderr] 107 | | } [INFO] [stderr] 108 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #34537 [INFO] [stderr] [INFO] [stderr] warning: private trait `Event` in public interface (error E0445) [INFO] [stderr] --> src/agent/daemons.rs:140:5 [INFO] [stderr] | [INFO] [stderr] 140 | / fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stderr] 141 | | vec![ [INFO] [stderr] 142 | | Box::new(events::DefecateEvent { agent: agent.id }) [INFO] [stderr] 143 | | ] [INFO] [stderr] 144 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #34537 [INFO] [stderr] [INFO] [stderr] warning: private trait `Event` in public interface (error E0445) [INFO] [stderr] --> src/agent/daemons.rs:184:5 [INFO] [stderr] | [INFO] [stderr] 184 | / fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stderr] 185 | | vec![ [INFO] [stderr] 186 | | Box::new(events::MeetEvent { agent: agent.id, other: self.encounter.get().unwrap() }) [INFO] [stderr] 187 | | ] [INFO] [stderr] 188 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #34537 [INFO] [stderr] [INFO] [stderr] warning: private trait `Event` in public interface (error E0445) [INFO] [stderr] --> src/agent/mod.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | pub events: Vec>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #34537 [INFO] [stderr] [INFO] [stderr] warning: private trait `Event` in public interface (error E0445) [INFO] [stderr] --> src/agent/mod.rs:54:5 [INFO] [stderr] | [INFO] [stderr] 54 | / pub fn step_simulation(&self, world: &World) -> Vec> { [INFO] [stderr] 55 | | let mut rng = rand::thread_rng(); [INFO] [stderr] 56 | | let mut daemon_urgency: Vec = Vec::with_capacity(self.daemons.len()); [INFO] [stderr] 57 | | let mut potential_daemons = Vec::with_capacity(self.daemons.len()); [INFO] [stderr] ... | [INFO] [stderr] 77 | | } [INFO] [stderr] 78 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #34537 [INFO] [stderr] [INFO] [stderr] warning: static is never used: `FEMALE_FIRST_NAMES` [INFO] [stderr] --> src/agent/names.rs:5:1 [INFO] [stderr] | [INFO] [stderr] 5 | static FEMALE_FIRST_NAMES: &'static [&str] = &["Emma", "Olivia", "Ava", "Isabella", "Sophia", "Mia", "Charlotte", "Amelia", "Evelyn", "Abigail", "Dorothy", "Margaret", "Susan", "Maria", "Jennifer", "Elizabeth", "Barbara", "Linda", "Patricia", "Mary", "Mariana", "Valentina", "Isabella", "Sofía", "Valeria", "Gabriela", "Sara", "Salomé", "Daniela... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `female_name` [INFO] [stderr] --> src/agent/names.rs:17:8 [INFO] [stderr] | [INFO] [stderr] 17 | pub fn female_name() -> String { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 39 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::hash_map::Entry` [INFO] [stderr] --> src/agent/daemons.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::collections::hash_map::Entry; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `rand::seq::IteratorRandom` [INFO] [stderr] --> src/agent/mod.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use rand::seq::IteratorRandom; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::vec::Vec::::remove_item': Removing the first item equal to a needle is already easily possible with iterators and the current Vec methods. Furthermore, having a method for one particular case of removal (linear search, only the first item, no swap remove) but not for others is inconsistent. This method will be removed soon. [INFO] [stderr] --> src/lib.rs:162:23 [INFO] [stderr] | [INFO] [stderr] 162 | the_greenwood.remove_item(&seed); [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::vec::Vec::::remove_item': Removing the first item equal to a needle is already easily possible with iterators and the current Vec methods. Furthermore, having a method for one particular case of removal (linear search, only the first item, no swap remove) but not for others is inconsistent. This method will be removed soon. [INFO] [stderr] --> src/agent/events.rs:16:44 [INFO] [stderr] | [INFO] [stderr] 16 | world.locations[self.start].agents.remove_item(&self.agent); [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `rand::seq::IteratorRandom` [INFO] [stderr] --> src/lib.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use rand::seq::IteratorRandom; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> src/lib.rs:36:21 [INFO] [stderr] | [INFO] [stderr] 36 | fn apply(&self, world: &mut World) { } [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> src/lib.rs:37:25 [INFO] [stderr] | [INFO] [stderr] 37 | fn to_string(&self, world: &World) -> String { "".to_string() } [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rng` [INFO] [stderr] --> src/lib.rs:61:13 [INFO] [stderr] | [INFO] [stderr] 61 | let mut rng = rand::thread_rng(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `item_id` [INFO] [stderr] --> src/lib.rs:70:13 [INFO] [stderr] | [INFO] [stderr] 70 | let mut item_id = 0; [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_item_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> src/agent/events.rs:63:25 [INFO] [stderr] | [INFO] [stderr] 63 | fn to_string(&self, world: &World) -> String { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> src/agent/events.rs:100:25 [INFO] [stderr] | [INFO] [stderr] 100 | fn to_string(&self, world: &World) -> String { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> src/agent/events.rs:116:25 [INFO] [stderr] | [INFO] [stderr] 116 | fn to_string(&self, world: &World) -> String { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> src/agent/events.rs:132:25 [INFO] [stderr] | [INFO] [stderr] 132 | fn to_string(&self, world: &World) -> String { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> src/agent/events.rs:178:25 [INFO] [stderr] | [INFO] [stderr] 178 | fn to_string(&self, world: &World) -> String { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `agent` [INFO] [stderr] --> src/agent/executive.rs:143:43 [INFO] [stderr] | [INFO] [stderr] 143 | ... payload: |agent, _| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_agent` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `agent` [INFO] [stderr] --> src/agent/daemons.rs:10:22 [INFO] [stderr] | [INFO] [stderr] 10 | fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_agent` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> src/agent/daemons.rs:10:37 [INFO] [stderr] | [INFO] [stderr] 10 | fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> src/agent/daemons.rs:63:37 [INFO] [stderr] | [INFO] [stderr] 63 | fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `goal` [INFO] [stderr] --> src/agent/daemons.rs:88:17 [INFO] [stderr] | [INFO] [stderr] 88 | let goal = mind.goals.remove(&executive::Goal::Rest); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_goal` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> src/agent/daemons.rs:98:37 [INFO] [stderr] | [INFO] [stderr] 98 | fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> src/agent/daemons.rs:140:37 [INFO] [stderr] | [INFO] [stderr] 140 | fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cheer` [INFO] [stderr] --> src/agent/daemons.rs:174:13 [INFO] [stderr] | [INFO] [stderr] 174 | let cheer = mind.cheer; [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_cheer` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> src/agent/daemons.rs:184:37 [INFO] [stderr] | [INFO] [stderr] 184 | fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/lib.rs:61:13 [INFO] [stderr] | [INFO] [stderr] 61 | let mut rng = rand::thread_rng(); [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: variable does not need to be mutable [INFO] [stderr] --> src/lib.rs:70:13 [INFO] [stderr] | [INFO] [stderr] 70 | let mut item_id = 0; [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/agent/daemons.rs:173:13 [INFO] [stderr] | [INFO] [stderr] 173 | let mut mind = agent.mind.borrow_mut(); [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: private trait `Event` in public interface (error E0445) [INFO] [stderr] --> src/agent/executive.rs:9:16 [INFO] [stderr] | [INFO] [stderr] 9 | Complete { events: Vec> }, [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: private trait `Event` in public interface (error E0445) [INFO] [stderr] --> src/agent/executive.rs:10:18 [INFO] [stderr] | [INFO] [stderr] 10 | Incomplete { events: Vec> }, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #34537 [INFO] [stderr] [INFO] [stderr] warning: private trait `Event` in public interface (error E0445) [INFO] [stderr] --> src/agent/executive.rs:35:1 [INFO] [stderr] | [INFO] [stderr] 35 | / pub fn wander(agent: &Agent, world: &World) -> Box { [INFO] [stderr] 36 | | let mut rng = rand::thread_rng(); [INFO] [stderr] 37 | | let new_loc = *world.locations[agent.location].exits.choose(&mut rng).unwrap_or(&agent.location); [INFO] [stderr] 38 | | Box::new(events::MoveEvent { start: agent.location, end: new_loc, agent: agent.id }) [INFO] [stderr] 39 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #34537 [INFO] [stderr] [INFO] [stderr] warning: private trait `Event` in public interface (error E0445) [INFO] [stderr] --> src/agent/executive.rs:189:5 [INFO] [stderr] | [INFO] [stderr] 189 | / fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stderr] 190 | | let mut mind = agent.mind.borrow_mut(); [INFO] [stderr] 191 | | match &mut mind.current_goal { [INFO] [stderr] 192 | | Some((_, strategy)) => { [INFO] [stderr] ... | [INFO] [stderr] 202 | | } [INFO] [stderr] 203 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #34537 [INFO] [stderr] [INFO] [stderr] warning: private trait `Event` in public interface (error E0445) [INFO] [stderr] --> src/agent/daemons.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | / fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stderr] 11 | | vec![] [INFO] [stderr] 12 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #34537 [INFO] [stderr] [INFO] [stderr] warning: private trait `Event` in public interface (error E0445) [INFO] [stderr] --> src/agent/daemons.rs:63:5 [INFO] [stderr] | [INFO] [stderr] 63 | / fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stderr] 64 | | vec![ [INFO] [stderr] 65 | | Box::new(events::DieEvent { agent: agent.id }) [INFO] [stderr] 66 | | ] [INFO] [stderr] 67 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #34537 [INFO] [stderr] [INFO] [stderr] warning: private trait `Event` in public interface (error E0445) [INFO] [stderr] --> src/agent/daemons.rs:98:5 [INFO] [stderr] | [INFO] [stderr] 98 | / fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stderr] 99 | | if agent.health.borrow().sleepiness > 1.0 { [INFO] [stderr] 100 | | vec![ [INFO] [stderr] 101 | | Box::new(events::NapEvent { agent: agent.id }) [INFO] [stderr] ... | [INFO] [stderr] 107 | | } [INFO] [stderr] 108 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #34537 [INFO] [stderr] [INFO] [stderr] warning: private trait `Event` in public interface (error E0445) [INFO] [stderr] --> src/agent/daemons.rs:140:5 [INFO] [stderr] | [INFO] [stderr] 140 | / fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stderr] 141 | | vec![ [INFO] [stderr] 142 | | Box::new(events::DefecateEvent { agent: agent.id }) [INFO] [stderr] 143 | | ] [INFO] [stderr] 144 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #34537 [INFO] [stderr] [INFO] [stderr] warning: private trait `Event` in public interface (error E0445) [INFO] [stderr] --> src/agent/daemons.rs:184:5 [INFO] [stderr] | [INFO] [stderr] 184 | / fn events(&self, agent: &Agent, world: &World) -> Vec> { [INFO] [stderr] 185 | | vec![ [INFO] [stderr] 186 | | Box::new(events::MeetEvent { agent: agent.id, other: self.encounter.get().unwrap() }) [INFO] [stderr] 187 | | ] [INFO] [stderr] 188 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #34537 [INFO] [stderr] [INFO] [stderr] warning: private trait `Event` in public interface (error E0445) [INFO] [stderr] --> src/agent/mod.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | pub events: Vec>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #34537 [INFO] [stderr] [INFO] [stderr] warning: private trait `Event` in public interface (error E0445) [INFO] [stderr] --> src/agent/mod.rs:54:5 [INFO] [stderr] | [INFO] [stderr] 54 | / pub fn step_simulation(&self, world: &World) -> Vec> { [INFO] [stderr] 55 | | let mut rng = rand::thread_rng(); [INFO] [stderr] 56 | | let mut daemon_urgency: Vec = Vec::with_capacity(self.daemons.len()); [INFO] [stderr] 57 | | let mut potential_daemons = Vec::with_capacity(self.daemons.len()); [INFO] [stderr] ... | [INFO] [stderr] 77 | | } [INFO] [stderr] 78 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #34537 [INFO] [stderr] [INFO] [stderr] warning: static is never used: `FEMALE_FIRST_NAMES` [INFO] [stderr] --> src/agent/names.rs:5:1 [INFO] [stderr] | [INFO] [stderr] 5 | static FEMALE_FIRST_NAMES: &'static [&str] = &["Emma", "Olivia", "Ava", "Isabella", "Sophia", "Mia", "Charlotte", "Amelia", "Evelyn", "Abigail", "Dorothy", "Margaret", "Susan", "Maria", "Jennifer", "Elizabeth", "Barbara", "Linda", "Patricia", "Mary", "Mariana", "Valentina", "Isabella", "Sofía", "Valeria", "Gabriela", "Sara", "Salomé", "Daniela... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `female_name` [INFO] [stderr] --> src/agent/names.rs:17:8 [INFO] [stderr] | [INFO] [stderr] 17 | pub fn female_name() -> String { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 39 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/main.rs:21:95 [INFO] [stderr] | [INFO] [stderr] 21 | let agent_time = w.agents.iter().map(|a| a.total_time.get() ).fold(0.0, |acc, x| acc + x);; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> src/location_graph.rs:11:55 [INFO] [stderr] | [INFO] [stderr] 11 | pub fn render_to(locations: &Vec, world: &World, output: &mut W) { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.11s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/novel_gen-280003e9aaea99a3 [INFO] [stdout] [INFO] [stderr] Running /opt/rustwide/target/debug/deps/nanogenmo_2018-9106b979e72dc2ce [INFO] [stdout] running 0 tests [INFO] [stderr] Doc-tests novel_gen [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "f03b2dfc1af73f5e52ae1c84cbc08995c7f3287d94d4ff81ff8c1c4cd47dac61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f03b2dfc1af73f5e52ae1c84cbc08995c7f3287d94d4ff81ff8c1c4cd47dac61", kill_on_drop: false }` [INFO] [stdout] f03b2dfc1af73f5e52ae1c84cbc08995c7f3287d94d4ff81ff8c1c4cd47dac61