[INFO] cloning repository https://github.com/johndgiese/altera [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/johndgiese/altera" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjohndgiese%2Faltera", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjohndgiese%2Faltera'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e47518b99f20c18fa9755c2f571ef0400fb69869 [INFO] testing johndgiese/altera against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjohndgiese%2Faltera" "/workspace/builds/worker-67/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-67/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/johndgiese/altera on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/johndgiese/altera [INFO] finished tweaking git repo https://github.com/johndgiese/altera [INFO] tweaked toml for git repo https://github.com/johndgiese/altera written to /workspace/builds/worker-67/source/Cargo.toml [INFO] crate git repo https://github.com/johndgiese/altera already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-67/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-67/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 60322fdbd9a845225a7b3c3b7ad708479c0a5373d2208eca81436f443b609e05 [INFO] running `Command { std: "docker" "start" "-a" "60322fdbd9a845225a7b3c3b7ad708479c0a5373d2208eca81436f443b609e05", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "60322fdbd9a845225a7b3c3b7ad708479c0a5373d2208eca81436f443b609e05", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "60322fdbd9a845225a7b3c3b7ad708479c0a5373d2208eca81436f443b609e05", kill_on_drop: false }` [INFO] [stdout] 60322fdbd9a845225a7b3c3b7ad708479c0a5373d2208eca81436f443b609e05 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-67/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-67/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 32578daa10a0ce3fbb8bb2239662f9f8660720d7edaf9e43196d7f37e4010be4 [INFO] running `Command { std: "docker" "start" "-a" "32578daa10a0ce3fbb8bb2239662f9f8660720d7edaf9e43196d7f37e4010be4", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.122 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling altera v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `view` [INFO] [stdout] --> src/main.rs:91:19 [INFO] [stdout] | [INFO] [stdout] 91 | fn act(&self, view: View) -> Action { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_view` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/main.rs:197:30 [INFO] [stdout] | [INFO] [stdout] 197 | Some(Thing::Nook(other, _)) => false, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nook` [INFO] [stdout] --> src/main.rs:342:25 [INFO] [stdout] | [INFO] [stdout] 342 | while let Some((nook, position, age)) = self.next_nook(age) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_nook` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `direction` [INFO] [stdout] --> src/main.rs:349:36 [INFO] [stdout] | [INFO] [stdout] 349 | Some(Action::Split(direction)) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_direction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/main.rs:215:17 [INFO] [stdout] | [INFO] [stdout] 207 | match self.map.get(&meal_position) { [INFO] [stdout] | ---------------------------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 215 | self.fatten_nook(position, other.weight); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^------------^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `self.map` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/main.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 228 | let (mut nook, age) = match self.map.get(position) { [INFO] [stdout] | ---------------------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 241 | self.map.insert(*position, Thing::Nook(nook, *age)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^----^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:423:9 [INFO] [stdout] | [INFO] [stdout] 423 | let mut map = HashMap::new(); [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/main.rs:428:9 [INFO] [stdout] | [INFO] [stdout] 428 | let mut world = World { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Up` [INFO] [stdout] --> src/main.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | Up, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Direction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:58:10 [INFO] [stdout] | [INFO] [stdout] 58 | #[derive(Debug, Copy, Clone, PartialEq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Left` [INFO] [stdout] --> src/main.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Direction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:58:10 [INFO] [stdout] | [INFO] [stdout] 58 | #[derive(Debug, Copy, Clone, PartialEq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Down` [INFO] [stdout] --> src/main.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | Down, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Direction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:58:10 [INFO] [stdout] | [INFO] [stdout] 58 | #[derive(Debug, Copy, Clone, PartialEq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Right` [INFO] [stdout] --> src/main.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | Right, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Direction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:58:10 [INFO] [stdout] | [INFO] [stdout] 58 | #[derive(Debug, Copy, Clone, PartialEq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Move` [INFO] [stdout] --> src/main.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 105 | Move(Direction), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:103:10 [INFO] [stdout] | [INFO] [stdout] 103 | #[derive(Debug, Copy, Clone, PartialEq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Eat` [INFO] [stdout] --> src/main.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | Eat(Direction), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:103:10 [INFO] [stdout] | [INFO] [stdout] 103 | #[derive(Debug, Copy, Clone, PartialEq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Split` [INFO] [stdout] --> src/main.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 107 | Split(Direction), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:103:10 [INFO] [stdout] | [INFO] [stdout] 103 | #[derive(Debug, Copy, Clone, PartialEq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `rng` [INFO] [stdout] --> src/main.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | rng: ChaChaRng, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `starve_nooks` [INFO] [stdout] --> src/main.rs:244:8 [INFO] [stdout] | [INFO] [stdout] 244 | fn starve_nooks(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `distribute_food` [INFO] [stdout] --> src/main.rs:264:8 [INFO] [stdout] | [INFO] [stdout] 264 | fn distribute_food(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `total_weight` [INFO] [stdout] --> src/main.rs:303:8 [INFO] [stdout] | [INFO] [stdout] 303 | fn total_weight(&self) -> u128 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `num_nooks` [INFO] [stdout] --> src/main.rs:312:8 [INFO] [stdout] | [INFO] [stdout] 312 | fn num_nooks(&self) -> isize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `num_empty` [INFO] [stdout] --> src/main.rs:321:8 [INFO] [stdout] | [INFO] [stdout] 321 | fn num_empty(&self) -> isize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `world_from_func` [INFO] [stdout] --> src/main.rs:408:4 [INFO] [stdout] | [INFO] [stdout] 408 | fn world_from_func(ny: isize, nx: isize, func: F) -> World [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 7.56s [INFO] running `Command { std: "docker" "inspect" "32578daa10a0ce3fbb8bb2239662f9f8660720d7edaf9e43196d7f37e4010be4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "32578daa10a0ce3fbb8bb2239662f9f8660720d7edaf9e43196d7f37e4010be4", kill_on_drop: false }` [INFO] [stdout] 32578daa10a0ce3fbb8bb2239662f9f8660720d7edaf9e43196d7f37e4010be4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-67/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-67/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c18fb053331c24c81712844865adf391d3f8fa3de9549eae4b121af848ecddd4 [INFO] running `Command { std: "docker" "start" "-a" "c18fb053331c24c81712844865adf391d3f8fa3de9549eae4b121af848ecddd4", kill_on_drop: false }` [INFO] [stderr] Compiling altera v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.79s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/altera-5247808db9d03bdb) [INFO] [stdout] warning: unused variable: `view` [INFO] [stdout] --> src/main.rs:91:19 [INFO] [stdout] | [INFO] [stdout] 91 | fn act(&self, view: View) -> Action { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_view` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/main.rs:197:30 [INFO] [stdout] | [INFO] [stdout] 197 | Some(Thing::Nook(other, _)) => false, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nook` [INFO] [stdout] --> src/main.rs:342:25 [INFO] [stdout] | [INFO] [stdout] 342 | while let Some((nook, position, age)) = self.next_nook(age) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_nook` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `direction` [INFO] [stdout] --> src/main.rs:349:36 [INFO] [stdout] | [INFO] [stdout] 349 | Some(Action::Split(direction)) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_direction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/main.rs:215:17 [INFO] [stdout] | [INFO] [stdout] 207 | match self.map.get(&meal_position) { [INFO] [stdout] | ---------------------------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 215 | self.fatten_nook(position, other.weight); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^------------^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `self.map` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/main.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 228 | let (mut nook, age) = match self.map.get(position) { [INFO] [stdout] | ---------------------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 241 | self.map.insert(*position, Thing::Nook(nook, *age)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^----^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:423:9 [INFO] [stdout] | [INFO] [stdout] 423 | let mut map = HashMap::new(); [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/main.rs:428:9 [INFO] [stdout] | [INFO] [stdout] 428 | let mut world = World { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Move` [INFO] [stdout] --> src/main.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 105 | Move(Direction), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:103:10 [INFO] [stdout] | [INFO] [stdout] 103 | #[derive(Debug, Copy, Clone, PartialEq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Eat` [INFO] [stdout] --> src/main.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | Eat(Direction), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:103:10 [INFO] [stdout] | [INFO] [stdout] 103 | #[derive(Debug, Copy, Clone, PartialEq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Split` [INFO] [stdout] --> src/main.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 107 | Split(Direction), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:103:10 [INFO] [stdout] | [INFO] [stdout] 103 | #[derive(Debug, Copy, Clone, PartialEq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "c18fb053331c24c81712844865adf391d3f8fa3de9549eae4b121af848ecddd4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c18fb053331c24c81712844865adf391d3f8fa3de9549eae4b121af848ecddd4", kill_on_drop: false }` [INFO] [stdout] c18fb053331c24c81712844865adf391d3f8fa3de9549eae4b121af848ecddd4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-67/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-67/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a97a852e0fac8c21024fb0423f75a53b0999d95ae6a5bfeb5a710d768afe9336 [INFO] running `Command { std: "docker" "start" "-a" "a97a852e0fac8c21024fb0423f75a53b0999d95ae6a5bfeb5a710d768afe9336", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stdout] [INFO] [stderr] warning: unused variable: `view` [INFO] [stdout] running 17 tests [INFO] [stderr] --> src/main.rs:91:19 [INFO] [stdout] test modulo::test::big_number_works ... ok [INFO] [stderr] | [INFO] [stdout] test modulo::test::larger_than_modulus_works ... ok [INFO] [stderr] 91 | fn act(&self, view: View) -> Action { [INFO] [stdout] test modulo::test::smaller_than_modulus_works ... ok [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_view` [INFO] [stdout] test test_add_and_remove_nooks ... ok [INFO] [stderr] | [INFO] [stdout] test test_move_to ... ok [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] test test_get_view ... ok [INFO] [stderr] [INFO] [stdout] test modulo::test::megative_works ... ok [INFO] [stderr] warning: unused variable: `other` [INFO] [stdout] test test_distribute_food_blank ... ok [INFO] [stderr] --> src/main.rs:197:30 [INFO] [stdout] test test_nook_eat_empty ... ok [INFO] [stderr] | [INFO] [stdout] test test_nook_eat_food ... ok [INFO] [stderr] 197 | Some(Thing::Nook(other, _)) => false, [INFO] [stdout] test test_nook_eat_heavy_nook ... ok [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] test test_nook_eat_nook ... ok [INFO] [stderr] [INFO] [stdout] test test_nook_eat_overflow_food ... ok [INFO] [stderr] warning: unused variable: `nook` [INFO] [stdout] test test_single_nook_world ... ok [INFO] [stderr] --> src/main.rs:342:25 [INFO] [stdout] test test_total_weight ... ok [INFO] [stderr] | [INFO] [stdout] test test_starve_nooks ... ok [INFO] [stderr] 342 | while let Some((nook, position, age)) = self.next_nook(age) { [INFO] [stdout] test test_nook_move ... ok [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_nook` [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] test result: ok. 17 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stderr] warning: unused variable: `direction` [INFO] [stdout] [INFO] [stderr] --> src/main.rs:349:36 [INFO] [stderr] | [INFO] [stderr] 349 | Some(Action::Split(direction)) => { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_direction` [INFO] [stderr] [INFO] [stderr] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stderr] --> src/main.rs:215:17 [INFO] [stderr] | [INFO] [stderr] 207 | match self.map.get(&meal_position) { [INFO] [stderr] | ---------------------------- immutable borrow occurs here [INFO] [stderr] ... [INFO] [stderr] 215 | self.fatten_nook(position, other.weight); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^------------^ [INFO] [stderr] | | | [INFO] [stderr] | | immutable borrow later used here [INFO] [stderr] | mutable borrow occurs here [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stderr] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stderr] = note: for more information, see issue #59159 [INFO] [stderr] [INFO] [stderr] warning: cannot borrow `self.map` as mutable because it is also borrowed as immutable [INFO] [stderr] --> src/main.rs:241:9 [INFO] [stderr] | [INFO] [stderr] 228 | let (mut nook, age) = match self.map.get(position) { [INFO] [stderr] | ---------------------- immutable borrow occurs here [INFO] [stderr] ... [INFO] [stderr] 241 | self.map.insert(*position, Thing::Nook(nook, *age)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^----^^ [INFO] [stderr] | | | [INFO] [stderr] | | immutable borrow later used here [INFO] [stderr] | mutable borrow occurs here [INFO] [stderr] | [INFO] [stderr] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stderr] = note: for more information, see issue #59159 [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:423:9 [INFO] [stderr] | [INFO] [stderr] 423 | let mut map = HashMap::new(); [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/main.rs:428:9 [INFO] [stderr] | [INFO] [stderr] 428 | let mut world = World { [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Move` [INFO] [stderr] --> src/main.rs:105:5 [INFO] [stderr] | [INFO] [stderr] 105 | Move(Direction), [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] note: `Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/main.rs:103:10 [INFO] [stderr] | [INFO] [stderr] 103 | #[derive(Debug, Copy, Clone, PartialEq)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Eat` [INFO] [stderr] --> src/main.rs:106:5 [INFO] [stderr] | [INFO] [stderr] 106 | Eat(Direction), [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/main.rs:103:10 [INFO] [stderr] | [INFO] [stderr] 103 | #[derive(Debug, Copy, Clone, PartialEq)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Split` [INFO] [stderr] --> src/main.rs:107:5 [INFO] [stderr] | [INFO] [stderr] 107 | Split(Direction), [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/main.rs:103:10 [INFO] [stderr] | [INFO] [stderr] 103 | #[derive(Debug, Copy, Clone, PartialEq)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `altera` (bin "altera" test) generated 11 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 9.29s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/altera-5247808db9d03bdb) [INFO] running `Command { std: "docker" "inspect" "a97a852e0fac8c21024fb0423f75a53b0999d95ae6a5bfeb5a710d768afe9336", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a97a852e0fac8c21024fb0423f75a53b0999d95ae6a5bfeb5a710d768afe9336", kill_on_drop: false }` [INFO] [stdout] a97a852e0fac8c21024fb0423f75a53b0999d95ae6a5bfeb5a710d768afe9336