[INFO] cloning repository https://github.com/Nibbetts/pocket_multiverse [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Nibbetts/pocket_multiverse" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNibbetts%2Fpocket_multiverse", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNibbetts%2Fpocket_multiverse'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3dc9290c5fbd1504d6f4c4af6a47c80d12b7bc46 [INFO] checking Nibbetts/pocket_multiverse against master#2e6fc425411280c658d852813de01c5157255088 for pr-128013 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNibbetts%2Fpocket_multiverse" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Nibbetts/pocket_multiverse on toolchain 2e6fc425411280c658d852813de01c5157255088 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Nibbetts/pocket_multiverse [INFO] finished tweaking git repo https://github.com/Nibbetts/pocket_multiverse [INFO] tweaked toml for git repo https://github.com/Nibbetts/pocket_multiverse written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Nibbetts/pocket_multiverse 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" "+2e6fc425411280c658d852813de01c5157255088" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded float-cmp v0.8.0 [INFO] [stderr] Downloaded unordered-pair v0.2.3 [INFO] [stderr] Downloaded json v0.12.4 [INFO] [stderr] Downloaded version-compare v0.1.0 [INFO] [stderr] Downloaded stl_io v0.6.0 [INFO] [stderr] Downloaded libc v0.2.124 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 06496a59f244e73a756eca81f89ec1b3ba79758bd72670aa13b8d105d707a563 [INFO] running `Command { std: "docker" "start" "-a" "06496a59f244e73a756eca81f89ec1b3ba79758bd72670aa13b8d105d707a563", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "06496a59f244e73a756eca81f89ec1b3ba79758bd72670aa13b8d105d707a563", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06496a59f244e73a756eca81f89ec1b3ba79758bd72670aa13b8d105d707a563", kill_on_drop: false }` [INFO] [stdout] 06496a59f244e73a756eca81f89ec1b3ba79758bd72670aa13b8d105d707a563 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a51d097c7a5eedda85db7e985d436e29de9c4e5985a3517c6f1883e6df173c69 [INFO] running `Command { std: "docker" "start" "-a" "a51d097c7a5eedda85db7e985d436e29de9c4e5985a3517c6f1883e6df173c69", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling version-compare v0.1.0 [INFO] [stderr] Compiling libc v0.2.124 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling sdl2 v0.35.2 [INFO] [stderr] Checking matrixmultiply v0.3.2 [INFO] [stderr] Checking json v0.12.4 [INFO] [stderr] Checking unordered-pair v0.2.3 [INFO] [stderr] Compiling sdl2-sys v0.35.2 [INFO] [stderr] Checking num-complex v0.4.0 [INFO] [stderr] Checking float-cmp v0.8.0 [INFO] [stderr] Checking stl_io v0.6.0 [INFO] [stderr] Checking ndarray v0.15.4 [INFO] [stderr] Checking pocket_multiverse v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ArrayView1` [INFO] [stdout] --> src/entities.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use ndarray::{ ArrayView1, Array1 }; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::pixels::Color` [INFO] [stdout] --> src/engine.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use sdl2::pixels::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/engine.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use std::time::{Duration, SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::universes::Bounds` [INFO] [stdout] --> src/engine.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::universes::Bounds; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ArrayView1` [INFO] [stdout] --> src/entities.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use ndarray::{ ArrayView1, Array1 }; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::pixels::Color` [INFO] [stdout] --> src/engine.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use sdl2::pixels::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/engine.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use std::time::{Duration, SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::universes::Bounds` [INFO] [stdout] --> src/engine.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::universes::Bounds; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `file` is never read [INFO] [stdout] --> src/universes.rs:249:9 [INFO] [stdout] | [INFO] [stdout] 249 | file = OpenOptions::new().read(true).open( [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m_TU` [INFO] [stdout] --> src/universes.rs:327:26 [INFO] [stdout] | [INFO] [stdout] 327 | let (bT, cT, m_TU) = Universe::tri_3D_to_2D( [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_m_TU` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `file` is never read [INFO] [stdout] --> src/universes.rs:249:9 [INFO] [stdout] | [INFO] [stdout] 249 | file = OpenOptions::new().read(true).open( [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m_TU` [INFO] [stdout] --> src/universes.rs:327:26 [INFO] [stdout] | [INFO] [stdout] 327 | let (bT, cT, m_TU) = Universe::tri_3D_to_2D( [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_m_TU` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/entities.rs:64:26 [INFO] [stdout] | [INFO] [stdout] 64 | fn bounce(&mut self, other: &Entity) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/entities.rs:74:36 [INFO] [stdout] | [INFO] [stdout] 74 | fn bounce_off_large(&mut self, other: &LargeEntity) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_time` [INFO] [stdout] --> src/entities.rs:122:24 [INFO] [stdout] | [INFO] [stdout] 122 | fn step(&mut self, delta_time: f32) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_time` [INFO] [stdout] --> src/entities.rs:138:24 [INFO] [stdout] | [INFO] [stdout] 138 | fn step(&mut self, delta_time: f32) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/entities.rs:64:26 [INFO] [stdout] | [INFO] [stdout] 64 | fn bounce(&mut self, other: &Entity) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/entities.rs:74:36 [INFO] [stdout] | [INFO] [stdout] 74 | fn bounce_off_large(&mut self, other: &LargeEntity) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/engine.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | let mut canvas = window.into_canvas().build().unwrap(); [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/engine.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let mut event_pump = sdl_context.event_pump().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_time` [INFO] [stdout] --> src/entities.rs:122:24 [INFO] [stdout] | [INFO] [stdout] 122 | fn step(&mut self, delta_time: f32) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_time` [INFO] [stdout] --> src/entities.rs:138:24 [INFO] [stdout] | [INFO] [stdout] 138 | fn step(&mut self, delta_time: f32) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/engine.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | let mut canvas = window.into_canvas().build().unwrap(); [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/engine.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let mut event_pump = sdl_context.event_pump().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/engine.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | for i in 0..self.drawable.len() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `canvas` [INFO] [stdout] --> src/engine.rs:114:32 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn draw_all(&mut self, canvas: &WindowCanvas) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_canvas` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pocket` [INFO] [stdout] --> src/main.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let pocket = universes::Universe::load("hambone").unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pocket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `vertices`, `triangles`, `bounds`, and `count` are never read [INFO] [stdout] --> src/universes.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Universe { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 24 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 25 | vertices: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 26 | triangles: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 27 | bounds: [Bounds; 3], // x, y, z, each a pair of (min, max) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 28 | count: usize, // triangle count [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/universes.rs:34:19 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct Bounds(f32, f32); /// Represents a range of values or space: [min, max] [INFO] [stdout] | ------ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `normal` is never read [INFO] [stdout] --> src/universes.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 45 | struct Vertex { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 46 | position: Array1, [INFO] [stdout] 47 | normal: Array1, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `normal`, `neighbors`, and `segments` are never read [INFO] [stdout] --> src/universes.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 62 | struct Triangle { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 63 | normal: Array1, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 64 | // vertices: [usize; 3], [INFO] [stdout] 65 | neighbors: [TriID; 3], [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 66 | segments: [LineSegment2D; 3], [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `m`, `b`, `l`, and `u` are never read [INFO] [stdout] --> src/universes.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 73 | struct LineSegment2D { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 74 | m: f32, // Slope [INFO] [stdout] | ^ [INFO] [stdout] 75 | b: f32, // y-Intercept [INFO] [stdout] | ^ [INFO] [stdout] 76 | l: f32, // Lower bound [INFO] [stdout] | ^ [INFO] [stdout] 77 | u: f32, // Upper bound [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `intersect` is never used [INFO] [stdout] --> src/universes.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 80 | impl LineSegment2D { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 100 | fn intersect(&self, t: &Trajectory2D) -> Option<(f32, Interp)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Interp` is never constructed [INFO] [stdout] --> src/universes.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 128 | struct Interp(f32); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `distance2D` is never used [INFO] [stdout] --> src/universes.rs:152:4 [INFO] [stdout] | [INFO] [stdout] 152 | fn distance2D(x1: f32, y1: f32, x2: f32, y2: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `m`, `b`, and `bound` are never read [INFO] [stdout] --> src/universes.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 164 | pub struct Trajectory2D { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 165 | m: f32, // Slope [INFO] [stdout] | ^ [INFO] [stdout] 166 | b: f32, // y-Intercept [INFO] [stdout] | ^ [INFO] [stdout] 167 | bound: LineBound, // Whether bound above or below [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `advance_by` is never used [INFO] [stdout] --> src/universes.rs:184:8 [INFO] [stdout] | [INFO] [stdout] 174 | impl Trajectory2D { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 184 | fn advance_by() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_norm` is never used [INFO] [stdout] --> src/universes.rs:380:8 [INFO] [stdout] | [INFO] [stdout] 380 | pub fn set_norm(x: &mut Array1, len: f32) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Entity` is never constructed [INFO] [stdout] --> src/entities.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Entity { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `bounce` and `bounce_off_large` are never used [INFO] [stdout] --> src/entities.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl Entity { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 64 | fn bounce(&mut self, other: &Entity) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | fn bounce_off_large(&mut self, other: &LargeEntity) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LargeEntity` is never constructed [INFO] [stdout] --> src/entities.rs:109:12 [INFO] [stdout] | [INFO] [stdout] 109 | pub struct LargeEntity { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LargeEntity3D` is never constructed [INFO] [stdout] --> src/entities.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 130 | pub struct LargeEntity3D { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MotionPattern` is never used [INFO] [stdout] --> src/entities.rs:143:6 [INFO] [stdout] | [INFO] [stdout] 143 | enum MotionPattern { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MotionPattern3D` is never used [INFO] [stdout] --> src/entities.rs:149:6 [INFO] [stdout] | [INFO] [stdout] 149 | enum MotionPattern3D { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UnivPos` is never constructed [INFO] [stdout] --> src/entities.rs:159:8 [INFO] [stdout] | [INFO] [stdout] 159 | struct UnivPos { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Gravitation` is never used [INFO] [stdout] --> src/entities.rs:165:6 [INFO] [stdout] | [INFO] [stdout] 165 | enum Gravitation { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/engine.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | for i in 0..self.drawable.len() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InputType` is never used [INFO] [stdout] --> src/spaceship.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | enum InputType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Controller` is never constructed [INFO] [stdout] --> src/spaceship.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Controller { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `canvas` [INFO] [stdout] --> src/engine.rs:114:32 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn draw_all(&mut self, canvas: &WindowCanvas) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_canvas` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `poll` is never used [INFO] [stdout] --> src/spaceship.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 24 | impl Controller { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 25 | fn poll(&self) -> Action { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Action` is never constructed [INFO] [stdout] --> src/spaceship.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | struct Action { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Spaceship` is never constructed [INFO] [stdout] --> src/spaceship.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | struct Spaceship { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_input`, `enact_thrust`, and `step_entity` are never used [INFO] [stdout] --> src/spaceship.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 76 | impl Spaceship { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 77 | /// gets the user inputs in an abstracted form from the controller [INFO] [stdout] 78 | fn update_input(&mut self) -> Action { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | fn enact_thrust(&mut self, action: Action, delta_time: f32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | fn step_entity(&mut self, delta_time: f32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `on_draw` is never used [INFO] [stdout] --> src/graphics.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Drawable { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] 7 | fn on_draw(&mut self, canvas: WindowCanvas); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `start_time` is never read [INFO] [stdout] --> src/engine.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Engine { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | start_time: f32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PAUSE` is never constructed [INFO] [stdout] --> src/engine.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 35 | pub enum StepStatus { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 36 | NORMAL, [INFO] [stdout] 37 | PAUSE, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/universes.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | fn from(A: &Array1, B: &Array1) -> LineSegment2D { [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `B` should have a snake case name [INFO] [stdout] --> src/universes.rs:82:30 [INFO] [stdout] | [INFO] [stdout] 82 | fn from(A: &Array1, B: &Array1) -> LineSegment2D { [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `distance2D` should have a snake case name [INFO] [stdout] --> src/universes.rs:152:4 [INFO] [stdout] | [INFO] [stdout] 152 | fn distance2D(x1: f32, y1: f32, x2: f32, y2: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `distance2_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vel2D` should have a snake case name [INFO] [stdout] --> src/universes.rs:189:44 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn new(tri: TriID, x: f32, y: f32, vel2D: ArrayView1) -> Trajectory2D { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `vel2_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `tri_3D_to_2D` should have a snake case name [INFO] [stdout] --> src/universes.rs:221:8 [INFO] [stdout] | [INFO] [stdout] 221 | fn tri_3D_to_2D(a: &Array1, b: &Array1, c: &Array1, N: &Array1) -> (Array1, Array1, Array2) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `tri_3_d_to_2_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/universes.rs:221:72 [INFO] [stdout] | [INFO] [stdout] 221 | fn tri_3D_to_2D(a: &Array1, b: &Array1, c: &Array1, N: &Array1) -> (Array1, Array1, Array2) { [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `xcrossN` should have a snake case name [INFO] [stdout] --> src/universes.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | let xcrossN = cross(x.view(), N.view()); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `xcross_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `m_TU` should have a snake case name [INFO] [stdout] --> src/universes.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 227 | ... let m_TU = stack(Axis(0), &[x.view(), xcrossN.view()]).unwrap(); // TODO: convert all code to nalgebra so we have access to cross p... [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `m_tu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bT` should have a snake case name [INFO] [stdout] --> src/universes.rs:229:13 [INFO] [stdout] | [INFO] [stdout] 229 | let bT = arr1(&[ab_norm, 0.]); [INFO] [stdout] | ^^ help: convert the identifier to snake case: `b_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cT` should have a snake case name [INFO] [stdout] --> src/universes.rs:230:13 [INFO] [stdout] | [INFO] [stdout] 230 | let cT = m_TU.dot(c); [INFO] [stdout] | ^^ help: convert the identifier to snake case: `c_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bT` should have a snake case name [INFO] [stdout] --> src/universes.rs:327:18 [INFO] [stdout] | [INFO] [stdout] 327 | let (bT, cT, m_TU) = Universe::tri_3D_to_2D( [INFO] [stdout] | ^^ help: convert the identifier to snake case: `b_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cT` should have a snake case name [INFO] [stdout] --> src/universes.rs:327:22 [INFO] [stdout] | [INFO] [stdout] 327 | let (bT, cT, m_TU) = Universe::tri_3D_to_2D( [INFO] [stdout] | ^^ help: convert the identifier to snake case: `c_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `m_TU` should have a snake case name [INFO] [stdout] --> src/universes.rs:327:26 [INFO] [stdout] | [INFO] [stdout] 327 | let (bT, cT, m_TU) = Universe::tri_3D_to_2D( [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `m_tu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `aT` should have a snake case name [INFO] [stdout] --> src/universes.rs:334:17 [INFO] [stdout] | [INFO] [stdout] 334 | let aT = arr1(&[0., 0.]); [INFO] [stdout] | ^^ help: convert the identifier to snake case: `a_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pocket` [INFO] [stdout] --> src/main.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let pocket = universes::Universe::load("hambone").unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pocket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `coords3D` should have a snake case name [INFO] [stdout] --> src/entities.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | coords3D: [f32; 3], [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `coords3_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `vertices`, `triangles`, `bounds`, and `count` are never read [INFO] [stdout] --> src/universes.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Universe { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 24 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 25 | vertices: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 26 | triangles: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 27 | bounds: [Bounds; 3], // x, y, z, each a pair of (min, max) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 28 | count: usize, // triangle count [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/universes.rs:34:19 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct Bounds(f32, f32); /// Represents a range of values or space: [min, max] [INFO] [stdout] | ------ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `normal` is never read [INFO] [stdout] --> src/universes.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 45 | struct Vertex { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 46 | position: Array1, [INFO] [stdout] 47 | normal: Array1, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `normal`, `neighbors`, and `segments` are never read [INFO] [stdout] --> src/universes.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 62 | struct Triangle { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 63 | normal: Array1, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 64 | // vertices: [usize; 3], [INFO] [stdout] 65 | neighbors: [TriID; 3], [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 66 | segments: [LineSegment2D; 3], [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `m`, `b`, `l`, and `u` are never read [INFO] [stdout] --> src/universes.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 73 | struct LineSegment2D { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 74 | m: f32, // Slope [INFO] [stdout] | ^ [INFO] [stdout] 75 | b: f32, // y-Intercept [INFO] [stdout] | ^ [INFO] [stdout] 76 | l: f32, // Lower bound [INFO] [stdout] | ^ [INFO] [stdout] 77 | u: f32, // Upper bound [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `intersect` is never used [INFO] [stdout] --> src/universes.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 80 | impl LineSegment2D { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 100 | fn intersect(&self, t: &Trajectory2D) -> Option<(f32, Interp)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Interp` is never constructed [INFO] [stdout] --> src/universes.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 128 | struct Interp(f32); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `distance2D` is never used [INFO] [stdout] --> src/universes.rs:152:4 [INFO] [stdout] | [INFO] [stdout] 152 | fn distance2D(x1: f32, y1: f32, x2: f32, y2: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `m`, `b`, and `bound` are never read [INFO] [stdout] --> src/universes.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 164 | pub struct Trajectory2D { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 165 | m: f32, // Slope [INFO] [stdout] | ^ [INFO] [stdout] 166 | b: f32, // y-Intercept [INFO] [stdout] | ^ [INFO] [stdout] 167 | bound: LineBound, // Whether bound above or below [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `advance_by` is never used [INFO] [stdout] --> src/universes.rs:184:8 [INFO] [stdout] | [INFO] [stdout] 174 | impl Trajectory2D { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 184 | fn advance_by() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_norm` is never used [INFO] [stdout] --> src/universes.rs:380:8 [INFO] [stdout] | [INFO] [stdout] 380 | pub fn set_norm(x: &mut Array1, len: f32) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Entity` is never constructed [INFO] [stdout] --> src/entities.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Entity { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `bounce` and `bounce_off_large` are never used [INFO] [stdout] --> src/entities.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl Entity { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 64 | fn bounce(&mut self, other: &Entity) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | fn bounce_off_large(&mut self, other: &LargeEntity) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LargeEntity` is never constructed [INFO] [stdout] --> src/entities.rs:109:12 [INFO] [stdout] | [INFO] [stdout] 109 | pub struct LargeEntity { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LargeEntity3D` is never constructed [INFO] [stdout] --> src/entities.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 130 | pub struct LargeEntity3D { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MotionPattern` is never used [INFO] [stdout] --> src/entities.rs:143:6 [INFO] [stdout] | [INFO] [stdout] 143 | enum MotionPattern { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MotionPattern3D` is never used [INFO] [stdout] --> src/entities.rs:149:6 [INFO] [stdout] | [INFO] [stdout] 149 | enum MotionPattern3D { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UnivPos` is never constructed [INFO] [stdout] --> src/entities.rs:159:8 [INFO] [stdout] | [INFO] [stdout] 159 | struct UnivPos { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Gravitation` is never used [INFO] [stdout] --> src/entities.rs:165:6 [INFO] [stdout] | [INFO] [stdout] 165 | enum Gravitation { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InputType` is never used [INFO] [stdout] --> src/spaceship.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | enum InputType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Controller` is never constructed [INFO] [stdout] --> src/spaceship.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Controller { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `poll` is never used [INFO] [stdout] --> src/spaceship.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 24 | impl Controller { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 25 | fn poll(&self) -> Action { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Action` is never constructed [INFO] [stdout] --> src/spaceship.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | struct Action { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Spaceship` is never constructed [INFO] [stdout] --> src/spaceship.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | struct Spaceship { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_input`, `enact_thrust`, and `step_entity` are never used [INFO] [stdout] --> src/spaceship.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 76 | impl Spaceship { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 77 | /// gets the user inputs in an abstracted form from the controller [INFO] [stdout] 78 | fn update_input(&mut self) -> Action { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | fn enact_thrust(&mut self, action: Action, delta_time: f32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | fn step_entity(&mut self, delta_time: f32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `on_draw` is never used [INFO] [stdout] --> src/graphics.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Drawable { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] 7 | fn on_draw(&mut self, canvas: WindowCanvas); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `start_time` is never read [INFO] [stdout] --> src/engine.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Engine { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | start_time: f32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PAUSE` is never constructed [INFO] [stdout] --> src/engine.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 35 | pub enum StepStatus { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 36 | NORMAL, [INFO] [stdout] 37 | PAUSE, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/universes.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | fn from(A: &Array1, B: &Array1) -> LineSegment2D { [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `B` should have a snake case name [INFO] [stdout] --> src/universes.rs:82:30 [INFO] [stdout] | [INFO] [stdout] 82 | fn from(A: &Array1, B: &Array1) -> LineSegment2D { [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `distance2D` should have a snake case name [INFO] [stdout] --> src/universes.rs:152:4 [INFO] [stdout] | [INFO] [stdout] 152 | fn distance2D(x1: f32, y1: f32, x2: f32, y2: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `distance2_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 58 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vel2D` should have a snake case name [INFO] [stdout] --> src/universes.rs:189:44 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn new(tri: TriID, x: f32, y: f32, vel2D: ArrayView1) -> Trajectory2D { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `vel2_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `tri_3D_to_2D` should have a snake case name [INFO] [stdout] --> src/universes.rs:221:8 [INFO] [stdout] | [INFO] [stdout] 221 | fn tri_3D_to_2D(a: &Array1, b: &Array1, c: &Array1, N: &Array1) -> (Array1, Array1, Array2) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `tri_3_d_to_2_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/universes.rs:221:72 [INFO] [stdout] | [INFO] [stdout] 221 | fn tri_3D_to_2D(a: &Array1, b: &Array1, c: &Array1, N: &Array1) -> (Array1, Array1, Array2) { [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `xcrossN` should have a snake case name [INFO] [stdout] --> src/universes.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | let xcrossN = cross(x.view(), N.view()); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `xcross_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `m_TU` should have a snake case name [INFO] [stdout] --> src/universes.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 227 | ... let m_TU = stack(Axis(0), &[x.view(), xcrossN.view()]).unwrap(); // TODO: convert all code to nalgebra so we have access to cross p... [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `m_tu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bT` should have a snake case name [INFO] [stdout] --> src/universes.rs:229:13 [INFO] [stdout] | [INFO] [stdout] 229 | let bT = arr1(&[ab_norm, 0.]); [INFO] [stdout] | ^^ help: convert the identifier to snake case: `b_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cT` should have a snake case name [INFO] [stdout] --> src/universes.rs:230:13 [INFO] [stdout] | [INFO] [stdout] 230 | let cT = m_TU.dot(c); [INFO] [stdout] | ^^ help: convert the identifier to snake case: `c_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bT` should have a snake case name [INFO] [stdout] --> src/universes.rs:327:18 [INFO] [stdout] | [INFO] [stdout] 327 | let (bT, cT, m_TU) = Universe::tri_3D_to_2D( [INFO] [stdout] | ^^ help: convert the identifier to snake case: `b_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cT` should have a snake case name [INFO] [stdout] --> src/universes.rs:327:22 [INFO] [stdout] | [INFO] [stdout] 327 | let (bT, cT, m_TU) = Universe::tri_3D_to_2D( [INFO] [stdout] | ^^ help: convert the identifier to snake case: `c_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `m_TU` should have a snake case name [INFO] [stdout] --> src/universes.rs:327:26 [INFO] [stdout] | [INFO] [stdout] 327 | let (bT, cT, m_TU) = Universe::tri_3D_to_2D( [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `m_tu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `aT` should have a snake case name [INFO] [stdout] --> src/universes.rs:334:17 [INFO] [stdout] | [INFO] [stdout] 334 | let aT = arr1(&[0., 0.]); [INFO] [stdout] | ^^ help: convert the identifier to snake case: `a_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `coords3D` should have a snake case name [INFO] [stdout] --> src/entities.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | coords3D: [f32; 3], [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `coords3_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 58 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.56s [INFO] running `Command { std: "docker" "inspect" "a51d097c7a5eedda85db7e985d436e29de9c4e5985a3517c6f1883e6df173c69", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a51d097c7a5eedda85db7e985d436e29de9c4e5985a3517c6f1883e6df173c69", kill_on_drop: false }` [INFO] [stdout] a51d097c7a5eedda85db7e985d436e29de9c4e5985a3517c6f1883e6df173c69 [INFO] checking Nibbetts/pocket_multiverse against try#d856f2da3433420b7077c0dc7ee9441455bc1302 for pr-128013 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNibbetts%2Fpocket_multiverse" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Nibbetts/pocket_multiverse on toolchain d856f2da3433420b7077c0dc7ee9441455bc1302 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Nibbetts/pocket_multiverse [INFO] finished tweaking git repo https://github.com/Nibbetts/pocket_multiverse [INFO] tweaked toml for git repo https://github.com/Nibbetts/pocket_multiverse written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Nibbetts/pocket_multiverse 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" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4450006e6b977fdd6a18e1712c994cd722fe8edaa0a3e89de410f20fcade1917 [INFO] running `Command { std: "docker" "start" "-a" "4450006e6b977fdd6a18e1712c994cd722fe8edaa0a3e89de410f20fcade1917", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4450006e6b977fdd6a18e1712c994cd722fe8edaa0a3e89de410f20fcade1917", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4450006e6b977fdd6a18e1712c994cd722fe8edaa0a3e89de410f20fcade1917", kill_on_drop: false }` [INFO] [stdout] 4450006e6b977fdd6a18e1712c994cd722fe8edaa0a3e89de410f20fcade1917 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8ca4e72e7e9f2f0944ba65c596a51979fc7dd68e8aa66d8e92649c6b673d6525 [INFO] running `Command { std: "docker" "start" "-a" "8ca4e72e7e9f2f0944ba65c596a51979fc7dd68e8aa66d8e92649c6b673d6525", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling version-compare v0.1.0 [INFO] [stderr] Compiling libc v0.2.124 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling sdl2 v0.35.2 [INFO] [stderr] Checking matrixmultiply v0.3.2 [INFO] [stderr] Checking unordered-pair v0.2.3 [INFO] [stderr] Checking json v0.12.4 [INFO] [stderr] Compiling sdl2-sys v0.35.2 [INFO] [stderr] Checking float-cmp v0.8.0 [INFO] [stderr] Checking num-complex v0.4.0 [INFO] [stderr] Checking stl_io v0.6.0 [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.44/src/lib.rs:482:41 [INFO] [stdout] | [INFO] [stdout] 482 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 791 | impl_integer_for_isize!(i8, test_integer_i8); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.44/src/lib.rs:482:41 [INFO] [stdout] | [INFO] [stdout] 482 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 792 | impl_integer_for_isize!(i16, test_integer_i16); [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.44/src/lib.rs:482:41 [INFO] [stdout] | [INFO] [stdout] 482 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 793 | impl_integer_for_isize!(i32, test_integer_i32); [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.44/src/lib.rs:482:41 [INFO] [stdout] | [INFO] [stdout] 482 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 794 | impl_integer_for_isize!(i64, test_integer_i64); [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.44/src/lib.rs:482:41 [INFO] [stdout] | [INFO] [stdout] 482 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 795 | impl_integer_for_isize!(isize, test_integer_isize); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.44/src/lib.rs:482:41 [INFO] [stdout] | [INFO] [stdout] 482 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 797 | impl_integer_for_isize!(i128, test_integer_i128); [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0034`. [INFO] [stdout] [INFO] [stderr] error: could not compile `num-integer` (lib) due to 7 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "8ca4e72e7e9f2f0944ba65c596a51979fc7dd68e8aa66d8e92649c6b673d6525", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ca4e72e7e9f2f0944ba65c596a51979fc7dd68e8aa66d8e92649c6b673d6525", kill_on_drop: false }` [INFO] [stdout] 8ca4e72e7e9f2f0944ba65c596a51979fc7dd68e8aa66d8e92649c6b673d6525