[INFO] cloning repository https://github.com/teunvw14/renderer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/teunvw14/renderer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fteunvw14%2Frenderer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fteunvw14%2Frenderer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e16090d04b80b0f02d1cf661335850732017c736 [INFO] building teunvw14/renderer against try#434cce50d8e9a9de0ddaaccaca51e3e3f4bbb275 for pr-101591 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fteunvw14%2Frenderer" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/teunvw14/renderer on toolchain 434cce50d8e9a9de0ddaaccaca51e3e3f4bbb275 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+434cce50d8e9a9de0ddaaccaca51e3e3f4bbb275" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/teunvw14/renderer [INFO] finished tweaking git repo https://github.com/teunvw14/renderer [INFO] tweaked toml for git repo https://github.com/teunvw14/renderer written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/teunvw14/renderer already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+434cce50d8e9a9de0ddaaccaca51e3e3f4bbb275" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+434cce50d8e9a9de0ddaaccaca51e3e3f4bbb275" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2d8f7646a6d345740814fda1dc9aa1df5007ecb1386ff3b4eb1880417f7a7644 [INFO] running `Command { std: "docker" "start" "-a" "2d8f7646a6d345740814fda1dc9aa1df5007ecb1386ff3b4eb1880417f7a7644", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2d8f7646a6d345740814fda1dc9aa1df5007ecb1386ff3b4eb1880417f7a7644", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2d8f7646a6d345740814fda1dc9aa1df5007ecb1386ff3b4eb1880417f7a7644", kill_on_drop: false }` [INFO] [stdout] 2d8f7646a6d345740814fda1dc9aa1df5007ecb1386ff3b4eb1880417f7a7644 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+434cce50d8e9a9de0ddaaccaca51e3e3f4bbb275" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9c74a7525a26fe9c0c437f7da23e3c696d16fcde647b861406f3e8dbae65155b [INFO] running `Command { std: "docker" "start" "-a" "9c74a7525a26fe9c0c437f7da23e3c696d16fcde647b861406f3e8dbae65155b", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.113 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling once_cell v1.9.0 [INFO] [stderr] Compiling pkg-config v0.3.24 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling xml-rs v0.8.4 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling crossbeam-utils v0.8.7 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling cty v0.2.2 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling scoped-tls v1.0.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.7 [INFO] [stderr] Compiling downcast-rs v1.2.0 [INFO] [stderr] Compiling unicode-width v0.1.9 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling khronos-egl v4.1.0 [INFO] [stderr] Compiling ash v0.34.0+1.2.203 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling bytemuck v1.7.3 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Compiling hexf-parse v0.2.1 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling glow v0.11.2 [INFO] [stderr] Compiling profiling v1.0.5 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling renderdoc-sys v0.7.1 [INFO] [stderr] Compiling inplace_it v0.3.3 [INFO] [stderr] Compiling crossbeam-queue v0.3.4 [INFO] [stderr] Compiling copyless v0.1.5 [INFO] [stderr] Compiling winit v0.26.1 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling pollster v0.2.5 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling quick-error v2.0.1 [INFO] [stderr] Compiling gpu-descriptor-types v0.1.1 [INFO] [stderr] Compiling gpu-alloc-types v0.2.0 [INFO] [stderr] Compiling wgpu-types v0.12.0 [INFO] [stderr] Compiling lock_api v0.4.5 [INFO] [stderr] Compiling libloading v0.7.3 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling raw-window-handle v0.4.2 [INFO] [stderr] Compiling bit-set v0.5.2 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling nom v7.1.0 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling wayland-sys v0.29.4 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling smithay-client-toolkit v0.15.3 [INFO] [stderr] Compiling x11-dl v2.19.1 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling wgpu-core v0.12.2 [INFO] [stderr] Compiling safe_arch v0.5.2 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling gpu-alloc v0.5.3 [INFO] [stderr] Compiling dlib v0.5.0 [INFO] [stderr] Compiling wide v0.6.5 [INFO] [stderr] Compiling crossbeam-channel v0.5.2 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling ultraviolet v0.8.1 [INFO] [stderr] Compiling wayland-scanner v0.29.4 [INFO] [stderr] Compiling getrandom v0.2.4 [INFO] [stderr] Compiling nix v0.22.3 [INFO] [stderr] Compiling memmap2 v0.3.1 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling mio v0.8.0 [INFO] [stderr] Compiling crossbeam-deque v0.8.1 [INFO] [stderr] Compiling spirv v0.2.0+1.5.4 [INFO] [stderr] Compiling xcursor v0.3.4 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling crossbeam v0.8.1 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling wayland-client v0.29.4 [INFO] [stderr] Compiling wayland-protocols v0.29.4 [INFO] [stderr] Compiling gpu-descriptor v0.2.2 [INFO] [stderr] Compiling wayland-commons v0.29.4 [INFO] [stderr] Compiling calloop v0.9.3 [INFO] [stderr] Compiling wayland-cursor v0.29.4 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling naga v0.8.3 [INFO] [stderr] Compiling rgb v0.8.31 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling wgpu-hal v0.12.3 [INFO] [stderr] Compiling winit_input_helper v0.11.0 [INFO] [stderr] Compiling wgpu v0.12.0 [INFO] [stderr] Compiling pixels v0.9.0 [INFO] [stderr] Compiling renderer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `SphericalCoordinates` [INFO] [stdout] --> src/camera.rs:4:31 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::util::{Resolution, SphericalCoordinates}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Event` [INFO] [stdout] --> src/input.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use winit::event::{Event, VirtualKeyCode}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/objects.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader`, `BufWriter`, `Read` [INFO] [stdout] --> src/objects.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{BufReader, BufWriter, Read}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DerefMut`, `Deref` [INFO] [stdout] --> src/objects.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | use std::ops::{Deref, DerefMut}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/objects.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `max` [INFO] [stdout] --> src/renderer.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vec3` [INFO] [stdout] --> src/util.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::vector::{vec3, Vec3}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serializer`, `ser::SerializeStruct` [INFO] [stdout] --> src/util.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use serde::{ser::SerializeStruct, Deserialize, Serialize, Serializer}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `f32::consts::PI` [INFO] [stdout] --> src/vector.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | f32::consts::PI, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f32::consts::PI` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::f32::consts::PI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ImagePlane` [INFO] [stdout] --> src/main.rs:22:22 [INFO] [stdout] | [INFO] [stdout] 22 | use camera::{Camera, ImagePlane}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `multithreading` [INFO] [stdout] --> src/input.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | multithreading: &mut bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_multithreading` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `translate` is never used [INFO] [stdout] --> src/camera.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn translate(&mut self, by: Vec3) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_view_direction` is never used [INFO] [stdout] --> src/camera.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn get_view_direction(&self) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_field_of_view_horizontal` is never used [INFO] [stdout] --> src/camera.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn get_field_of_view_horizontal(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/util.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum RealRange { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 22 | /// A range that allows all values. [INFO] [stdout] 23 | All, [INFO] [stdout] | ^^^ [INFO] [stdout] 24 | /// A closed range that allows all values in \[a, b\], i.e. all x such that a <= x <= b. [INFO] [stdout] 25 | Closed(f32, f32), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 26 | /// An open range that allows all values in (a, b), i.e. all x such that a < x < b. [INFO] [stdout] 27 | Open(f32, f32), [INFO] [stdout] | ^^^^ [INFO] [stdout] 28 | /// A half-open range that allows all values in [a, b) i.e. all x such that a <= x < b. [INFO] [stdout] 29 | HalfOpenR(f32, f32), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 30 | /// A half-open range that allows all values in (a, b] i.e. all x such that a < x <= b. [INFO] [stdout] 31 | HalfOpenL(f32, f32), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 32 | /// A range that allows all values smaller than some a, i.e. all x such that x < a. [INFO] [stdout] 33 | SmallerThan(f32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 34 | /// A range that allows all values smaller than or equal to some a, i.e. all x such that x <= a. [INFO] [stdout] 35 | SmallerEqual(f32), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | LargerEqual(f32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RealRange` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `save_object_as_file_json` is never used [INFO] [stdout] --> src/util.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 136 | pub fn save_object_as_file_json(object: O, path: P) -> Result<(), Box> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `save_object_as_file_bin` is never used [INFO] [stdout] --> src/util.rs:160:8 [INFO] [stdout] | [INFO] [stdout] 160 | pub fn save_object_as_file_bin(object: O, path: P) -> Result<(), Box> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_object_from_file_bin` is never used [INFO] [stdout] --> src/util.rs:171:8 [INFO] [stdout] | [INFO] [stdout] 171 | pub fn load_object_from_file_bin(path: P) -> Result> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vec2` is never constructed [INFO] [stdout] --> src/vector.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Vec2 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec2` is never used [INFO] [stdout] --> src/vector.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn vec2(x: f32, y: f32) -> Vec2 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `distance_to` is never used [INFO] [stdout] --> src/vector.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn distance_to(&self, other: Self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `rotate_x_rad` is never used [INFO] [stdout] --> src/vector.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn rotate_x_rad(&mut self, angle: f32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/util.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | std::io::stdout().flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 28s [INFO] running `Command { std: "docker" "inspect" "9c74a7525a26fe9c0c437f7da23e3c696d16fcde647b861406f3e8dbae65155b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9c74a7525a26fe9c0c437f7da23e3c696d16fcde647b861406f3e8dbae65155b", kill_on_drop: false }` [INFO] [stdout] 9c74a7525a26fe9c0c437f7da23e3c696d16fcde647b861406f3e8dbae65155b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+434cce50d8e9a9de0ddaaccaca51e3e3f4bbb275" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a509a20c48935bd7d592433a123b5db5f54caf4f8b8f756f094e54ca655ca127 [INFO] running `Command { std: "docker" "start" "-a" "a509a20c48935bd7d592433a123b5db5f54caf4f8b8f756f094e54ca655ca127", kill_on_drop: false }` [INFO] [stderr] Compiling renderer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `SphericalCoordinates` [INFO] [stdout] --> src/camera.rs:4:31 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::util::{Resolution, SphericalCoordinates}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Event` [INFO] [stdout] --> src/input.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use winit::event::{Event, VirtualKeyCode}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/objects.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader`, `BufWriter`, `Read` [INFO] [stdout] --> src/objects.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{BufReader, BufWriter, Read}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DerefMut`, `Deref` [INFO] [stdout] --> src/objects.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | use std::ops::{Deref, DerefMut}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/objects.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `max` [INFO] [stdout] --> src/renderer.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serializer`, `ser::SerializeStruct` [INFO] [stdout] --> src/util.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use serde::{ser::SerializeStruct, Deserialize, Serialize, Serializer}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f32::consts::PI` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::f32::consts::PI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ImagePlane` [INFO] [stdout] --> src/main.rs:22:22 [INFO] [stdout] | [INFO] [stdout] 22 | use camera::{Camera, ImagePlane}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `multithreading` [INFO] [stdout] --> src/input.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | multithreading: &mut bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_multithreading` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `translate` is never used [INFO] [stdout] --> src/camera.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn translate(&mut self, by: Vec3) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_view_direction` is never used [INFO] [stdout] --> src/camera.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn get_view_direction(&self) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_field_of_view_horizontal` is never used [INFO] [stdout] --> src/camera.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn get_field_of_view_horizontal(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/util.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum RealRange { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 22 | /// A range that allows all values. [INFO] [stdout] 23 | All, [INFO] [stdout] | ^^^ [INFO] [stdout] 24 | /// A closed range that allows all values in \[a, b\], i.e. all x such that a <= x <= b. [INFO] [stdout] 25 | Closed(f32, f32), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 26 | /// An open range that allows all values in (a, b), i.e. all x such that a < x < b. [INFO] [stdout] 27 | Open(f32, f32), [INFO] [stdout] | ^^^^ [INFO] [stdout] 28 | /// A half-open range that allows all values in [a, b) i.e. all x such that a <= x < b. [INFO] [stdout] 29 | HalfOpenR(f32, f32), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 30 | /// A half-open range that allows all values in (a, b] i.e. all x such that a < x <= b. [INFO] [stdout] 31 | HalfOpenL(f32, f32), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 32 | /// A range that allows all values smaller than some a, i.e. all x such that x < a. [INFO] [stdout] 33 | SmallerThan(f32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 34 | /// A range that allows all values smaller than or equal to some a, i.e. all x such that x <= a. [INFO] [stdout] 35 | SmallerEqual(f32), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | LargerEqual(f32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RealRange` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `save_object_as_file_json` is never used [INFO] [stdout] --> src/util.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 136 | pub fn save_object_as_file_json(object: O, path: P) -> Result<(), Box> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `save_object_as_file_bin` is never used [INFO] [stdout] --> src/util.rs:160:8 [INFO] [stdout] | [INFO] [stdout] 160 | pub fn save_object_as_file_bin(object: O, path: P) -> Result<(), Box> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_object_from_file_bin` is never used [INFO] [stdout] --> src/util.rs:171:8 [INFO] [stdout] | [INFO] [stdout] 171 | pub fn load_object_from_file_bin(path: P) -> Result> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vec2` is never constructed [INFO] [stdout] --> src/vector.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Vec2 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec2` is never used [INFO] [stdout] --> src/vector.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn vec2(x: f32, y: f32) -> Vec2 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `distance_to` is never used [INFO] [stdout] --> src/vector.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn distance_to(&self, other: Self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `rotate_x_rad` is never used [INFO] [stdout] --> src/vector.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn rotate_x_rad(&mut self, angle: f32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/util.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | std::io::stdout().flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.70s [INFO] running `Command { std: "docker" "inspect" "a509a20c48935bd7d592433a123b5db5f54caf4f8b8f756f094e54ca655ca127", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a509a20c48935bd7d592433a123b5db5f54caf4f8b8f756f094e54ca655ca127", kill_on_drop: false }` [INFO] [stdout] a509a20c48935bd7d592433a123b5db5f54caf4f8b8f756f094e54ca655ca127