[INFO] cloning repository https://github.com/BenFordTytherington/ODE-Viewer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/BenFordTytherington/ODE-Viewer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBenFordTytherington%2FODE-Viewer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBenFordTytherington%2FODE-Viewer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 23d28e6890b059b980611edde3277ebf643c16b7 [INFO] testing BenFordTytherington/ODE-Viewer against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBenFordTytherington%2FODE-Viewer" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/BenFordTytherington/ODE-Viewer [INFO] finished tweaking git repo https://github.com/BenFordTytherington/ODE-Viewer [INFO] tweaked toml for git repo https://github.com/BenFordTytherington/ODE-Viewer written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/BenFordTytherington/ODE-Viewer on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/BenFordTytherington/ODE-Viewer 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded piston2d-opengl_graphics v0.83.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2e8b0c960f121674f27cd8c1430e42fc62aceeb0e218db8de5f63696e214835f [INFO] running `Command { std: "docker" "start" "-a" "2e8b0c960f121674f27cd8c1430e42fc62aceeb0e218db8de5f63696e214835f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2e8b0c960f121674f27cd8c1430e42fc62aceeb0e218db8de5f63696e214835f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e8b0c960f121674f27cd8c1430e42fc62aceeb0e218db8de5f63696e214835f", kill_on_drop: false }` [INFO] [stdout] 2e8b0c960f121674f27cd8c1430e42fc62aceeb0e218db8de5f63696e214835f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ef0b7be48faac4b2d0459774904ead7dff183163014a8a6818911bf75ec5b6a1 [INFO] running `Command { std: "docker" "start" "-a" "ef0b7be48faac4b2d0459774904ead7dff183163014a8a6818911bf75ec5b6a1", kill_on_drop: false }` [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling smallvec v1.11.1 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling wayland-sys v0.29.5 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Compiling piston-float v1.0.1 [INFO] [stderr] Compiling bytemuck v1.14.0 [INFO] [stderr] Compiling nix v0.24.3 [INFO] [stderr] Compiling flate2 v1.0.28 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Compiling rayon-core v1.12.0 [INFO] [stderr] Compiling memchr v2.6.4 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling piston-viewport v1.0.2 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling serde v1.0.190 [INFO] [stderr] Compiling nix v0.25.1 [INFO] [stderr] Compiling smithay-client-toolkit v0.16.1 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling strict-num v0.1.1 [INFO] [stderr] Compiling piston-graphics_api_version v1.0.1 [INFO] [stderr] Compiling png v0.17.10 [INFO] [stderr] Compiling ttf-parser v0.19.2 [INFO] [stderr] Compiling tiny-skia-path v0.8.4 [INFO] [stderr] Compiling gl_generator v0.13.1 [INFO] [stderr] Compiling memmap2 v0.5.10 [INFO] [stderr] Compiling wayland-sys v0.30.1 [INFO] [stderr] Compiling arrayvec v0.7.4 [INFO] [stderr] Compiling glutin_egl_sys v0.5.1 [INFO] [stderr] Compiling glutin_glx_sys v0.4.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Compiling crossbeam-deque v0.8.3 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling gl v0.13.0 [INFO] [stderr] Compiling winit v0.28.7 [INFO] [stderr] Compiling tiny-skia v0.8.4 [INFO] [stderr] Compiling rayon v1.8.0 [INFO] [stderr] Compiling wayland-commons v0.29.5 [INFO] [stderr] Compiling glutin v0.30.10 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling weezl v0.1.7 [INFO] [stderr] Compiling ttf-parser v0.15.2 [INFO] [stderr] Compiling owned_ttf_parser v0.19.0 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling ab_glyph v0.2.22 [INFO] [stderr] Compiling flume v0.11.0 [INFO] [stderr] Compiling mio v0.8.9 [INFO] [stderr] Compiling thiserror-impl v1.0.50 [INFO] [stderr] Compiling serde_derive v1.0.190 [INFO] [stderr] Compiling getrandom v0.2.10 [INFO] [stderr] Compiling xcursor v0.3.4 [INFO] [stderr] Compiling glutin-winit v0.3.0 [INFO] [stderr] Compiling zune-inflate v0.2.54 [INFO] [stderr] Compiling bit_field v0.10.2 [INFO] [stderr] Compiling half v2.2.1 [INFO] [stderr] Compiling lebe v0.5.2 [INFO] [stderr] Compiling percent-encoding v2.3.0 [INFO] [stderr] Compiling gif v0.12.0 [INFO] [stderr] Compiling exr v1.71.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling shader_version v0.7.0 [INFO] [stderr] Compiling qoi v0.4.1 [INFO] [stderr] Compiling vecmath v1.0.0 [INFO] [stderr] Compiling jpeg-decoder v0.3.0 [INFO] [stderr] Compiling piston-texture v0.9.0 [INFO] [stderr] Compiling spin_sleep v1.1.1 [INFO] [stderr] Compiling thiserror v1.0.50 [INFO] [stderr] Compiling calloop v0.10.6 [INFO] [stderr] Compiling owned_ttf_parser v0.15.2 [INFO] [stderr] Compiling interpolation v0.3.0 [INFO] [stderr] Compiling read_color v1.0.0 [INFO] [stderr] Compiling rusttype v0.9.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling wayland-cursor v0.29.5 [INFO] [stderr] Compiling piston-shaders_graphics2d v0.4.0 [INFO] [stderr] Compiling piston2d-graphics v0.44.0 [INFO] [stderr] Compiling tiff v0.9.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling pistoncore-input v1.0.1 [INFO] [stderr] Compiling pistoncore-window v1.0.0 [INFO] [stderr] Compiling image v0.24.7 [INFO] [stderr] Compiling pistoncore-event_loop v0.54.0 [INFO] [stderr] Compiling piston v0.54.0 [INFO] [stderr] Compiling piston2d-opengl_graphics v0.83.0 [INFO] [stderr] Compiling sctk-adwaita v0.5.4 [INFO] [stderr] Compiling pistoncore-glutin_window v0.72.0 [INFO] [stderr] Compiling ODEs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ButtonArgs`, `MouseCursorEvent`, and `PressEvent` [INFO] [stdout] --> src/main.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | use piston::{Button, ButtonArgs, ButtonEvent, ButtonState, Key, MouseCursorEvent, PressEvent}; [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 variable: `c` [INFO] [stdout] --> src/main.rs:104:40 [INFO] [stdout] | [INFO] [stdout] 104 | self.gl.draw(args.viewport(), |c, gl| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:114:14 [INFO] [stdout] | [INFO] [stdout] 114 | for (i, point) in self.solver.points().iter().enumerate() { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 114 | for (_i, point) in self.solver.points().iter().enumerate() { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `NUM_POINTS` [INFO] [stdout] | [INFO] [stdout] 114 - for (i, point) in self.solver.points().iter().enumerate() { [INFO] [stdout] 114 + for (NUM_POINTS, point) in self.solver.points().iter().enumerate() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:115:17 [INFO] [stdout] | [INFO] [stdout] 115 | let mut colour: [f32; 4] = [0.2, 1.0, 0.8, 1.0]; [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:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | let mut solver = EulerSolver::::new(x0, y0, x_dot, y_dot, 0.0001); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:265:10 [INFO] [stdout] | [INFO] [stdout] 265 | fn x_dot(x: f64, y: f64, t: f64) -> f64 { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 265 | fn x_dot(_x: f64, y: f64, t: f64) -> f64 { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `L` [INFO] [stdout] | [INFO] [stdout] 265 - fn x_dot(x: f64, y: f64, t: f64) -> f64 { [INFO] [stdout] 265 + fn x_dot(L: f64, y: f64, t: f64) -> f64 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/main.rs:265:26 [INFO] [stdout] | [INFO] [stdout] 265 | fn x_dot(x: f64, y: f64, t: f64) -> f64 { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 265 | fn x_dot(x: f64, y: f64, _t: f64) -> f64 { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `L` [INFO] [stdout] | [INFO] [stdout] 265 - fn x_dot(x: f64, y: f64, t: f64) -> f64 { [INFO] [stdout] 265 + fn x_dot(x: f64, y: f64, L: f64) -> f64 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/main.rs:269:26 [INFO] [stdout] | [INFO] [stdout] 269 | fn y_dot(x: f64, y: f64, t: f64) -> f64 { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 269 | fn y_dot(x: f64, y: f64, _t: f64) -> f64 { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `L` [INFO] [stdout] | [INFO] [stdout] 269 - fn y_dot(x: f64, y: f64, t: f64) -> f64 { [INFO] [stdout] 269 + fn y_dot(x: f64, y: f64, L: f64) -> f64 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Line` is never constructed [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 22 | enum DrawMode { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 23 | Point, [INFO] [stdout] 24 | Line [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `handle_mouse` is never used [INFO] [stdout] --> src/main.rs:146:8 [INFO] [stdout] | [INFO] [stdout] 36 | impl App { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 146 | fn handle_mouse(&mut self, x: f64, y: f64) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EulerSolver2` is never constructed [INFO] [stdout] --> src/solver.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct EulerSolver2 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `point`, and `iterate` are never used [INFO] [stdout] --> src/solver.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl EulerSolver2 { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(x: f64, y: f64, dx: impl Fn(f64, f64, f64) -> f64 + 'static, dy: impl Fn(f64, f64, f64) -> f64 + 'static, dt: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn point(&self) -> (f64, f64) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn iterate(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 22s [INFO] running `Command { std: "docker" "inspect" "ef0b7be48faac4b2d0459774904ead7dff183163014a8a6818911bf75ec5b6a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef0b7be48faac4b2d0459774904ead7dff183163014a8a6818911bf75ec5b6a1", kill_on_drop: false }` [INFO] [stdout] ef0b7be48faac4b2d0459774904ead7dff183163014a8a6818911bf75ec5b6a1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 49eaa469906b883449d3eb4293a5041881ae3435a9ac083dcb2feebc3c031c7a [INFO] running `Command { std: "docker" "start" "-a" "49eaa469906b883449d3eb4293a5041881ae3435a9ac083dcb2feebc3c031c7a", kill_on_drop: false }` [INFO] [stderr] Compiling ODEs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ButtonArgs`, `MouseCursorEvent`, and `PressEvent` [INFO] [stdout] --> src/main.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | use piston::{Button, ButtonArgs, ButtonEvent, ButtonState, Key, MouseCursorEvent, PressEvent}; [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 variable: `c` [INFO] [stdout] --> src/main.rs:104:40 [INFO] [stdout] | [INFO] [stdout] 104 | self.gl.draw(args.viewport(), |c, gl| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:114:14 [INFO] [stdout] | [INFO] [stdout] 114 | for (i, point) in self.solver.points().iter().enumerate() { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 114 | for (_i, point) in self.solver.points().iter().enumerate() { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `NUM_POINTS` [INFO] [stdout] | [INFO] [stdout] 114 - for (i, point) in self.solver.points().iter().enumerate() { [INFO] [stdout] 114 + for (NUM_POINTS, point) in self.solver.points().iter().enumerate() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:115:17 [INFO] [stdout] | [INFO] [stdout] 115 | let mut colour: [f32; 4] = [0.2, 1.0, 0.8, 1.0]; [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:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | let mut solver = EulerSolver::::new(x0, y0, x_dot, y_dot, 0.0001); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:265:10 [INFO] [stdout] | [INFO] [stdout] 265 | fn x_dot(x: f64, y: f64, t: f64) -> f64 { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 265 | fn x_dot(_x: f64, y: f64, t: f64) -> f64 { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `L` [INFO] [stdout] | [INFO] [stdout] 265 - fn x_dot(x: f64, y: f64, t: f64) -> f64 { [INFO] [stdout] 265 + fn x_dot(L: f64, y: f64, t: f64) -> f64 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/main.rs:265:26 [INFO] [stdout] | [INFO] [stdout] 265 | fn x_dot(x: f64, y: f64, t: f64) -> f64 { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 265 | fn x_dot(x: f64, y: f64, _t: f64) -> f64 { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `L` [INFO] [stdout] | [INFO] [stdout] 265 - fn x_dot(x: f64, y: f64, t: f64) -> f64 { [INFO] [stdout] 265 + fn x_dot(x: f64, y: f64, L: f64) -> f64 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/main.rs:269:26 [INFO] [stdout] | [INFO] [stdout] 269 | fn y_dot(x: f64, y: f64, t: f64) -> f64 { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 269 | fn y_dot(x: f64, y: f64, _t: f64) -> f64 { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `L` [INFO] [stdout] | [INFO] [stdout] 269 - fn y_dot(x: f64, y: f64, t: f64) -> f64 { [INFO] [stdout] 269 + fn y_dot(x: f64, y: f64, L: f64) -> f64 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Line` is never constructed [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 22 | enum DrawMode { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 23 | Point, [INFO] [stdout] 24 | Line [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `handle_mouse` is never used [INFO] [stdout] --> src/main.rs:146:8 [INFO] [stdout] | [INFO] [stdout] 36 | impl App { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 146 | fn handle_mouse(&mut self, x: f64, y: f64) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EulerSolver2` is never constructed [INFO] [stdout] --> src/solver.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct EulerSolver2 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `point`, and `iterate` are never used [INFO] [stdout] --> src/solver.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl EulerSolver2 { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(x: f64, y: f64, dx: impl Fn(f64, f64, f64) -> f64 + 'static, dy: impl Fn(f64, f64, f64) -> f64 + 'static, dt: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn point(&self) -> (f64, f64) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn iterate(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.73s [INFO] running `Command { std: "docker" "inspect" "49eaa469906b883449d3eb4293a5041881ae3435a9ac083dcb2feebc3c031c7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "49eaa469906b883449d3eb4293a5041881ae3435a9ac083dcb2feebc3c031c7a", kill_on_drop: false }` [INFO] [stdout] 49eaa469906b883449d3eb4293a5041881ae3435a9ac083dcb2feebc3c031c7a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 21468b38fcf3b27f4535e0853a100c6b496703201ac1294347ec00bd54641197 [INFO] running `Command { std: "docker" "start" "-a" "21468b38fcf3b27f4535e0853a100c6b496703201ac1294347ec00bd54641197", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `ButtonArgs`, `MouseCursorEvent`, and `PressEvent` [INFO] [stderr] --> src/main.rs:10:22 [INFO] [stderr] | [INFO] [stderr] 10 | use piston::{Button, ButtonArgs, ButtonEvent, ButtonState, Key, MouseCursorEvent, PressEvent}; [INFO] [stderr] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/main.rs:104:40 [INFO] [stderr] | [INFO] [stderr] 104 | self.gl.draw(args.viewport(), |c, gl| { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/main.rs:114:14 [INFO] [stderr] | [INFO] [stderr] 114 | for (i, point) in self.solver.points().iter().enumerate() { [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] help: if this is intentional, prefix it with an underscore [INFO] [stderr] | [INFO] [stderr] 114 | for (_i, point) in self.solver.points().iter().enumerate() { [INFO] [stderr] | + [INFO] [stderr] help: you might have meant to pattern match on the similarly named constant `NUM_POINTS` [INFO] [stderr] | [INFO] [stderr] 114 - for (i, point) in self.solver.points().iter().enumerate() { [INFO] [stderr] 114 + for (NUM_POINTS, point) in self.solver.points().iter().enumerate() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:115:17 [INFO] [stderr] | [INFO] [stderr] 115 | let mut colour: [f32; 4] = [0.2, 1.0, 0.8, 1.0]; [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:168:9 [INFO] [stderr] | [INFO] [stderr] 168 | let mut solver = EulerSolver::::new(x0, y0, x_dot, y_dot, 0.0001); [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/main.rs:265:10 [INFO] [stderr] | [INFO] [stderr] 265 | fn x_dot(x: f64, y: f64, t: f64) -> f64 { [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] help: if this is intentional, prefix it with an underscore [INFO] [stderr] | [INFO] [stderr] 265 | fn x_dot(_x: f64, y: f64, t: f64) -> f64 { [INFO] [stderr] | + [INFO] [stderr] help: you might have meant to pattern match on the similarly named constant `L` [INFO] [stderr] | [INFO] [stderr] 265 - fn x_dot(x: f64, y: f64, t: f64) -> f64 { [INFO] [stderr] 265 + fn x_dot(L: f64, y: f64, t: f64) -> f64 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `t` [INFO] [stderr] --> src/main.rs:265:26 [INFO] [stderr] | [INFO] [stderr] 265 | fn x_dot(x: f64, y: f64, t: f64) -> f64 { [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] help: if this is intentional, prefix it with an underscore [INFO] [stderr] | [INFO] [stderr] 265 | fn x_dot(x: f64, y: f64, _t: f64) -> f64 { [INFO] [stderr] | + [INFO] [stderr] help: you might have meant to pattern match on the similarly named constant `L` [INFO] [stderr] | [INFO] [stderr] 265 - fn x_dot(x: f64, y: f64, t: f64) -> f64 { [INFO] [stderr] 265 + fn x_dot(x: f64, y: f64, L: f64) -> f64 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `t` [INFO] [stderr] --> src/main.rs:269:26 [INFO] [stderr] | [INFO] [stderr] 269 | fn y_dot(x: f64, y: f64, t: f64) -> f64 { [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] help: if this is intentional, prefix it with an underscore [INFO] [stderr] | [INFO] [stderr] 269 | fn y_dot(x: f64, y: f64, _t: f64) -> f64 { [INFO] [stderr] | + [INFO] [stderr] help: you might have meant to pattern match on the similarly named constant `L` [INFO] [stderr] | [INFO] [stderr] 269 - fn y_dot(x: f64, y: f64, t: f64) -> f64 { [INFO] [stderr] 269 + fn y_dot(x: f64, y: f64, L: f64) -> f64 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: variant `Line` is never constructed [INFO] [stderr] --> src/main.rs:24:5 [INFO] [stderr] | [INFO] [stderr] 22 | enum DrawMode { [INFO] [stderr] | -------- variant in this enum [INFO] [stderr] 23 | Point, [INFO] [stderr] 24 | Line [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: method `handle_mouse` is never used [INFO] [stderr] --> src/main.rs:146:8 [INFO] [stderr] | [INFO] [stderr] 36 | impl App { [INFO] [stderr] | -------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 146 | fn handle_mouse(&mut self, x: f64, y: f64) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `EulerSolver2` is never constructed [INFO] [stderr] --> src/solver.rs:1:12 [INFO] [stderr] | [INFO] [stderr] 1 | pub struct EulerSolver2 { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `point`, and `iterate` are never used [INFO] [stderr] --> src/solver.rs:11:12 [INFO] [stderr] | [INFO] [stderr] 10 | impl EulerSolver2 { [INFO] [stderr] | ----------------- associated items in this implementation [INFO] [stderr] 11 | pub fn new(x: f64, y: f64, dx: impl Fn(f64, f64, f64) -> f64 + 'static, dy: impl Fn(f64, f64, f64) -> f64 + 'static, dt: f64) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 21 | pub fn point(&self) -> (f64, f64) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 25 | pub fn iterate(&mut self) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `ODEs` (bin "ODEs" test) generated 12 warnings (run `cargo fix --bin "ODEs" --tests` to apply 7 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.20s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/ODEs-552415d36425cd12) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "21468b38fcf3b27f4535e0853a100c6b496703201ac1294347ec00bd54641197", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21468b38fcf3b27f4535e0853a100c6b496703201ac1294347ec00bd54641197", kill_on_drop: false }` [INFO] [stdout] 21468b38fcf3b27f4535e0853a100c6b496703201ac1294347ec00bd54641197