[INFO] updating cached repository succcubbus/twodbattle [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/succcubbus/twodbattle [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/succcubbus/twodbattle" "work/ex/pr-57967/sources/master#c1c3c4e95b69dfeaca5c5db6c622d7f90ad30a54/gh/succcubbus/twodbattle"` [INFO] [stderr] Cloning into 'work/ex/pr-57967/sources/master#c1c3c4e95b69dfeaca5c5db6c622d7f90ad30a54/gh/succcubbus/twodbattle'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/succcubbus/twodbattle" "work/ex/pr-57967/sources/try#7fea0229842e79db1159ea58ad9a653b288efee9/gh/succcubbus/twodbattle"` [INFO] [stderr] Cloning into 'work/ex/pr-57967/sources/try#7fea0229842e79db1159ea58ad9a653b288efee9/gh/succcubbus/twodbattle'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 3d0271b5a2b56d92bdb61022084f1cbbaa50df72 [INFO] sha for GitHub repo succcubbus/twodbattle: 3d0271b5a2b56d92bdb61022084f1cbbaa50df72 [INFO] validating manifest of succcubbus/twodbattle on toolchain master#c1c3c4e95b69dfeaca5c5db6c622d7f90ad30a54 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+c1c3c4e95b69dfeaca5c5db6c622d7f90ad30a54-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of succcubbus/twodbattle on toolchain try#7fea0229842e79db1159ea58ad9a653b288efee9 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+7fea0229842e79db1159ea58ad9a653b288efee9-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing succcubbus/twodbattle [INFO] finished frobbing succcubbus/twodbattle [INFO] frobbed toml for succcubbus/twodbattle written to work/ex/pr-57967/sources/master#c1c3c4e95b69dfeaca5c5db6c622d7f90ad30a54/gh/succcubbus/twodbattle/Cargo.toml [INFO] started frobbing succcubbus/twodbattle [INFO] finished frobbing succcubbus/twodbattle [INFO] frobbed toml for succcubbus/twodbattle written to work/ex/pr-57967/sources/try#7fea0229842e79db1159ea58ad9a653b288efee9/gh/succcubbus/twodbattle/Cargo.toml [INFO] crate succcubbus/twodbattle has a lockfile. skipping [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+c1c3c4e95b69dfeaca5c5db6c622d7f90ad30a54-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+7fea0229842e79db1159ea58ad9a653b288efee9-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] testing succcubbus/twodbattle against try#7fea0229842e79db1159ea58ad9a653b288efee9 for pr-57967 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/pr-57967/worker-1/try#7fea0229842e79db1159ea58ad9a653b288efee9:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/pr-57967/sources/try#7fea0229842e79db1159ea58ad9a653b288efee9/gh/succcubbus/twodbattle:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+7fea0229842e79db1159ea58ad9a653b288efee9-alt" "build" "--frozen"` [INFO] [stdout] ef508453f0d3f6f4a95b40eb28604f051e25bc07152c43fc88b5fedf8dc9ad04 [INFO] running `"docker" "start" "-a" "ef508453f0d3f6f4a95b40eb28604f051e25bc07152c43fc88b5fedf8dc9ad04"` [INFO] [stderr] Compiling xml-rs v0.8.0 [INFO] [stderr] Compiling khronos_api v3.0.0 [INFO] [stderr] Compiling same-file v1.0.4 [INFO] [stderr] Compiling arrayvec v0.4.7 [INFO] [stderr] Compiling memmap v0.6.2 [INFO] [stderr] Compiling shared_library v0.1.9 [INFO] [stderr] Compiling rand_isaac v0.1.0 [INFO] [stderr] Compiling x11-dl v2.18.3 [INFO] [stderr] Compiling piston-viewport v0.4.0 [INFO] [stderr] Compiling libloading v0.5.0 [INFO] [stderr] Compiling smallvec v0.6.5 [INFO] [stderr] Compiling walkdir v2.2.7 [INFO] [stderr] Compiling osmesa-sys v0.1.2 [INFO] [stderr] Compiling rayon v1.0.3 [INFO] [stderr] Compiling rand v0.6.0 [INFO] [stderr] Compiling approx v0.3.0 [INFO] [stderr] Compiling line_drawing v0.7.0 [INFO] [stderr] Compiling gl_generator v0.9.0 [INFO] [stderr] Compiling syn v0.15.20 [INFO] [stderr] Compiling crossbeam-epoch v0.3.1 [INFO] [stderr] Compiling num-rational v0.2.1 [INFO] [stderr] Compiling ordered-float v0.5.2 [INFO] [stderr] Compiling rusttype v0.7.2 [INFO] [stderr] Compiling parking_lot_core v0.3.1 [INFO] [stderr] Compiling png v0.12.0 [INFO] [stderr] Compiling dlib v0.4.1 [INFO] [stderr] Compiling rusttype v0.5.2 [INFO] [stderr] Compiling crossbeam-deque v0.2.0 [INFO] [stderr] Compiling parking_lot v0.6.4 [INFO] [stderr] Compiling wayland-scanner v0.21.4 [INFO] [stderr] Compiling gl_generator v0.10.0 [INFO] [stderr] Compiling andrew v0.1.4 [INFO] [stderr] Compiling gl v0.10.0 [INFO] [stderr] Compiling wayland-sys v0.21.4 [INFO] [stderr] Compiling rayon-core v1.4.1 [INFO] [stderr] Compiling piston2d-graphics v0.27.0 [INFO] [stderr] Compiling wayland-client v0.21.4 [INFO] [stderr] Compiling wayland-protocols v0.21.4 [INFO] [stderr] Compiling glutin v0.19.0 [INFO] [stderr] Compiling serde_derive v1.0.80 [INFO] [stderr] Compiling num-derive v0.2.3 [INFO] [stderr] Compiling wayland-commons v0.21.4 [INFO] [stderr] Compiling tiff v0.2.1 [INFO] [stderr] Compiling jpeg-decoder v0.1.15 [INFO] [stderr] Compiling image v0.20.1 [INFO] [stderr] Compiling pistoncore-input v0.22.0 [INFO] [stderr] Compiling smithay-client-toolkit v0.4.1 [INFO] [stderr] Compiling pistoncore-window v0.33.0 [INFO] [stderr] Compiling pistoncore-event_loop v0.38.0 [INFO] [stderr] Compiling piston v0.38.0 [INFO] [stderr] Compiling winit v0.18.0 [INFO] [stderr] Compiling piston2d-opengl_graphics v0.55.0 [INFO] [stderr] Compiling pistoncore-glutin_window v0.50.0 [INFO] [stderr] Compiling twodbattle v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: unused import: `mouse::MouseButton` [INFO] [stderr] --> src/player_controller.rs:2:83 [INFO] [stderr] | [INFO] [stderr] 2 | use piston::input::{keyboard::Key, Button, ButtonArgs, ButtonState, GenericEvent, mouse::MouseButton}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Player` [INFO] [stderr] --> src/shot.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use Player; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `ButtonState` [INFO] [stderr] --> src/shot_controller.rs:1:61 [INFO] [stderr] | [INFO] [stderr] 1 | use piston::input::{mouse::MouseButton, Button, ButtonArgs, ButtonState, GenericEvent}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `u` [INFO] [stderr] --> src/map_controller.rs:14:21 [INFO] [stderr] | [INFO] [stderr] 14 | if let Some(u) = e.update_args() {} [INFO] [stderr] | ^ help: consider prefixing with an underscore: `_u` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_variables)] on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `shot` [INFO] [stderr] --> src/shot_controller.rs:31:26 [INFO] [stderr] | [INFO] [stderr] 31 | fn update(&mut self, shot: &Shot, dt: f64) {} [INFO] [stderr] | ^^^^ help: consider prefixing with an underscore: `_shot` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `dt` [INFO] [stderr] --> src/shot_controller.rs:31:39 [INFO] [stderr] | [INFO] [stderr] 31 | fn update(&mut self, shot: &Shot, dt: f64) {} [INFO] [stderr] | ^^ help: consider prefixing with an underscore: `_dt` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `shot` [INFO] [stderr] --> src/shot_controller.rs:33:35 [INFO] [stderr] | [INFO] [stderr] 33 | fn check_collision(&mut self, shot: &Shot, map: &Map, dt: f64) {} [INFO] [stderr] | ^^^^ help: consider prefixing with an underscore: `_shot` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `map` [INFO] [stderr] --> src/shot_controller.rs:33:48 [INFO] [stderr] | [INFO] [stderr] 33 | fn check_collision(&mut self, shot: &Shot, map: &Map, dt: f64) {} [INFO] [stderr] | ^^^ help: consider prefixing with an underscore: `_map` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `dt` [INFO] [stderr] --> src/shot_controller.rs:33:59 [INFO] [stderr] | [INFO] [stderr] 33 | fn check_collision(&mut self, shot: &Shot, map: &Map, dt: f64) {} [INFO] [stderr] | ^^ help: consider prefixing with an underscore: `_dt` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `shot` [INFO] [stderr] --> src/shot_controller.rs:35:26 [INFO] [stderr] | [INFO] [stderr] 35 | fn motion(&mut self, shot: &Shot, dt: f64) {} [INFO] [stderr] | ^^^^ help: consider prefixing with an underscore: `_shot` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `dt` [INFO] [stderr] --> src/shot_controller.rs:35:39 [INFO] [stderr] | [INFO] [stderr] 35 | fn motion(&mut self, shot: &Shot, dt: f64) {} [INFO] [stderr] | ^^ help: consider prefixing with an underscore: `_dt` [INFO] [stderr] [INFO] [stderr] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stderr] --> src/shot_controller.rs:20:17 [INFO] [stderr] | [INFO] [stderr] 19 | for shot in self.shots.iter_mut() { [INFO] [stderr] | ---------- - first borrow ends here [INFO] [stderr] | | [INFO] [stderr] | first mutable borrow occurs here [INFO] [stderr] 20 | self.update(&shot, tick.dt); [INFO] [stderr] | ^^^^ second mutable borrow occurs here [INFO] [stderr] [INFO] [stderr] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stderr] --> src/shot_controller.rs:21:17 [INFO] [stderr] | [INFO] [stderr] 19 | for shot in self.shots.iter_mut() { [INFO] [stderr] | ---------- - first borrow ends here [INFO] [stderr] | | [INFO] [stderr] | first mutable borrow occurs here [INFO] [stderr] 20 | self.update(&shot, tick.dt); [INFO] [stderr] 21 | self.check_collision(&shot, map, tick.dt); [INFO] [stderr] | ^^^^ second mutable borrow occurs here [INFO] [stderr] [INFO] [stderr] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stderr] --> src/shot_controller.rs:22:17 [INFO] [stderr] | [INFO] [stderr] 19 | for shot in self.shots.iter_mut() { [INFO] [stderr] | ---------- - first borrow ends here [INFO] [stderr] | | [INFO] [stderr] | first mutable borrow occurs here [INFO] [stderr] ... [INFO] [stderr] 22 | self.motion(&shot, tick.dt); [INFO] [stderr] | ^^^^ second mutable borrow occurs here [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0499`. [INFO] [stderr] error: Could not compile `twodbattle`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "ef508453f0d3f6f4a95b40eb28604f051e25bc07152c43fc88b5fedf8dc9ad04"` [INFO] running `"docker" "rm" "-f" "ef508453f0d3f6f4a95b40eb28604f051e25bc07152c43fc88b5fedf8dc9ad04"` [INFO] [stdout] ef508453f0d3f6f4a95b40eb28604f051e25bc07152c43fc88b5fedf8dc9ad04