[INFO] cloning repository https://github.com/yuri-you/raytrace [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yuri-you/raytrace" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyuri-you%2Fraytrace", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyuri-you%2Fraytrace'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 98860fc269c7f84f0cfb1cdd79c566e948f0416c [INFO] checking yuri-you/raytrace against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyuri-you%2Fraytrace" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yuri-you/raytrace on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-4/source/rust-toolchain [INFO] started tweaking git repo https://github.com/yuri-you/raytrace [INFO] finished tweaking git repo https://github.com/yuri-you/raytrace [INFO] tweaked toml for git repo https://github.com/yuri-you/raytrace written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/yuri-you/raytrace already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 06e02b45d4c3a2dc733fecc9391662b2dc7b0db2f8251b29d9d3110515d65ea3 [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" "06e02b45d4c3a2dc733fecc9391662b2dc7b0db2f8251b29d9d3110515d65ea3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "06e02b45d4c3a2dc733fecc9391662b2dc7b0db2f8251b29d9d3110515d65ea3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06e02b45d4c3a2dc733fecc9391662b2dc7b0db2f8251b29d9d3110515d65ea3", kill_on_drop: false }` [INFO] [stdout] 06e02b45d4c3a2dc733fecc9391662b2dc7b0db2f8251b29d9d3110515d65ea3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 08bfa36af9d4a77816218b4ba3a4254211ad115fba270a04e019f3f0c45ee9bb [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" "08bfa36af9d4a77816218b4ba3a4254211ad115fba270a04e019f3f0c45ee9bb", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking adler32 v1.1.0 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Checking regex-syntax v0.6.18 [INFO] [stderr] Checking ppv-lite86 v0.2.8 [INFO] [stderr] Checking color_quant v1.0.1 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking termios v0.3.2 [INFO] [stderr] Checking terminal_size v0.1.13 [INFO] [stderr] Checking miniz_oxide v0.3.7 [INFO] [stderr] Checking gif v0.10.3 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling memoffset v0.5.5 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling rayon v1.3.1 [INFO] [stderr] Compiling num-rational v0.3.0 [INFO] [stderr] Compiling num-iter v0.1.41 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking deflate v0.8.6 [INFO] [stderr] Checking tiff v0.5.0 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking crossbeam-queue v0.2.3 [INFO] [stderr] Checking regex v1.3.9 [INFO] [stderr] Checking png v0.16.6 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Checking rayon-core v1.7.1 [INFO] [stderr] Checking console v0.11.3 [INFO] [stderr] Checking indicatif v0.15.0 [INFO] [stderr] Checking jpeg-decoder v0.1.20 [INFO] [stderr] Checking image v0.23.7 [INFO] [stderr] Checking raytracer v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/texture.rs (5 fixes) [INFO] [stderr] Fixed src/color.rs (2 fixes) [INFO] [stderr] Fixed src/main.rs (4 fixes) [INFO] [stderr] Fixed src/hittable.rs (1 fix) [INFO] [stderr] Fixed src/bvh.rs (2 fixes) [INFO] [stderr] Fixed src/sphere.rs (2 fixes) [INFO] [stdout] warning: type `Moving_Sphere` should have an upper camel case name [INFO] [stdout] --> src/moving_sphere.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Moving_Sphere{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MovingSphere` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `lambertian` should have an upper camel case name [INFO] [stdout] --> src/material.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct lambertian{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `Lambertian` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `metal` should have an upper camel case name [INFO] [stdout] --> src/material.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct metal{ [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Metal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `dielectric` should have an upper camel case name [INFO] [stdout] --> src/material.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct dielectric{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `Dielectric` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Bvh_node` should have an upper camel case name [INFO] [stdout] --> src/bvh.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | struct Bvh_node{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `BvhNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `texture` should have an upper camel case name [INFO] [stdout] --> src/texture.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait texture { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Texture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `noise_texture` should have an upper camel case name [INFO] [stdout] --> src/texture.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct noise_texture{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `NoiseTexture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `solid_color` should have an upper camel case name [INFO] [stdout] --> src/texture.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct solid_color{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `SolidColor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `checker_texture` should have an upper camel case name [INFO] [stdout] --> src/texture.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct checker_texture{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CheckerTexture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Moving_Sphere` should have an upper camel case name [INFO] [stdout] --> src/moving_sphere.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Moving_Sphere{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MovingSphere` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `lambertian` should have an upper camel case name [INFO] [stdout] --> src/material.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct lambertian{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `Lambertian` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `metal` should have an upper camel case name [INFO] [stdout] --> src/material.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct metal{ [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Metal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `dielectric` should have an upper camel case name [INFO] [stdout] --> src/material.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct dielectric{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `Dielectric` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Bvh_node` should have an upper camel case name [INFO] [stdout] --> src/bvh.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | struct Bvh_node{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `BvhNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `texture` should have an upper camel case name [INFO] [stdout] --> src/texture.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait texture { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Texture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `noise_texture` should have an upper camel case name [INFO] [stdout] --> src/texture.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct noise_texture{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `NoiseTexture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `solid_color` should have an upper camel case name [INFO] [stdout] --> src/texture.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct solid_color{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `SolidColor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `checker_texture` should have an upper camel case name [INFO] [stdout] --> src/texture.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct checker_texture{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CheckerTexture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `b` is never read [INFO] [stdout] --> src/main.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let mut b=-11; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `b` is never read [INFO] [stdout] --> src/main.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let mut b=-11; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `random_in_hemisphere` [INFO] [stdout] --> src/vec3.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn random_in_hemisphere(normal:&Vec3)->Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `box_compare` [INFO] [stdout] --> src/bvh.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn box_compare(a:Option>, b:Option>,axis:i32)->bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sort` [INFO] [stdout] --> src/bvh.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn sort(a:&mut Vec>>,start:i32,end:i32,axis:i32){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `box_x_compare` [INFO] [stdout] --> src/bvh.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn box_x_compare(a:Option>, b:Option>) ->bool{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `box_y_compare` [INFO] [stdout] --> src/bvh.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn box_y_compare(a:Option>, b:Option>)->bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `box_z_compare` [INFO] [stdout] --> src/bvh.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn box_z_compare(a:Option>, b:Option>)->bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new1` [INFO] [stdout] --> src/bvh.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn new1()->Self{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new2` [INFO] [stdout] --> src/bvh.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn new2(&self,list:&HitList, time0:f64, time1:f64)->Self{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bvh.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn new(objects:&mut Vec>>, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new1` [INFO] [stdout] --> src/texture.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn new1()->Self{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new2` [INFO] [stdout] --> src/texture.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn new2(red:f64,green:f64,blue:f64)->Self{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `Infinity` should have an upper case name [INFO] [stdout] --> src/data.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub static Infinity:f64 = 0xfffffff as f64; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `INFINITY` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `invD` should have a snake case name [INFO] [stdout] --> src/aabb.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let invD = 1.0/ r.direction.in_at(a); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `inv_d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `point_count` should have an upper case name [INFO] [stdout] --> src/perlin.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | static point_count:i32=256; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `POINT_COUNT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `random_in_hemisphere` [INFO] [stdout] --> src/vec3.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn random_in_hemisphere(normal:&Vec3)->Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `box_compare` [INFO] [stdout] --> src/bvh.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn box_compare(a:Option>, b:Option>,axis:i32)->bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sort` [INFO] [stdout] --> src/bvh.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn sort(a:&mut Vec>>,start:i32,end:i32,axis:i32){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `box_x_compare` [INFO] [stdout] --> src/bvh.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn box_x_compare(a:Option>, b:Option>) ->bool{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `box_y_compare` [INFO] [stdout] --> src/bvh.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn box_y_compare(a:Option>, b:Option>)->bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `box_z_compare` [INFO] [stdout] --> src/bvh.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn box_z_compare(a:Option>, b:Option>)->bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new1` [INFO] [stdout] --> src/bvh.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn new1()->Self{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new2` [INFO] [stdout] --> src/bvh.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn new2(&self,list:&HitList, time0:f64, time1:f64)->Self{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bvh.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn new(objects:&mut Vec>>, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new1` [INFO] [stdout] --> src/texture.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn new1()->Self{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new2` [INFO] [stdout] --> src/texture.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn new2(red:f64,green:f64,blue:f64)->Self{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `Infinity` should have an upper case name [INFO] [stdout] --> src/data.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub static Infinity:f64 = 0xfffffff as f64; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `INFINITY` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `invD` should have a snake case name [INFO] [stdout] --> src/aabb.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let invD = 1.0/ r.direction.in_at(a); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `inv_d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `point_count` should have an upper case name [INFO] [stdout] --> src/perlin.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | static point_count:i32=256; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `POINT_COUNT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 34.37s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Checking raytracer v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: type `Moving_Sphere` should have an upper camel case name [INFO] [stdout] --> src/moving_sphere.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Moving_Sphere{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MovingSphere` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `lambertian` should have an upper camel case name [INFO] [stdout] --> src/material.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct lambertian{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `Lambertian` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `metal` should have an upper camel case name [INFO] [stdout] --> src/material.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct metal{ [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Metal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `dielectric` should have an upper camel case name [INFO] [stdout] --> src/material.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct dielectric{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `Dielectric` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Bvh_node` should have an upper camel case name [INFO] [stdout] --> src/bvh.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | struct Bvh_node{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `BvhNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `texture` should have an upper camel case name [INFO] [stdout] --> src/texture.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait texture { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Texture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `noise_texture` should have an upper camel case name [INFO] [stdout] --> src/texture.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct noise_texture{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `NoiseTexture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `solid_color` should have an upper camel case name [INFO] [stdout] --> src/texture.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct solid_color{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `SolidColor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `checker_texture` should have an upper camel case name [INFO] [stdout] --> src/texture.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct checker_texture{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CheckerTexture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Moving_Sphere` should have an upper camel case name [INFO] [stdout] --> src/moving_sphere.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Moving_Sphere{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MovingSphere` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `lambertian` should have an upper camel case name [INFO] [stdout] --> src/material.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct lambertian{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `Lambertian` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `metal` should have an upper camel case name [INFO] [stdout] --> src/material.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct metal{ [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Metal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `dielectric` should have an upper camel case name [INFO] [stdout] --> src/material.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct dielectric{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `Dielectric` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Bvh_node` should have an upper camel case name [INFO] [stdout] --> src/bvh.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | struct Bvh_node{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `BvhNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `texture` should have an upper camel case name [INFO] [stdout] --> src/texture.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait texture { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Texture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `noise_texture` should have an upper camel case name [INFO] [stdout] --> src/texture.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct noise_texture{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `NoiseTexture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `solid_color` should have an upper camel case name [INFO] [stdout] --> src/texture.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct solid_color{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `SolidColor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `checker_texture` should have an upper camel case name [INFO] [stdout] --> src/texture.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct checker_texture{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CheckerTexture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `b` is never read [INFO] [stdout] --> src/main.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let mut b=-11; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `b` is never read [INFO] [stdout] --> src/main.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let mut b=-11; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `random_in_hemisphere` [INFO] [stdout] --> src/vec3.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn random_in_hemisphere(normal:&Vec3)->Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `box_compare` [INFO] [stdout] --> src/bvh.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn box_compare(a:Option>, b:Option>,axis:i32)->bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sort` [INFO] [stdout] --> src/bvh.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn sort(a:&mut Vec>>,start:i32,end:i32,axis:i32){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `box_x_compare` [INFO] [stdout] --> src/bvh.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn box_x_compare(a:Option>, b:Option>) ->bool{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `box_y_compare` [INFO] [stdout] --> src/bvh.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn box_y_compare(a:Option>, b:Option>)->bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `box_z_compare` [INFO] [stdout] --> src/bvh.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn box_z_compare(a:Option>, b:Option>)->bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new1` [INFO] [stdout] --> src/bvh.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn new1()->Self{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new2` [INFO] [stdout] --> src/bvh.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn new2(&self,list:&HitList, time0:f64, time1:f64)->Self{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bvh.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn new(objects:&mut Vec>>, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new1` [INFO] [stdout] --> src/texture.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn new1()->Self{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new2` [INFO] [stdout] --> src/texture.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn new2(red:f64,green:f64,blue:f64)->Self{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `Infinity` should have an upper case name [INFO] [stdout] --> src/data.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub static Infinity:f64 = 0xfffffff as f64; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `INFINITY` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `invD` should have a snake case name [INFO] [stdout] --> src/aabb.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let invD = 1.0/ r.direction.in_at(a); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `inv_d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `point_count` should have an upper case name [INFO] [stdout] --> src/perlin.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | static point_count:i32=256; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `POINT_COUNT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `random_in_hemisphere` [INFO] [stdout] --> src/vec3.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn random_in_hemisphere(normal:&Vec3)->Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `box_compare` [INFO] [stdout] --> src/bvh.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn box_compare(a:Option>, b:Option>,axis:i32)->bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sort` [INFO] [stdout] --> src/bvh.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn sort(a:&mut Vec>>,start:i32,end:i32,axis:i32){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `box_x_compare` [INFO] [stdout] --> src/bvh.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn box_x_compare(a:Option>, b:Option>) ->bool{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `box_y_compare` [INFO] [stdout] --> src/bvh.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn box_y_compare(a:Option>, b:Option>)->bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `box_z_compare` [INFO] [stdout] --> src/bvh.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn box_z_compare(a:Option>, b:Option>)->bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new1` [INFO] [stdout] --> src/bvh.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn new1()->Self{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new2` [INFO] [stdout] --> src/bvh.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn new2(&self,list:&HitList, time0:f64, time1:f64)->Self{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bvh.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn new(objects:&mut Vec>>, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new1` [INFO] [stdout] --> src/texture.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn new1()->Self{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new2` [INFO] [stdout] --> src/texture.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn new2(red:f64,green:f64,blue:f64)->Self{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `Infinity` should have an upper case name [INFO] [stdout] --> src/data.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub static Infinity:f64 = 0xfffffff as f64; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `INFINITY` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `invD` should have a snake case name [INFO] [stdout] --> src/aabb.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let invD = 1.0/ r.direction.in_at(a); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `inv_d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `point_count` should have an upper case name [INFO] [stdout] --> src/perlin.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | static point_count:i32=256; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `POINT_COUNT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.76s [INFO] running `Command { std: "docker" "inspect" "08bfa36af9d4a77816218b4ba3a4254211ad115fba270a04e019f3f0c45ee9bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08bfa36af9d4a77816218b4ba3a4254211ad115fba270a04e019f3f0c45ee9bb", kill_on_drop: false }` [INFO] [stdout] 08bfa36af9d4a77816218b4ba3a4254211ad115fba270a04e019f3f0c45ee9bb