[INFO] updating cached repository eggmund/Prey [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/eggmund/Prey [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/eggmund/Prey" "work/ex/beta-1.38-1/sources/1.37.0/gh/eggmund/Prey"` [INFO] [stderr] Cloning into 'work/ex/beta-1.38-1/sources/1.37.0/gh/eggmund/Prey'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/eggmund/Prey" "work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/eggmund/Prey"` [INFO] [stderr] Cloning into 'work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/eggmund/Prey'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 368817a33c994b7b91e64f1a79df5119666b01c4 [INFO] sha for GitHub repo eggmund/Prey: 368817a33c994b7b91e64f1a79df5119666b01c4 [INFO] validating manifest of eggmund/Prey on toolchain 1.37.0 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of eggmund/Prey on toolchain beta-2019-08-13 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing eggmund/Prey [INFO] finished frobbing eggmund/Prey [INFO] frobbed toml for eggmund/Prey written to work/ex/beta-1.38-1/sources/1.37.0/gh/eggmund/Prey/Cargo.toml [INFO] started frobbing eggmund/Prey [INFO] finished frobbing eggmund/Prey [INFO] frobbed toml for eggmund/Prey written to work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/eggmund/Prey/Cargo.toml [INFO] crate eggmund/Prey already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] testing eggmund/Prey against 1.37.0 for beta-1.38-1 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-3/1.37.0:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/1.37.0/gh/eggmund/Prey:/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=warn" "-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" "+1.37.0" "build" "--frozen"` [INFO] [stdout] 3adcf6e93f777151c8d1cce841d8d7dbe9b0d8be4b449fddbade1d4b133816c7 [INFO] running `"docker" "start" "-a" "3adcf6e93f777151c8d1cce841d8d7dbe9b0d8be4b449fddbade1d4b133816c7"` [INFO] [stderr] Compiling serde v1.0.97 [INFO] [stderr] Compiling cc v1.0.38 [INFO] [stderr] Compiling spin v0.5.0 [INFO] [stderr] Compiling libc v0.2.60 [INFO] [stderr] Compiling arrayvec v0.4.11 [INFO] [stderr] Compiling syn v0.15.42 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling log v0.4.7 [INFO] [stderr] Compiling ryu v1.0.0 [INFO] [stderr] Compiling libm v0.1.4 [INFO] [stderr] Compiling pulldown-cmark v0.2.0 [INFO] [stderr] Compiling remove_dir_all v0.5.2 [INFO] [stderr] Compiling nix v0.11.1 [INFO] [stderr] Compiling bytecount v0.4.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.5 [INFO] [stderr] Compiling uuid v0.7.4 [INFO] [stderr] Compiling xi-unicode v0.1.0 [INFO] [stderr] Compiling mint v0.5.1 [INFO] [stderr] Compiling hound v3.4.0 [INFO] [stderr] Compiling claxon v0.4.2 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling num-complex v0.2.3 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling num-rational v0.2.2 [INFO] [stderr] Compiling num-iter v0.1.39 [INFO] [stderr] Compiling lazy_static v1.3.0 [INFO] [stderr] Compiling error-chain v0.12.1 [INFO] [stderr] Compiling x11-dl v2.18.3 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Compiling matrixmultiply v0.2.2 [INFO] [stderr] Compiling crossbeam-utils v0.6.6 [INFO] [stderr] Compiling c2-chacha v0.2.2 [INFO] [stderr] Compiling draw_state v0.8.0 [INFO] [stderr] Compiling ogg v0.7.0 [INFO] [stderr] Compiling jpeg-decoder v0.1.15 [INFO] [stderr] Compiling generic-array v0.12.3 [INFO] [stderr] Compiling gl_generator v0.11.0 [INFO] [stderr] Compiling wayland-scanner v0.21.13 [INFO] [stderr] Compiling nix v0.14.1 [INFO] [stderr] Compiling num_cpus v1.10.1 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling memmap v0.7.0 [INFO] [stderr] Compiling shared_library v0.1.9 [INFO] [stderr] Compiling getrandom v0.1.6 [INFO] [stderr] Compiling slice-deque v0.2.4 [INFO] [stderr] Compiling alsa-sys v0.1.2 [INFO] [stderr] Compiling dirs-sys v0.3.3 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Compiling backtrace-sys v0.1.31 [INFO] [stderr] Compiling minimp3-sys v0.3.1 [INFO] [stderr] Compiling bzip2-sys v0.1.7 [INFO] [stderr] Compiling lewton v0.9.4 [INFO] [stderr] Compiling approx v0.3.2 [INFO] [stderr] Compiling ordered-float v1.0.2 [INFO] [stderr] Compiling line_drawing v0.7.0 [INFO] [stderr] Compiling num-traits v0.1.43 [INFO] [stderr] Compiling glutin_glx_sys v0.1.5 [INFO] [stderr] Compiling glutin_egl_sys v0.1.3 [INFO] [stderr] Compiling gfx_gl v0.6.0 [INFO] [stderr] Compiling rand_core v0.5.0 [INFO] [stderr] Compiling osmesa-sys v0.1.2 [INFO] [stderr] Compiling cpal v0.8.2 [INFO] [stderr] Compiling tempdir v0.3.7 [INFO] [stderr] Compiling wayland-client v0.21.13 [INFO] [stderr] Compiling wayland-protocols v0.21.13 [INFO] [stderr] Compiling directories v2.0.1 [INFO] [stderr] Compiling sid v0.5.2 [INFO] [stderr] Compiling alga v0.9.1 [INFO] [stderr] Compiling twox-hash v1.4.2 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling serde_json v1.0.40 [INFO] [stderr] Compiling toml v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.2.1 [INFO] [stderr] Compiling gilrs-core v0.2.2 [INFO] [stderr] Compiling rand v0.7.0 [INFO] [stderr] Compiling dlib v0.4.1 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling minimp3 v0.3.3 [INFO] [stderr] Compiling backtrace v0.3.33 [INFO] [stderr] Compiling bzip2 v0.3.3 [INFO] [stderr] Compiling gilrs v0.7.1 [INFO] [stderr] Compiling wayland-sys v0.21.13 [INFO] [stderr] Compiling memoffset v0.5.1 [INFO] [stderr] Compiling parking_lot_core v0.4.0 [INFO] [stderr] Compiling nalgebra v0.18.0 [INFO] [stderr] Compiling zip v0.5.2 [INFO] [stderr] Compiling wayland-commons v0.21.13 [INFO] [stderr] Compiling crossbeam-epoch v0.7.2 [INFO] [stderr] Compiling crossbeam-deque v0.7.1 [INFO] [stderr] Compiling parking_lot v0.7.1 [INFO] [stderr] Compiling rusttype v0.7.7 [INFO] [stderr] Compiling euclid_macros v0.1.0 [INFO] [stderr] Compiling serde_derive v1.0.97 [INFO] [stderr] Compiling derivative v1.0.2 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling smart-default v0.5.2 [INFO] [stderr] Compiling andrew v0.2.1 [INFO] [stderr] Compiling glyph_brush_layout v0.1.6 [INFO] [stderr] Compiling glyph_brush v0.5.3 [INFO] [stderr] Compiling euclid v0.19.9 [INFO] [stderr] Compiling lyon_geom v0.12.7 [INFO] [stderr] Compiling tiff v0.3.1 [INFO] [stderr] Compiling gfx_core v0.9.1 [INFO] [stderr] Compiling image v0.22.0 [INFO] [stderr] Compiling lyon_path v0.13.2 [INFO] [stderr] Compiling lyon_tessellation v0.13.3 [INFO] [stderr] Compiling lyon_algorithms v0.13.4 [INFO] [stderr] Compiling smithay-client-toolkit v0.4.6 [INFO] [stderr] Compiling cargo_metadata v0.6.4 [INFO] [stderr] Compiling lyon v0.13.4 [INFO] [stderr] Compiling skeptic v0.13.4 [INFO] [stderr] Compiling winit v0.19.1 [INFO] [stderr] Compiling ggez v0.5.1 [INFO] [stderr] Compiling glutin v0.20.0 [INFO] [stderr] Compiling gfx_device_gl v0.16.1 [INFO] [stderr] Compiling gfx v0.18.1 [INFO] [stderr] Compiling gfx_window_glutin v0.30.0 [INFO] [stderr] Compiling rodio v0.9.0 [INFO] [stderr] Compiling Prey v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/main.rs:80:35 [INFO] [stderr] | [INFO] [stderr] 80 | boid.position.x = (SCREEN_DIMS[0] + BOID_SIZE[0] / 2.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_parens)] on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/main.rs:87:35 [INFO] [stderr] | [INFO] [stderr] 87 | boid.position.y = (SCREEN_DIMS[1] + BOID_SIZE[0] / 2.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/main.rs:218:9 [INFO] [stderr] | [INFO] [stderr] 218 | ctx: &mut Context, [INFO] [stderr] | ^^^ help: consider prefixing with an underscore: `_ctx` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_variables)] on by default [INFO] [stderr] [INFO] [stderr] warning[E0502]: cannot borrow `current` as immutable because it is also borrowed as mutable [INFO] [stderr] --> src/main.rs:170:41 [INFO] [stderr] | [INFO] [stderr] 169 | current.acceleration -= diff_vector [INFO] [stderr] | ------- [INFO] [stderr] | | [INFO] [stderr] | _____________________________mutable borrow occurs here [INFO] [stderr] | | [INFO] [stderr] 170 | | * match current.b_type { [INFO] [stderr] | | ^^^^^^^ immutable borrow occurs here [INFO] [stderr] 171 | | BoidType::Predator => PREDATOR_SEPERATION_MULT, [INFO] [stderr] 172 | | _ => SEPARATION_MULT, [INFO] [stderr] 173 | | }; [INFO] [stderr] | |_________________________________- mutable borrow later used here [INFO] [stderr] | [INFO] [stderr] = warning: this error has been downgraded to a warning for backwards compatibility with previous releases [INFO] [stderr] = warning: this represents potential undefined behavior in your code and this warning will become a hard error in the future [INFO] [stderr] = note: for more information, try `rustc --explain E0729` [INFO] [stderr] [INFO] [stderr] warning[E0502]: cannot borrow `current` as immutable because it is also borrowed as mutable [INFO] [stderr] --> src/main.rs:192:56 [INFO] [stderr] | [INFO] [stderr] 192 | current.acceleration += (desired_vel - current.velocity) * ALIGNMENT_MULT; [INFO] [stderr] | ---------------------------------------^^^^^^^--------------------------- [INFO] [stderr] | | | [INFO] [stderr] | | immutable borrow occurs here [INFO] [stderr] | mutable borrow occurs here [INFO] [stderr] | mutable borrow later used here [INFO] [stderr] | [INFO] [stderr] = warning: this error has been downgraded to a warning for backwards compatibility with previous releases [INFO] [stderr] = warning: this represents potential undefined behavior in your code and this warning will become a hard error in the future [INFO] [stderr] = note: for more information, try `rustc --explain E0729` [INFO] [stderr] [INFO] [stderr] warning[E0502]: cannot borrow `current` as immutable because it is also borrowed as mutable [INFO] [stderr] --> src/main.rs:195:36 [INFO] [stderr] | [INFO] [stderr] 194 | current.acceleration += (desired_pos [INFO] [stderr] | ------- [INFO] [stderr] | | [INFO] [stderr] | _________________mutable borrow occurs here [INFO] [stderr] | | [INFO] [stderr] 195 | | - Vector2::new(current.position.x, current.position.y)) [INFO] [stderr] | | ^^^^^^^ immutable borrow occurs here [INFO] [stderr] 196 | | * COHESION_MULT; [INFO] [stderr] | |___________________________________- mutable borrow later used here [INFO] [stderr] | [INFO] [stderr] = warning: this error has been downgraded to a warning for backwards compatibility with previous releases [INFO] [stderr] = warning: this represents potential undefined behavior in your code and this warning will become a hard error in the future [INFO] [stderr] = note: for more information, try `rustc --explain E0729` [INFO] [stderr] [INFO] [stderr] warning[E0502]: cannot borrow `current` as immutable because it is also borrowed as mutable [INFO] [stderr] --> src/main.rs:195:56 [INFO] [stderr] | [INFO] [stderr] 194 | current.acceleration += (desired_pos [INFO] [stderr] | ------- [INFO] [stderr] | | [INFO] [stderr] | _________________mutable borrow occurs here [INFO] [stderr] | | [INFO] [stderr] 195 | | - Vector2::new(current.position.x, current.position.y)) [INFO] [stderr] | | ^^^^^^^ immutable borrow occurs here [INFO] [stderr] 196 | | * COHESION_MULT; [INFO] [stderr] | |___________________________________- mutable borrow later used here [INFO] [stderr] | [INFO] [stderr] = warning: this error has been downgraded to a warning for backwards compatibility with previous releases [INFO] [stderr] = warning: this represents potential undefined behavior in your code and this warning will become a hard error in the future [INFO] [stderr] = note: for more information, try `rustc --explain E0729` [INFO] [stderr] [INFO] [stderr] warning: function is never used: `get_magnitude` [INFO] [stderr] --> src/tools.rs:31:1 [INFO] [stderr] | [INFO] [stderr] 31 | pub fn get_magnitude(vec: &Vector2) -> f32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(dead_code)] on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `point_is_in_radius` [INFO] [stderr] --> src/tools.rs:41:1 [INFO] [stderr] | [INFO] [stderr] 41 | / pub fn point_is_in_radius( [INFO] [stderr] 42 | | center_pos: &Point2, [INFO] [stderr] 43 | | point: &Point2, [INFO] [stderr] 44 | | radius_squared: f32, [INFO] [stderr] ... | [INFO] [stderr] 47 | | get_magnitude_squared(&dist_vec) <= radius_squared [INFO] [stderr] 48 | | } [INFO] [stderr] | |_^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `limit_vector_mag` [INFO] [stderr] --> src/tools.rs:51:1 [INFO] [stderr] | [INFO] [stderr] 51 | pub fn limit_vector_mag(vec: Vector2, max_squared: f32) -> Vector2 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `bounce_edges` [INFO] [stderr] --> src/main.rs:95:5 [INFO] [stderr] | [INFO] [stderr] 95 | fn bounce_edges(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: crate `Prey` should have a snake case name [INFO] [stderr] | [INFO] [stderr] = note: #[warn(non_snake_case)] on by default [INFO] [stderr] = help: convert the identifier to snake case: `prey` [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6m 49s [INFO] running `"docker" "inspect" "3adcf6e93f777151c8d1cce841d8d7dbe9b0d8be4b449fddbade1d4b133816c7"` [INFO] running `"docker" "rm" "-f" "3adcf6e93f777151c8d1cce841d8d7dbe9b0d8be4b449fddbade1d4b133816c7"` [INFO] [stdout] 3adcf6e93f777151c8d1cce841d8d7dbe9b0d8be4b449fddbade1d4b133816c7 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-3/1.37.0:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/1.37.0/gh/eggmund/Prey:/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=warn" "-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" "+1.37.0" "test" "--frozen" "--no-run"` [INFO] [stdout] 5870ea8ba82b490976554849cd1320b88a2fae7fafc1ab716a2a0a5c80046077 [INFO] running `"docker" "start" "-a" "5870ea8ba82b490976554849cd1320b88a2fae7fafc1ab716a2a0a5c80046077"` [INFO] [stderr] Compiling Prey v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/main.rs:80:35 [INFO] [stderr] | [INFO] [stderr] 80 | boid.position.x = (SCREEN_DIMS[0] + BOID_SIZE[0] / 2.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_parens)] on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/main.rs:87:35 [INFO] [stderr] | [INFO] [stderr] 87 | boid.position.y = (SCREEN_DIMS[1] + BOID_SIZE[0] / 2.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/main.rs:218:9 [INFO] [stderr] | [INFO] [stderr] 218 | ctx: &mut Context, [INFO] [stderr] | ^^^ help: consider prefixing with an underscore: `_ctx` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_variables)] on by default [INFO] [stderr] [INFO] [stderr] warning[E0502]: cannot borrow `current` as immutable because it is also borrowed as mutable [INFO] [stderr] --> src/main.rs:170:41 [INFO] [stderr] | [INFO] [stderr] 169 | current.acceleration -= diff_vector [INFO] [stderr] | ------- [INFO] [stderr] | | [INFO] [stderr] | _____________________________mutable borrow occurs here [INFO] [stderr] | | [INFO] [stderr] 170 | | * match current.b_type { [INFO] [stderr] | | ^^^^^^^ immutable borrow occurs here [INFO] [stderr] 171 | | BoidType::Predator => PREDATOR_SEPERATION_MULT, [INFO] [stderr] 172 | | _ => SEPARATION_MULT, [INFO] [stderr] 173 | | }; [INFO] [stderr] | |_________________________________- mutable borrow later used here [INFO] [stderr] | [INFO] [stderr] = warning: this error has been downgraded to a warning for backwards compatibility with previous releases [INFO] [stderr] = warning: this represents potential undefined behavior in your code and this warning will become a hard error in the future [INFO] [stderr] = note: for more information, try `rustc --explain E0729` [INFO] [stderr] [INFO] [stderr] warning[E0502]: cannot borrow `current` as immutable because it is also borrowed as mutable [INFO] [stderr] --> src/main.rs:192:56 [INFO] [stderr] | [INFO] [stderr] 192 | current.acceleration += (desired_vel - current.velocity) * ALIGNMENT_MULT; [INFO] [stderr] | ---------------------------------------^^^^^^^--------------------------- [INFO] [stderr] | | | [INFO] [stderr] | | immutable borrow occurs here [INFO] [stderr] | mutable borrow occurs here [INFO] [stderr] | mutable borrow later used here [INFO] [stderr] | [INFO] [stderr] = warning: this error has been downgraded to a warning for backwards compatibility with previous releases [INFO] [stderr] = warning: this represents potential undefined behavior in your code and this warning will become a hard error in the future [INFO] [stderr] = note: for more information, try `rustc --explain E0729` [INFO] [stderr] [INFO] [stderr] warning[E0502]: cannot borrow `current` as immutable because it is also borrowed as mutable [INFO] [stderr] --> src/main.rs:195:36 [INFO] [stderr] | [INFO] [stderr] 194 | current.acceleration += (desired_pos [INFO] [stderr] | ------- [INFO] [stderr] | | [INFO] [stderr] | _________________mutable borrow occurs here [INFO] [stderr] | | [INFO] [stderr] 195 | | - Vector2::new(current.position.x, current.position.y)) [INFO] [stderr] | | ^^^^^^^ immutable borrow occurs here [INFO] [stderr] 196 | | * COHESION_MULT; [INFO] [stderr] | |___________________________________- mutable borrow later used here [INFO] [stderr] | [INFO] [stderr] = warning: this error has been downgraded to a warning for backwards compatibility with previous releases [INFO] [stderr] = warning: this represents potential undefined behavior in your code and this warning will become a hard error in the future [INFO] [stderr] = note: for more information, try `rustc --explain E0729` [INFO] [stderr] [INFO] [stderr] warning[E0502]: cannot borrow `current` as immutable because it is also borrowed as mutable [INFO] [stderr] --> src/main.rs:195:56 [INFO] [stderr] | [INFO] [stderr] 194 | current.acceleration += (desired_pos [INFO] [stderr] | ------- [INFO] [stderr] | | [INFO] [stderr] | _________________mutable borrow occurs here [INFO] [stderr] | | [INFO] [stderr] 195 | | - Vector2::new(current.position.x, current.position.y)) [INFO] [stderr] | | ^^^^^^^ immutable borrow occurs here [INFO] [stderr] 196 | | * COHESION_MULT; [INFO] [stderr] | |___________________________________- mutable borrow later used here [INFO] [stderr] | [INFO] [stderr] = warning: this error has been downgraded to a warning for backwards compatibility with previous releases [INFO] [stderr] = warning: this represents potential undefined behavior in your code and this warning will become a hard error in the future [INFO] [stderr] = note: for more information, try `rustc --explain E0729` [INFO] [stderr] [INFO] [stderr] warning: function is never used: `get_magnitude` [INFO] [stderr] --> src/tools.rs:31:1 [INFO] [stderr] | [INFO] [stderr] 31 | pub fn get_magnitude(vec: &Vector2) -> f32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(dead_code)] on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `point_is_in_radius` [INFO] [stderr] --> src/tools.rs:41:1 [INFO] [stderr] | [INFO] [stderr] 41 | / pub fn point_is_in_radius( [INFO] [stderr] 42 | | center_pos: &Point2, [INFO] [stderr] 43 | | point: &Point2, [INFO] [stderr] 44 | | radius_squared: f32, [INFO] [stderr] ... | [INFO] [stderr] 47 | | get_magnitude_squared(&dist_vec) <= radius_squared [INFO] [stderr] 48 | | } [INFO] [stderr] | |_^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `limit_vector_mag` [INFO] [stderr] --> src/tools.rs:51:1 [INFO] [stderr] | [INFO] [stderr] 51 | pub fn limit_vector_mag(vec: Vector2, max_squared: f32) -> Vector2 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `bounce_edges` [INFO] [stderr] --> src/main.rs:95:5 [INFO] [stderr] | [INFO] [stderr] 95 | fn bounce_edges(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: crate `Prey` should have a snake case name [INFO] [stderr] | [INFO] [stderr] = note: #[warn(non_snake_case)] on by default [INFO] [stderr] = help: convert the identifier to snake case: `prey` [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.12s [INFO] running `"docker" "inspect" "5870ea8ba82b490976554849cd1320b88a2fae7fafc1ab716a2a0a5c80046077"` [INFO] running `"docker" "rm" "-f" "5870ea8ba82b490976554849cd1320b88a2fae7fafc1ab716a2a0a5c80046077"` [INFO] [stdout] 5870ea8ba82b490976554849cd1320b88a2fae7fafc1ab716a2a0a5c80046077 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-3/1.37.0:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/1.37.0/gh/eggmund/Prey:/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=warn" "-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" "+1.37.0" "test" "--frozen"` [INFO] [stdout] 7b977e58773265d6d560a41c7c3980c1eb0e35ce29d416d43dd00036db8caf87 [INFO] running `"docker" "start" "-a" "7b977e58773265d6d560a41c7c3980c1eb0e35ce29d416d43dd00036db8caf87"` [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.30s [INFO] [stderr] Running /opt/crater/target/debug/deps/Prey-e977f552c70b4750 [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 `"docker" "inspect" "7b977e58773265d6d560a41c7c3980c1eb0e35ce29d416d43dd00036db8caf87"` [INFO] running `"docker" "rm" "-f" "7b977e58773265d6d560a41c7c3980c1eb0e35ce29d416d43dd00036db8caf87"` [INFO] [stdout] 7b977e58773265d6d560a41c7c3980c1eb0e35ce29d416d43dd00036db8caf87