[INFO] cloning repository https://github.com/ousaj/fluid-sim [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ousaj/fluid-sim" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fousaj%2Ffluid-sim", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fousaj%2Ffluid-sim'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ceabd825373a7009578ca8855210a5c88cd28f55 [INFO] building ousaj/fluid-sim against try#8b8eff55bd72abbb57167bc42222a7f91d41cb0d for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fousaj%2Ffluid-sim" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ousaj/fluid-sim on toolchain 8b8eff55bd72abbb57167bc42222a7f91d41cb0d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ousaj/fluid-sim [INFO] finished tweaking git repo https://github.com/ousaj/fluid-sim [INFO] tweaked toml for git repo https://github.com/ousaj/fluid-sim written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ousaj/fluid-sim 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" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 51b50bd58a1ebdd5e1f54b06c0797436f16620688c1c1268eca52138d611f9a8 [INFO] running `Command { std: "docker" "start" "-a" "51b50bd58a1ebdd5e1f54b06c0797436f16620688c1c1268eca52138d611f9a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "51b50bd58a1ebdd5e1f54b06c0797436f16620688c1c1268eca52138d611f9a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "51b50bd58a1ebdd5e1f54b06c0797436f16620688c1c1268eca52138d611f9a8", kill_on_drop: false }` [INFO] [stdout] 51b50bd58a1ebdd5e1f54b06c0797436f16620688c1c1268eca52138d611f9a8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 30ad0676da4f5d1c5e50b654094dda9bab9b685d38e53bd4b37f3d506d5f7291 [INFO] running `Command { std: "docker" "start" "-a" "30ad0676da4f5d1c5e50b654094dda9bab9b685d38e53bd4b37f3d506d5f7291", kill_on_drop: false }` [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling zerocopy v0.8.24 [INFO] [stderr] Compiling version-compare v0.1.1 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling cc v1.2.19 [INFO] [stderr] Compiling xml-rs v0.8.26 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling sdl2 v0.37.0 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling cmake v0.1.54 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling sdl2-sys v0.37.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling gl v0.14.0 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rusty-sdl2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::position::Position` [INFO] [stdout] --> src/fluid.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::position::Position; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::color::Color` [INFO] [stdout] --> src/fluid.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::color::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CellType` and `Cell` [INFO] [stdout] --> src/fluid.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::cell::{Cell, CellType}; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::particle::Particle` [INFO] [stdout] --> src/fluid.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::particle::Particle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::prelude` [INFO] [stdout] --> src/scene.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::prelude` [INFO] [stdout] --> src/fluid.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/fluid.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fluid.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | let mut grid_vertices: [f32; 5 * GRID_LINES] = [0.0; 5 * GRID_LINES]; [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/fluid.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let mut grid_indices: [u32; 2 * GRID_LINES] = [0; 2 * GRID_LINES]; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fluid.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | let mut particle_vertices: [f32; 5 * MAX_PARTICLES] = [0.0; 5 * MAX_PARTICLES]; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iter` [INFO] [stdout] --> src/fluid.rs:301:13 [INFO] [stdout] | [INFO] [stdout] 301 | for iter in 0..num_iters { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_iter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `or2` [INFO] [stdout] --> src/fluid.rs:370:13 [INFO] [stdout] | [INFO] [stdout] 370 | let or2: f32 = or * or; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_or2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iter` [INFO] [stdout] --> src/fluid.rs:614:13 [INFO] [stdout] | [INFO] [stdout] 614 | for iter in 0..num_iters { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_iter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `vao` is never read [INFO] [stdout] --> src/scene.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Scene { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | vao: Vao, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `sdl`, `gl_context`, and `gl` are never read [INFO] [stdout] --> src/windsl.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Windsl { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 4 | pub sdl: Sdl, [INFO] [stdout] | ^^^ [INFO] [stdout] 5 | pub window: Window, [INFO] [stdout] 6 | pub gl_context: GLContext, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 7 | pub gl: (), [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `U_FIELD` is never used [INFO] [stdout] --> src/fluid.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const U_FIELD: u32 = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `V_FIELD` is never used [INFO] [stdout] --> src/fluid.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const V_FIELD: u32 = 1; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `grid_vertices`, `grid_indices`, `f_num_cells`, `max_particles`, `p_num_cells`, and `num_particles` are never read [INFO] [stdout] --> src/fluid.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct Fluid { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 55 | pub grid_vertices: [f32; 5 * GRID_LINES], [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 56 | pub grid_indices: [u32; 2 * GRID_LINES], [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub f_num_cells: f32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub max_particles: f32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub p_num_cells: f32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub num_particles: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `normalize_x`, `normalize_y`, `clamp`, `get_row_index`, `get_column_index`, and `get_cell_index` are never used [INFO] [stdout] --> src/utils.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Utils { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 4 | pub fn normalize_x(x: f32, width: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | pub fn normalize_y(y: f32, height: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn clamp(x: f32, min: f32, max: f32) -> f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn get_row_index(x: f32, normalized_cell_size: f32, rows: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn get_column_index(y: f32, normalized_cell_size: f32, columns: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn get_cell_index(row: u32, column: u32, rows: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `fromPosition` is never used [INFO] [stdout] --> src/position.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Position { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn fromPosition(position: Position) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Color` is never constructed [INFO] [stdout] --> src/color.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Color` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `from_color`, `border_color`, and `background_color` are never used [INFO] [stdout] --> src/color.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Color { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 9 | pub fn new(r: f32, g: f32, b: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn from_color(color: Color) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn border_color() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn background_color() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `fromVelocity` is never used [INFO] [stdout] --> src/velocity.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Velocity { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn fromVelocity(velocity: Velocity) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CellType` is never used [INFO] [stdout] --> src/cell.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum CellType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CellType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cell` is never constructed [INFO] [stdout] --> src/cell.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Cell { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cell` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cell.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Cell { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 26 | pub fn new(position: Position, color: Color, cell_type: CellType) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Particle` is never constructed [INFO] [stdout] --> src/particle.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Particle { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Particle` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/particle.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Particle { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 14 | pub fn new(position: Position, color: Color) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `viscosity` and `color_diffusion_coeff` are never read [INFO] [stdout] --> src/config.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct Environment { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 41 | pub gravity: f32, [INFO] [stdout] 42 | pub viscosity: f32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub color_diffusion_coeff: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `are_particles_visible` and `is_grid_visible` are never read [INFO] [stdout] --> src/config.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct Scene { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 56 | pub are_particles_visible: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 57 | pub is_grid_visible: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fromPosition` should have a snake case name [INFO] [stdout] --> src/position.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn fromPosition(position: Position) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `from_position` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fromVelocity` should have a snake case name [INFO] [stdout] --> src/velocity.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn fromVelocity(velocity: Velocity) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `from_velocity` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 02s [INFO] running `Command { std: "docker" "inspect" "30ad0676da4f5d1c5e50b654094dda9bab9b685d38e53bd4b37f3d506d5f7291", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "30ad0676da4f5d1c5e50b654094dda9bab9b685d38e53bd4b37f3d506d5f7291", kill_on_drop: false }` [INFO] [stdout] 30ad0676da4f5d1c5e50b654094dda9bab9b685d38e53bd4b37f3d506d5f7291 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a6e5a93fb4aade22134e6685916f6b4b5ae2a04443cec38d8c65773626e4f2eb [INFO] running `Command { std: "docker" "start" "-a" "a6e5a93fb4aade22134e6685916f6b4b5ae2a04443cec38d8c65773626e4f2eb", kill_on_drop: false }` [INFO] [stderr] Compiling rusty-sdl2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::position::Position` [INFO] [stdout] --> src/fluid.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::position::Position; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::color::Color` [INFO] [stdout] --> src/fluid.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::color::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CellType` and `Cell` [INFO] [stdout] --> src/fluid.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::cell::{Cell, CellType}; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::particle::Particle` [INFO] [stdout] --> src/fluid.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::particle::Particle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::prelude` [INFO] [stdout] --> src/scene.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::prelude` [INFO] [stdout] --> src/fluid.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/fluid.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fluid.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | let mut grid_vertices: [f32; 5 * GRID_LINES] = [0.0; 5 * GRID_LINES]; [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/fluid.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let mut grid_indices: [u32; 2 * GRID_LINES] = [0; 2 * GRID_LINES]; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fluid.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | let mut particle_vertices: [f32; 5 * MAX_PARTICLES] = [0.0; 5 * MAX_PARTICLES]; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iter` [INFO] [stdout] --> src/fluid.rs:301:13 [INFO] [stdout] | [INFO] [stdout] 301 | for iter in 0..num_iters { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_iter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `or2` [INFO] [stdout] --> src/fluid.rs:370:13 [INFO] [stdout] | [INFO] [stdout] 370 | let or2: f32 = or * or; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_or2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iter` [INFO] [stdout] --> src/fluid.rs:614:13 [INFO] [stdout] | [INFO] [stdout] 614 | for iter in 0..num_iters { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_iter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `vao` is never read [INFO] [stdout] --> src/scene.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Scene { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | vao: Vao, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `sdl`, `gl_context`, and `gl` are never read [INFO] [stdout] --> src/windsl.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Windsl { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 4 | pub sdl: Sdl, [INFO] [stdout] | ^^^ [INFO] [stdout] 5 | pub window: Window, [INFO] [stdout] 6 | pub gl_context: GLContext, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 7 | pub gl: (), [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `U_FIELD` is never used [INFO] [stdout] --> src/fluid.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const U_FIELD: u32 = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `V_FIELD` is never used [INFO] [stdout] --> src/fluid.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const V_FIELD: u32 = 1; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `grid_vertices`, `grid_indices`, `f_num_cells`, `max_particles`, `p_num_cells`, and `num_particles` are never read [INFO] [stdout] --> src/fluid.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct Fluid { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 55 | pub grid_vertices: [f32; 5 * GRID_LINES], [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 56 | pub grid_indices: [u32; 2 * GRID_LINES], [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub f_num_cells: f32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub max_particles: f32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub p_num_cells: f32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub num_particles: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `normalize_x`, `normalize_y`, `clamp`, `get_row_index`, `get_column_index`, and `get_cell_index` are never used [INFO] [stdout] --> src/utils.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Utils { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 4 | pub fn normalize_x(x: f32, width: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | pub fn normalize_y(y: f32, height: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn clamp(x: f32, min: f32, max: f32) -> f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn get_row_index(x: f32, normalized_cell_size: f32, rows: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn get_column_index(y: f32, normalized_cell_size: f32, columns: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn get_cell_index(row: u32, column: u32, rows: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `fromPosition` is never used [INFO] [stdout] --> src/position.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Position { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn fromPosition(position: Position) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Color` is never constructed [INFO] [stdout] --> src/color.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Color` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `from_color`, `border_color`, and `background_color` are never used [INFO] [stdout] --> src/color.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Color { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 9 | pub fn new(r: f32, g: f32, b: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn from_color(color: Color) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn border_color() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn background_color() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `fromVelocity` is never used [INFO] [stdout] --> src/velocity.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Velocity { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn fromVelocity(velocity: Velocity) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CellType` is never used [INFO] [stdout] --> src/cell.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum CellType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CellType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cell` is never constructed [INFO] [stdout] --> src/cell.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Cell { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cell` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cell.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Cell { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 26 | pub fn new(position: Position, color: Color, cell_type: CellType) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Particle` is never constructed [INFO] [stdout] --> src/particle.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Particle { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Particle` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/particle.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Particle { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 14 | pub fn new(position: Position, color: Color) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `viscosity` and `color_diffusion_coeff` are never read [INFO] [stdout] --> src/config.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct Environment { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 41 | pub gravity: f32, [INFO] [stdout] 42 | pub viscosity: f32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub color_diffusion_coeff: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `are_particles_visible` and `is_grid_visible` are never read [INFO] [stdout] --> src/config.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct Scene { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 56 | pub are_particles_visible: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 57 | pub is_grid_visible: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fromPosition` should have a snake case name [INFO] [stdout] --> src/position.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn fromPosition(position: Position) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `from_position` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fromVelocity` should have a snake case name [INFO] [stdout] --> src/velocity.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn fromVelocity(velocity: Velocity) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `from_velocity` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.51s [INFO] running `Command { std: "docker" "inspect" "a6e5a93fb4aade22134e6685916f6b4b5ae2a04443cec38d8c65773626e4f2eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a6e5a93fb4aade22134e6685916f6b4b5ae2a04443cec38d8c65773626e4f2eb", kill_on_drop: false }` [INFO] [stdout] a6e5a93fb4aade22134e6685916f6b4b5ae2a04443cec38d8c65773626e4f2eb