[INFO] cloning repository https://github.com/ozymandiaslone/para-genesis [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ozymandiaslone/para-genesis" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fozymandiaslone%2Fpara-genesis", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fozymandiaslone%2Fpara-genesis'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6b9b5dc8bc642edc36d960bec1dc78a39d713543 [INFO] building ozymandiaslone/para-genesis against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fozymandiaslone%2Fpara-genesis" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ozymandiaslone/para-genesis [INFO] finished tweaking git repo https://github.com/ozymandiaslone/para-genesis [INFO] tweaked toml for git repo https://github.com/ozymandiaslone/para-genesis written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ozymandiaslone/para-genesis on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ozymandiaslone/para-genesis already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rand_xorshift v0.2.0 [INFO] [stderr] Downloaded getrandom v0.2.12 [INFO] [stderr] Downloaded gl v0.14.0 [INFO] [stderr] Downloaded libloading v0.5.2 [INFO] [stderr] Downloaded parking_lot_core v0.7.3 [INFO] [stderr] Downloaded cocoa v0.20.2 [INFO] [stderr] Downloaded serde_derive v1.0.196 [INFO] [stderr] Downloaded rayon v1.8.1 [INFO] [stderr] Downloaded exr v1.71.0 [INFO] [stderr] Downloaded serde v1.0.196 [INFO] [stderr] Downloaded winit v0.22.2 [INFO] [stderr] Downloaded proc-macro2 v1.0.78 [INFO] [stderr] Downloaded xml-rs v0.8.19 [INFO] [stderr] Downloaded smallvec v1.13.1 [INFO] [stderr] Downloaded rusttype v0.8.3 [INFO] [stderr] Downloaded rusttype v0.7.9 [INFO] [stderr] Downloaded walkdir v2.4.0 [INFO] [stderr] Downloaded pkg-config v0.3.29 [INFO] [stderr] Downloaded png v0.17.11 [INFO] [stderr] Downloaded android_log-sys v0.1.2 [INFO] [stderr] Downloaded ndk v0.1.0 [INFO] [stderr] Downloaded cc v1.0.83 [INFO] [stderr] Downloaded wayland-protocols v0.23.6 [INFO] [stderr] Downloaded lock_api v0.3.4 [INFO] [stderr] Downloaded nix v0.14.1 [INFO] [stderr] Downloaded approx v0.3.2 [INFO] [stderr] Downloaded ordered-float v1.1.1 [INFO] [stderr] Downloaded stb_truetype v0.3.1 [INFO] [stderr] Downloaded net2 v0.2.39 [INFO] [stderr] Downloaded wayland-sys v0.23.6 [INFO] [stderr] Downloaded glutin v0.24.1 [INFO] [stderr] Downloaded half v2.2.1 [INFO] [stderr] Downloaded flate2 v1.0.28 [INFO] [stderr] Downloaded glutin_egl_sys v0.1.6 [INFO] [stderr] Downloaded wayland-client v0.23.6 [INFO] [stderr] Downloaded gif v0.11.4 [INFO] [stderr] Downloaded glutin_glx_sys v0.1.8 [INFO] [stderr] Downloaded ndk-glue v0.1.0 [INFO] [stderr] Downloaded ndk-sys v0.1.0 [INFO] [stderr] Downloaded parking_lot v0.10.2 [INFO] [stderr] Downloaded syn v2.0.48 [INFO] [stderr] Downloaded line_drawing v0.7.0 [INFO] [stderr] Downloaded andrew v0.2.1 [INFO] [stderr] Downloaded memmap v0.7.0 [INFO] [stderr] Downloaded calloop v0.4.4 [INFO] [stderr] Downloaded wayland-commons v0.23.6 [INFO] [stderr] Downloaded wayland-scanner v0.23.6 [INFO] [stderr] Downloaded bytemuck v1.14.1 [INFO] [stderr] Downloaded smithay-client-toolkit v0.6.6 [INFO] [stderr] Downloaded crow v0.7.2 [INFO] [stderr] Downloaded noise v0.8.2 [INFO] [stderr] Downloaded image v0.24.8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 602ab7488ef5475755374af143fefb1990b75dd2e7b262d189e722e001ce8f59 [INFO] running `Command { std: "docker" "start" "-a" "602ab7488ef5475755374af143fefb1990b75dd2e7b262d189e722e001ce8f59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "602ab7488ef5475755374af143fefb1990b75dd2e7b262d189e722e001ce8f59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "602ab7488ef5475755374af143fefb1990b75dd2e7b262d189e722e001ce8f59", kill_on_drop: false }` [INFO] [stdout] 602ab7488ef5475755374af143fefb1990b75dd2e7b262d189e722e001ce8f59 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ea199fa0e4456315338767058559662d9fd901753575d22ae4fd57531abc26b4 [INFO] running `Command { std: "docker" "start" "-a" "ea199fa0e4456315338767058559662d9fd901753575d22ae4fd57531abc26b4", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling xml-rs v0.8.19 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling nix v0.14.1 [INFO] [stderr] Compiling libloading v0.6.7 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling simd-adler32 v0.3.7 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling stb_truetype v0.3.1 [INFO] [stderr] Compiling smallvec v1.13.1 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling weezl v0.1.8 [INFO] [stderr] Compiling pkg-config v0.3.29 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling downcast-rs v1.2.0 [INFO] [stderr] Compiling dlib v0.4.2 [INFO] [stderr] Compiling wayland-sys v0.23.6 [INFO] [stderr] Compiling walkdir v2.4.0 [INFO] [stderr] Compiling miniz_oxide v0.7.1 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling xdg v2.5.2 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling cty v0.2.2 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling crossbeam-deque v0.8.5 [INFO] [stderr] Compiling raw-window-handle v0.4.3 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling lock_api v0.3.4 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling bytemuck v1.14.1 [INFO] [stderr] Compiling wayland-scanner v0.23.6 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling flate2 v1.0.28 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Compiling miniz_oxide v0.3.7 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling gif v0.11.4 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.39 [INFO] [stderr] Compiling rayon v1.8.1 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling memmap v0.7.0 [INFO] [stderr] Compiling approx v0.3.2 [INFO] [stderr] Compiling ordered-float v1.1.1 [INFO] [stderr] Compiling line_drawing v0.7.0 [INFO] [stderr] Compiling parking_lot_core v0.7.3 [INFO] [stderr] Compiling getrandom v0.2.12 [INFO] [stderr] Compiling rusttype v0.8.3 [INFO] [stderr] Compiling shared_library v0.1.9 [INFO] [stderr] Compiling glutin_glx_sys v0.1.8 [INFO] [stderr] Compiling glutin_egl_sys v0.1.6 [INFO] [stderr] Compiling parking_lot v0.10.2 [INFO] [stderr] Compiling gl v0.14.0 [INFO] [stderr] Compiling raw-window-handle v0.3.4 [INFO] [stderr] Compiling osmesa-sys v0.1.2 [INFO] [stderr] Compiling mio-extras v2.0.6 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling png v0.16.8 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling flume v0.11.0 [INFO] [stderr] Compiling rusttype v0.7.9 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Compiling andrew v0.2.1 [INFO] [stderr] Compiling fdeflate v0.3.4 [INFO] [stderr] Compiling zune-inflate v0.2.54 [INFO] [stderr] Compiling lebe v0.5.2 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling half v2.2.1 [INFO] [stderr] Compiling bit_field v0.10.2 [INFO] [stderr] Compiling png v0.17.11 [INFO] [stderr] Compiling wayland-client v0.23.6 [INFO] [stderr] Compiling wayland-protocols v0.23.6 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling exr v1.71.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand_xorshift v0.2.0 [INFO] [stderr] Compiling qoi v0.4.1 [INFO] [stderr] Compiling gif v0.12.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling jpeg-decoder v0.1.22 [INFO] [stderr] Compiling jpeg-decoder v0.3.1 [INFO] [stderr] Compiling noise v0.8.2 [INFO] [stderr] Compiling tiff v0.6.1 [INFO] [stderr] Compiling wayland-commons v0.23.6 [INFO] [stderr] Compiling calloop v0.4.4 [INFO] [stderr] Compiling tiff v0.9.1 [INFO] [stderr] Compiling image v0.23.14 [INFO] [stderr] Compiling image v0.24.8 [INFO] [stderr] Compiling smithay-client-toolkit v0.6.6 [INFO] [stderr] Compiling winit v0.22.2 [INFO] [stderr] Compiling glutin v0.24.1 [INFO] [stderr] Compiling crow v0.7.2 [INFO] [stderr] Compiling para-genesis v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ImageBuffer`, `ImageOutputFormat`, and `Rgba` [INFO] [stdout] --> src/main.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use image::{ImageBuffer, Rgba, ImageOutputFormat}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration`, `Instant`, and `SystemTime` [INFO] [stdout] --> src/main.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::{SystemTime, Instant, Duration}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Texture` and `WindowSurface` [INFO] [stdout] --> src/main.rs:11:26 [INFO] [stdout] | [INFO] [stdout] 11 | Context, DrawConfig, Texture, WindowSurface, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/star.rs:78:38 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn update_physics(&mut self, ctx: &mut Context) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `camera` [INFO] [stdout] --> src/star.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | camera: &mut Camera, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_camera` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `theta` [INFO] [stdout] --> src/physics.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | let theta = f32::atan2(fy, fx); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_theta` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `test_draw_config` [INFO] [stdout] --> src/main.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let test_draw_config = DrawConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_test_draw_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | let (mut desired_width, mut desired_height): (u32, u32) = (1920, 1080); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:27:30 [INFO] [stdout] | [INFO] [stdout] 27 | let (mut desired_width, mut desired_height): (u32, u32) = (1920, 1080); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `initialize_particle` is never used [INFO] [stdout] --> src/star.rs:369:4 [INFO] [stdout] | [INFO] [stdout] 369 | fn initialize_particle(win_width: i32, win_height: i32, ctx: &mut Context) -> Star { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `xvel`, `yvel`, and `force_vectors` are never used [INFO] [stdout] --> src/physics.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait PhysObj { [INFO] [stdout] | ------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 7 | fn xvel(&self) -> f32; [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | fn yvel(&self) -> f32; [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | fn mass(&self) -> u64; [INFO] [stdout] 10 | fn force_vectors(&self) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fast_inverse_sqrt` is never used [INFO] [stdout] --> src/physics.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn fast_inverse_sqrt(n: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fast_root` is never used [INFO] [stdout] --> src/physics.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn fast_root(n :f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/camera.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Camera { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 5 | x: f32, [INFO] [stdout] | ^ [INFO] [stdout] 6 | y: f32, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `x`, `y`, `setx`, `sety`, and `zoom` are never used [INFO] [stdout] --> src/camera.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Camera { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn x(&self) -> f32 { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn y(&self) -> f32 { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn setx(&mut self, x: f32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn sety(&mut self, y: f32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn zoom(&self) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/star.rs:279:22 [INFO] [stdout] | [INFO] [stdout] 279 | let i = unsafe { std::mem::transmute::(n) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 279 - let i = unsafe { std::mem::transmute::(n) }; [INFO] [stdout] 279 + let i = unsafe { f32::to_bits(n).cast_signed() }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/star.rs:281:22 [INFO] [stdout] | [INFO] [stdout] 281 | let y = unsafe { std::mem::transmute::(j) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 281 - let y = unsafe { std::mem::transmute::(j) }; [INFO] [stdout] 281 + let y = unsafe { f32::from_bits(i32::cast_unsigned(j)) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/physics.rs:58:22 [INFO] [stdout] | [INFO] [stdout] 58 | let i = unsafe { std::mem::transmute::(n) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 58 - let i = unsafe { std::mem::transmute::(n) }; [INFO] [stdout] 58 + let i = unsafe { f32::to_bits(n).cast_signed() }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/physics.rs:60:22 [INFO] [stdout] | [INFO] [stdout] 60 | let y = unsafe { std::mem::transmute::(j) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 60 - let y = unsafe { std::mem::transmute::(j) }; [INFO] [stdout] 60 + let y = unsafe { f32::from_bits(i32::cast_unsigned(j)) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 18s [INFO] running `Command { std: "docker" "inspect" "ea199fa0e4456315338767058559662d9fd901753575d22ae4fd57531abc26b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ea199fa0e4456315338767058559662d9fd901753575d22ae4fd57531abc26b4", kill_on_drop: false }` [INFO] [stdout] ea199fa0e4456315338767058559662d9fd901753575d22ae4fd57531abc26b4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e4369a8264eda7c4c9a502d9d208095af4bbf583c9cd2db16e512ffe6bc3644e [INFO] running `Command { std: "docker" "start" "-a" "e4369a8264eda7c4c9a502d9d208095af4bbf583c9cd2db16e512ffe6bc3644e", kill_on_drop: false }` [INFO] [stderr] Compiling para-genesis v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ImageBuffer`, `ImageOutputFormat`, and `Rgba` [INFO] [stdout] --> src/main.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use image::{ImageBuffer, Rgba, ImageOutputFormat}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration`, `Instant`, and `SystemTime` [INFO] [stdout] --> src/main.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::{SystemTime, Instant, Duration}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Texture` and `WindowSurface` [INFO] [stdout] --> src/main.rs:11:26 [INFO] [stdout] | [INFO] [stdout] 11 | Context, DrawConfig, Texture, WindowSurface, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/star.rs:78:38 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn update_physics(&mut self, ctx: &mut Context) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `camera` [INFO] [stdout] --> src/star.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | camera: &mut Camera, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_camera` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `theta` [INFO] [stdout] --> src/physics.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | let theta = f32::atan2(fy, fx); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_theta` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `test_draw_config` [INFO] [stdout] --> src/main.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let test_draw_config = DrawConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_test_draw_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | let (mut desired_width, mut desired_height): (u32, u32) = (1920, 1080); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:27:30 [INFO] [stdout] | [INFO] [stdout] 27 | let (mut desired_width, mut desired_height): (u32, u32) = (1920, 1080); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `initialize_particle` is never used [INFO] [stdout] --> src/star.rs:369:4 [INFO] [stdout] | [INFO] [stdout] 369 | fn initialize_particle(win_width: i32, win_height: i32, ctx: &mut Context) -> Star { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `xvel`, `yvel`, and `force_vectors` are never used [INFO] [stdout] --> src/physics.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait PhysObj { [INFO] [stdout] | ------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 7 | fn xvel(&self) -> f32; [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | fn yvel(&self) -> f32; [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | fn mass(&self) -> u64; [INFO] [stdout] 10 | fn force_vectors(&self) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fast_inverse_sqrt` is never used [INFO] [stdout] --> src/physics.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn fast_inverse_sqrt(n: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fast_root` is never used [INFO] [stdout] --> src/physics.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn fast_root(n :f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/camera.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Camera { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 5 | x: f32, [INFO] [stdout] | ^ [INFO] [stdout] 6 | y: f32, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `x`, `y`, `setx`, `sety`, and `zoom` are never used [INFO] [stdout] --> src/camera.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Camera { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn x(&self) -> f32 { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn y(&self) -> f32 { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn setx(&mut self, x: f32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn sety(&mut self, y: f32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn zoom(&self) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/star.rs:279:22 [INFO] [stdout] | [INFO] [stdout] 279 | let i = unsafe { std::mem::transmute::(n) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 279 - let i = unsafe { std::mem::transmute::(n) }; [INFO] [stdout] 279 + let i = unsafe { f32::to_bits(n).cast_signed() }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/star.rs:281:22 [INFO] [stdout] | [INFO] [stdout] 281 | let y = unsafe { std::mem::transmute::(j) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 281 - let y = unsafe { std::mem::transmute::(j) }; [INFO] [stdout] 281 + let y = unsafe { f32::from_bits(i32::cast_unsigned(j)) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/physics.rs:58:22 [INFO] [stdout] | [INFO] [stdout] 58 | let i = unsafe { std::mem::transmute::(n) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 58 - let i = unsafe { std::mem::transmute::(n) }; [INFO] [stdout] 58 + let i = unsafe { f32::to_bits(n).cast_signed() }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/physics.rs:60:22 [INFO] [stdout] | [INFO] [stdout] 60 | let y = unsafe { std::mem::transmute::(j) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 60 - let y = unsafe { std::mem::transmute::(j) }; [INFO] [stdout] 60 + let y = unsafe { f32::from_bits(i32::cast_unsigned(j)) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.62s [INFO] running `Command { std: "docker" "inspect" "e4369a8264eda7c4c9a502d9d208095af4bbf583c9cd2db16e512ffe6bc3644e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e4369a8264eda7c4c9a502d9d208095af4bbf583c9cd2db16e512ffe6bc3644e", kill_on_drop: false }` [INFO] [stdout] e4369a8264eda7c4c9a502d9d208095af4bbf583c9cd2db16e512ffe6bc3644e