[INFO] cloning repository https://github.com/bumzack/raytracer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bumzack/raytracer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbumzack%2Fraytracer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbumzack%2Fraytracer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7997bd3a992cf722e4de5c646bacb01200cb8c8c [INFO] testing bumzack/raytracer against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbumzack%2Fraytracer" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bumzack/raytracer on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/bumzack/raytracer [INFO] finished tweaking git repo https://github.com/bumzack/raytracer [INFO] tweaked toml for git repo https://github.com/bumzack/raytracer written to /workspace/builds/worker-12/source/Cargo.toml [INFO] crate git repo https://github.com/bumzack/raytracer already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded proc-macro2 v0.4.29 [INFO] [stderr] Downloaded bitflags v1.0.5 [INFO] [stderr] Downloaded syn v0.15.33 [INFO] [stderr] Downloaded image v0.21.1 [INFO] [stderr] Downloaded libc v0.2.54 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 2c5dfea814556ba43568f12e7294cd45f5446e9f822d2474a174bfe9ea5adb1a [INFO] running `Command { std: "docker" "start" "-a" "2c5dfea814556ba43568f12e7294cd45f5446e9f822d2474a174bfe9ea5adb1a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2c5dfea814556ba43568f12e7294cd45f5446e9f822d2474a174bfe9ea5adb1a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c5dfea814556ba43568f12e7294cd45f5446e9f822d2474a174bfe9ea5adb1a", kill_on_drop: false }` [INFO] [stdout] 2c5dfea814556ba43568f12e7294cd45f5446e9f822d2474a174bfe9ea5adb1a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] e883f532a7c23672326202e5ff3790859c62f17e078afdb40e82102fac02acf7 [INFO] running `Command { std: "docker" "start" "-a" "e883f532a7c23672326202e5ff3790859c62f17e078afdb40e82102fac02acf7", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.54 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling arrayvec v0.4.10 [INFO] [stderr] Compiling cfg-if v0.1.7 [INFO] [stderr] Compiling proc-macro2 v0.4.29 [INFO] [stderr] Compiling byteorder v1.3.1 [INFO] [stderr] Compiling nodrop v0.1.13 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Compiling lazy_static v1.3.0 [INFO] [stderr] Compiling syn v0.15.33 [INFO] [stderr] Compiling bitflags v1.0.5 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling rayon v1.0.3 [INFO] [stderr] Compiling adler32 v1.0.3 [INFO] [stderr] Compiling either v1.5.2 [INFO] [stderr] Compiling num-rational v0.2.1 [INFO] [stderr] Compiling lzw v0.10.0 [INFO] [stderr] Compiling color_quant v1.0.1 [INFO] [stderr] Compiling num-iter v0.1.37 [INFO] [stderr] Compiling crossbeam-utils v0.2.2 [INFO] [stderr] Compiling inflate v0.4.5 [INFO] [stderr] Compiling gif v0.10.1 [INFO] [stderr] Compiling crossbeam-epoch v0.3.1 [INFO] [stderr] Compiling deflate v0.7.19 [INFO] [stderr] Compiling quote v0.6.12 [INFO] [stderr] Compiling num_cpus v1.10.0 [INFO] [stderr] Compiling time v0.1.42 [INFO] [stderr] Compiling crossbeam-deque v0.2.0 [INFO] [stderr] Compiling rayon-core v1.4.1 [INFO] [stderr] Compiling chrono v0.4.6 [INFO] [stderr] Compiling png v0.14.1 [INFO] [stderr] Compiling jpeg-decoder v0.1.15 [INFO] [stderr] Compiling tiff v0.2.2 [INFO] [stderr] Compiling image v0.21.1 [INFO] [stderr] Compiling raytracer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/v2/solidobject.rs:4:36 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::algebra::intersection::{Intersection, IntersectionList}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/v2/availableshapes.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Display` [INFO] [stdout] --> src/v2/availableshapes.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::Display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IntersectionList`, `Intersection` [INFO] [stdout] --> src/v2/availableshapes.rs:4:36 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::algebra::intersection::{Intersection, IntersectionList}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::optics::Optics` [INFO] [stdout] --> src/v2/availableshapes.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::algebra::optics::Optics; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::optics::OpticsOps` [INFO] [stdout] --> src/v2/availableshapes.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::algebra::optics::OpticsOps; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::vector::VectorOps` [INFO] [stdout] --> src/v2/availableshapes.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::algebra::vector::VectorOps; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::v2::raytracemath` [INFO] [stdout] --> src/v2/availableshapes.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::v2::raytracemath; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IntersectionList`, `Intersection` [INFO] [stdout] --> src/v2/sphere.rs:4:36 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::algebra::intersection::{Intersection, IntersectionList}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::optics::Optics` [INFO] [stdout] --> src/v2/sphere.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::algebra::optics::Optics; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IntersectionList`, `Intersection` [INFO] [stdout] --> src/v2/torus.rs:4:36 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::algebra::intersection::{Intersection, IntersectionList}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::optics::Optics` [INFO] [stdout] --> src/v2/torus.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::algebra::optics::Optics; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: patterns aren't allowed in functions without bodies [INFO] [stdout] --> src/algebra/solidobject.rs:15:78 [INFO] [stdout] | [INFO] [stdout] 15 | fn append_all_intersections(&self, vantage: &Vector, direction: &Vector, mut intersection_list: &IntersectionList); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove `mut` from the parameter: `intersection_list` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(patterns_in_fns_without_body)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #35203 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: patterns aren't allowed in functions without bodies [INFO] [stdout] --> src/algebra/solidobject.rs:16:83 [INFO] [stdout] | [INFO] [stdout] 16 | fn find_closest_intersection(&mut self, vantage: &Vector, direction: &Vector, mut intersection: &Intersection); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove `mut` from the parameter: `intersection` [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #35203 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/utils/raytracer_error.rs:31:32 [INFO] [stdout] | [INFO] [stdout] 31 | fn cause(&self) -> Option<&StdError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 31 - fn cause(&self) -> Option<&StdError> { [INFO] [stdout] 31 + fn cause(&self) -> Option<&dyn StdError> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::optics::OpticsOps` [INFO] [stdout] --> src/v2/sphere.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::algebra::optics::OpticsOps; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::vector::VectorOps` [INFO] [stdout] --> src/v2/sphere.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::algebra::vector::VectorOps; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::optics::OpticsOps` [INFO] [stdout] --> src/v2/torus.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::algebra::optics::OpticsOps; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::vector::VectorOps` [INFO] [stdout] --> src/v2/torus.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::algebra::vector::VectorOps; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `angle_in_degrees` [INFO] [stdout] --> src/v2/sphere.rs:26:28 [INFO] [stdout] | [INFO] [stdout] 26 | fn rotate_x(&mut self, angle_in_degrees: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_angle_in_degrees` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `angle_in_degrees` [INFO] [stdout] --> src/v2/torus.rs:28:28 [INFO] [stdout] | [INFO] [stdout] 28 | fn rotate_x(&mut self, angle_in_degrees: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_angle_in_degrees` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gloss_factor` [INFO] [stdout] --> src/algebra/optics.rs:78:43 [INFO] [stdout] | [INFO] [stdout] 78 | fn set_matte_gloss_balance(&mut self, gloss_factor: f32, raw_matte_color: Color, raw_gloss_color: Color) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gloss_factor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `raw_matte_color` [INFO] [stdout] --> src/algebra/optics.rs:78:62 [INFO] [stdout] | [INFO] [stdout] 78 | fn set_matte_gloss_balance(&mut self, gloss_factor: f32, raw_matte_color: Color, raw_gloss_color: Color) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_raw_matte_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `raw_gloss_color` [INFO] [stdout] --> src/algebra/optics.rs:78:86 [INFO] [stdout] | [INFO] [stdout] 78 | fn set_matte_gloss_balance(&mut self, gloss_factor: f32, raw_matte_color: Color, raw_gloss_color: Color) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_raw_gloss_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list` [INFO] [stdout] --> src/algebra/solidobject.rs:36:34 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn pick_closest_intersection(list: &IntersectionList, intersection: &Intersection) -> i32 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intersection` [INFO] [stdout] --> src/algebra/solidobject.rs:36:59 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn pick_closest_intersection(list: &IntersectionList, intersection: &Intersection) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intersection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list` [INFO] [stdout] --> src/algebra/intersection.rs:16:30 [INFO] [stdout] | [INFO] [stdout] 16 | fn pick_closest_intersection(list: &IntersectionList, intersection: &Intersection) -> i32 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intersection` [INFO] [stdout] --> src/algebra/intersection.rs:16:55 [INFO] [stdout] | [INFO] [stdout] 16 | fn pick_closest_intersection(list: &IntersectionList, intersection: &Intersection) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intersection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let mut sphere = &mut shapes[0]; [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/main.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut torus = &mut shapes[1]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `EPSILON` [INFO] [stdout] --> src/v2/solidobject.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub const EPSILON: f32 = 1.0e-6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `EPSILON` [INFO] [stdout] --> src/v2/availableshapes.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | pub const EPSILON: f32 = 1.0e-6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `EPSILON` [INFO] [stdout] --> src/v2/raytracemath.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EPSILON: f32 = 1.0e-6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `REFRACTION_VACUUM` [INFO] [stdout] --> src/algebra/refraction.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | const REFRACTION_VACUUM: f32 = 1.0000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `REFRACTION_AIR` [INFO] [stdout] --> src/algebra/refraction.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | const REFRACTION_AIR: f32 = 1.0003; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `REFRACTION_ICE` [INFO] [stdout] --> src/algebra/refraction.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | const REFRACTION_ICE: f32 = 1.3100; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `REFRACTION_WATER` [INFO] [stdout] --> src/algebra/refraction.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | const REFRACTION_WATER: f32 = 1.3330; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `REFRACTION_GASOLINE` [INFO] [stdout] --> src/algebra/refraction.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | const REFRACTION_GASOLINE: f32 = 1.3980; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `REFRACTION_GLASS` [INFO] [stdout] --> src/algebra/refraction.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | const REFRACTION_GLASS: f32 = 1.5500; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `REFRACTION_SAPPHIRE` [INFO] [stdout] --> src/algebra/refraction.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | const REFRACTION_SAPPHIRE: f32 = 1.7700; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `REFRACTION_DIAMOND` [INFO] [stdout] --> src/algebra/refraction.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | const REFRACTION_DIAMOND: f32 = 2.4190; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `REFRACTION_MINIMUM` [INFO] [stdout] --> src/algebra/refraction.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | const REFRACTION_MINIMUM: f32 = 1.0000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `REFRACTION_MAXIMUM` [INFO] [stdout] --> src/algebra/refraction.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | const REFRACTION_MAXIMUM: f32 = 9.0000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `validate_refraction` [INFO] [stdout] --> src/algebra/refraction.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn validate_refraction(refraction: f32) -> Result<(), RayTracerError> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `EPSILON` [INFO] [stdout] --> src/algebra/solidobject.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub const EPSILON: f32 = 1.0e-6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pick_closest_intersection` [INFO] [stdout] --> src/algebra/solidobject.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn pick_closest_intersection(list: &IntersectionList, intersection: &Intersection) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/algebra/solidobject.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn new() -> SolidObject { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pick_closest_intersection` [INFO] [stdout] --> src/algebra/intersection.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn pick_closest_intersection(list: &IntersectionList, intersection: &Intersection) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/algebra/intersection.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | fn new() -> Intersection { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `RefractionInvalid` [INFO] [stdout] --> src/utils/raytracer_error.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | RefractionInvalid(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `RayTracerError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/utils/raytracer_error.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 50 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 48.81s [INFO] running `Command { std: "docker" "inspect" "e883f532a7c23672326202e5ff3790859c62f17e078afdb40e82102fac02acf7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e883f532a7c23672326202e5ff3790859c62f17e078afdb40e82102fac02acf7", kill_on_drop: false }` [INFO] [stdout] e883f532a7c23672326202e5ff3790859c62f17e078afdb40e82102fac02acf7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0a21e787f2ba78bf2d8b5cba763e70019339a6a425d526dbaece4b9dd8241898 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "0a21e787f2ba78bf2d8b5cba763e70019339a6a425d526dbaece4b9dd8241898", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling raytracer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/v2/solidobject.rs:4:36 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::algebra::intersection::{Intersection, IntersectionList}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/v2/availableshapes.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Display` [INFO] [stdout] --> src/v2/availableshapes.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::Display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IntersectionList`, `Intersection` [INFO] [stdout] --> src/v2/availableshapes.rs:4:36 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::algebra::intersection::{Intersection, IntersectionList}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::optics::Optics` [INFO] [stdout] --> src/v2/availableshapes.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::algebra::optics::Optics; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::optics::OpticsOps` [INFO] [stdout] --> src/v2/availableshapes.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::algebra::optics::OpticsOps; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::vector::VectorOps` [INFO] [stdout] --> src/v2/availableshapes.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::algebra::vector::VectorOps; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::v2::raytracemath` [INFO] [stdout] --> src/v2/availableshapes.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::v2::raytracemath; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IntersectionList`, `Intersection` [INFO] [stdout] --> src/v2/sphere.rs:4:36 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::algebra::intersection::{Intersection, IntersectionList}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::optics::Optics` [INFO] [stdout] --> src/v2/sphere.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::algebra::optics::Optics; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IntersectionList`, `Intersection` [INFO] [stdout] --> src/v2/torus.rs:4:36 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::algebra::intersection::{Intersection, IntersectionList}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::optics::Optics` [INFO] [stdout] --> src/v2/torus.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::algebra::optics::Optics; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: patterns aren't allowed in functions without bodies [INFO] [stdout] --> src/algebra/solidobject.rs:15:78 [INFO] [stdout] | [INFO] [stdout] 15 | fn append_all_intersections(&self, vantage: &Vector, direction: &Vector, mut intersection_list: &IntersectionList); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove `mut` from the parameter: `intersection_list` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(patterns_in_fns_without_body)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #35203 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: patterns aren't allowed in functions without bodies [INFO] [stdout] --> src/algebra/solidobject.rs:16:83 [INFO] [stdout] | [INFO] [stdout] 16 | fn find_closest_intersection(&mut self, vantage: &Vector, direction: &Vector, mut intersection: &Intersection); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove `mut` from the parameter: `intersection` [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #35203 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/utils/raytracer_error.rs:31:32 [INFO] [stdout] | [INFO] [stdout] 31 | fn cause(&self) -> Option<&StdError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 31 - fn cause(&self) -> Option<&StdError> { [INFO] [stdout] 31 + fn cause(&self) -> Option<&dyn StdError> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot subtract `Color` from `Color` [INFO] [stdout] --> src/algebra/color.rs:162:38 [INFO] [stdout] | [INFO] [stdout] 162 | println!("diff of a + b = {}", c - c1); [INFO] [stdout] | - ^ -- Color [INFO] [stdout] | | [INFO] [stdout] | Color [INFO] [stdout] | [INFO] [stdout] note: an implementation of `Sub<_>` might be missing for `Color` [INFO] [stdout] --> src/algebra/color.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Color { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ must implement `Sub<_>` [INFO] [stdout] note: the following trait must be implemented [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::optics::OpticsOps` [INFO] [stdout] --> src/v2/sphere.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::algebra::optics::OpticsOps; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::vector::VectorOps` [INFO] [stdout] --> src/v2/sphere.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::algebra::vector::VectorOps; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::optics::OpticsOps` [INFO] [stdout] --> src/v2/torus.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::algebra::optics::OpticsOps; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::vector::VectorOps` [INFO] [stdout] --> src/v2/torus.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::algebra::vector::VectorOps; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0369`. [INFO] [stdout] [INFO] [stderr] error: could not compile `raytracer` due to 2 previous errors; 19 warnings emitted [INFO] running `Command { std: "docker" "inspect" "0a21e787f2ba78bf2d8b5cba763e70019339a6a425d526dbaece4b9dd8241898", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a21e787f2ba78bf2d8b5cba763e70019339a6a425d526dbaece4b9dd8241898", kill_on_drop: false }` [INFO] [stdout] 0a21e787f2ba78bf2d8b5cba763e70019339a6a425d526dbaece4b9dd8241898