[INFO] cloning repository https://github.com/robertf224/ray-tracing-in-a-weekend-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/robertf224/ray-tracing-in-a-weekend-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frobertf224%2Fray-tracing-in-a-weekend-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frobertf224%2Fray-tracing-in-a-weekend-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 18e7c957056590a495a8d83f853d49f6acc796a8 [INFO] building robertf224/ray-tracing-in-a-weekend-rust against try#8b8eff55bd72abbb57167bc42222a7f91d41cb0d for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frobertf224%2Fray-tracing-in-a-weekend-rust" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/robertf224/ray-tracing-in-a-weekend-rust on toolchain 8b8eff55bd72abbb57167bc42222a7f91d41cb0d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/robertf224/ray-tracing-in-a-weekend-rust [INFO] finished tweaking git repo https://github.com/robertf224/ray-tracing-in-a-weekend-rust [INFO] tweaked toml for git repo https://github.com/robertf224/ray-tracing-in-a-weekend-rust written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/robertf224/ray-tracing-in-a-weekend-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f8d9306ad4c6ec9479ccaf30594e1519ff621aac5934521da802dd705430f864 [INFO] running `Command { std: "docker" "start" "-a" "f8d9306ad4c6ec9479ccaf30594e1519ff621aac5934521da802dd705430f864", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f8d9306ad4c6ec9479ccaf30594e1519ff621aac5934521da802dd705430f864", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f8d9306ad4c6ec9479ccaf30594e1519ff621aac5934521da802dd705430f864", kill_on_drop: false }` [INFO] [stdout] f8d9306ad4c6ec9479ccaf30594e1519ff621aac5934521da802dd705430f864 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d68ca1d4249f360f21990c13aaa0582c6a4d07e602f43e7366897da1f0b6bebc [INFO] running `Command { std: "docker" "start" "-a" "d68ca1d4249f360f21990c13aaa0582c6a4d07e602f43e7366897da1f0b6bebc", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.46 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling rand_core v0.3.0 [INFO] [stderr] Compiling autocfg v0.1.1 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling cfg-if v0.1.6 [INFO] [stderr] Compiling lazy_static v1.2.0 [INFO] [stderr] Compiling stable_deref_trait v1.1.1 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling owning_ref v0.4.0 [INFO] [stderr] Compiling ucd-util v0.1.3 [INFO] [stderr] Compiling smallvec v0.6.7 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling memchr v2.1.2 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.3 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling scopeguard v0.3.3 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling regex v1.1.0 [INFO] [stderr] Compiling lock_api v0.1.5 [INFO] [stderr] Compiling regex-syntax v0.6.4 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling rand_os v0.1.0 [INFO] [stderr] Compiling rand_pcg v0.1.1 [INFO] [stderr] Compiling parking_lot_core v0.4.0 [INFO] [stderr] Compiling aho-corasick v0.6.9 [INFO] [stderr] Compiling utf8-ranges v1.0.2 [INFO] [stderr] Compiling clicolors-control v1.0.0 [INFO] [stderr] Compiling termios v0.3.1 [INFO] [stderr] Compiling atty v0.2.11 [INFO] [stderr] Compiling unicode-width v0.1.5 [INFO] [stderr] Compiling number_prefix v0.2.8 [INFO] [stderr] Compiling parking_lot v0.7.1 [INFO] [stderr] Compiling console v0.7.2 [INFO] [stderr] Compiling indicatif v0.11.0 [INFO] [stderr] Compiling ray-tracing-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/hitable.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | pub material: &'a Box [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [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] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 | pub material: &'a Box [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sphere.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | pub material: Box [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 | pub material: Box [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/hitable.rs:16:34 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn closest(objects: &Vec>, ray: Ray, t_min: f64, t_max: f64) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 16 | pub fn closest(objects: &Vec>, ray: Ray, t_min: f64, t_max: f64) -> Option { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:64:36 [INFO] [stdout] | [INFO] [stdout] 64 | fn color(ray: Ray, world: &Vec>, depth: u32) -> Vec3 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 64 | fn color(ray: Ray, world: &Vec>, depth: u32) -> Vec3 { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:89:30 [INFO] [stdout] | [INFO] [stdout] 89 | fn random_world() -> Vec> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 89 | fn random_world() -> Vec> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sphere.rs:13:57 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(center: Vec3, radius: f64, material: Box) -> Sphere { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(center: Vec3, radius: f64, material: Box) -> Sphere { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:91:28 [INFO] [stdout] | [INFO] [stdout] 91 | let mut world: Vec> = vec![Box::new(ground)]; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 91 | let mut world: Vec> = vec![Box::new(ground)]; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:102:31 [INFO] [stdout] | [INFO] [stdout] 102 | let material: Box; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 102 | let material: Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/hitable.rs:16:25 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn closest(objects: &Vec>, ray: Ray, t_min: f64, t_max: f64) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ this lifetime flows to the output --- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 16 | pub fn closest(objects: &Vec>, ray: Ray, t_min: f64, t_max: f64) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/sphere.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | fn hit(&self, ray: Ray, t_min: f64, t_max: f64) -> Option { [INFO] [stdout] | ^^^^^ this lifetime flows to the output --- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 19 | fn hit(&self, ray: Ray, t_min: f64, t_max: f64) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/materials/utils.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let N = unit_normal; [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/materials/utils.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let N = unit_normal; [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `R0` should have a snake case name [INFO] [stdout] --> src/materials/utils.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let R0 = ((n - np) / (n + np)).powi(2); [INFO] [stdout] | ^^ help: convert the identifier to snake case: `r0` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.69s [INFO] running `Command { std: "docker" "inspect" "d68ca1d4249f360f21990c13aaa0582c6a4d07e602f43e7366897da1f0b6bebc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d68ca1d4249f360f21990c13aaa0582c6a4d07e602f43e7366897da1f0b6bebc", kill_on_drop: false }` [INFO] [stdout] d68ca1d4249f360f21990c13aaa0582c6a4d07e602f43e7366897da1f0b6bebc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8d93653246f441a8302ef8027262635955ea862e1e8c5c974b1c59b4035b1164 [INFO] running `Command { std: "docker" "start" "-a" "8d93653246f441a8302ef8027262635955ea862e1e8c5c974b1c59b4035b1164", kill_on_drop: false }` [INFO] [stderr] Compiling ray-tracing-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/hitable.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | pub material: &'a Box [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [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] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 | pub material: &'a Box [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sphere.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | pub material: Box [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 | pub material: Box [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/hitable.rs:16:34 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn closest(objects: &Vec>, ray: Ray, t_min: f64, t_max: f64) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 16 | pub fn closest(objects: &Vec>, ray: Ray, t_min: f64, t_max: f64) -> Option { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:64:36 [INFO] [stdout] | [INFO] [stdout] 64 | fn color(ray: Ray, world: &Vec>, depth: u32) -> Vec3 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 64 | fn color(ray: Ray, world: &Vec>, depth: u32) -> Vec3 { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:89:30 [INFO] [stdout] | [INFO] [stdout] 89 | fn random_world() -> Vec> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 89 | fn random_world() -> Vec> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sphere.rs:13:57 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(center: Vec3, radius: f64, material: Box) -> Sphere { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(center: Vec3, radius: f64, material: Box) -> Sphere { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:91:28 [INFO] [stdout] | [INFO] [stdout] 91 | let mut world: Vec> = vec![Box::new(ground)]; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 91 | let mut world: Vec> = vec![Box::new(ground)]; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:102:31 [INFO] [stdout] | [INFO] [stdout] 102 | let material: Box; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 102 | let material: Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/hitable.rs:16:25 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn closest(objects: &Vec>, ray: Ray, t_min: f64, t_max: f64) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ this lifetime flows to the output --- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 16 | pub fn closest(objects: &Vec>, ray: Ray, t_min: f64, t_max: f64) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/sphere.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | fn hit(&self, ray: Ray, t_min: f64, t_max: f64) -> Option { [INFO] [stdout] | ^^^^^ this lifetime flows to the output --- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 19 | fn hit(&self, ray: Ray, t_min: f64, t_max: f64) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/materials/utils.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let N = unit_normal; [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/materials/utils.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let N = unit_normal; [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `R0` should have a snake case name [INFO] [stdout] --> src/materials/utils.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let R0 = ((n - np) / (n + np)).powi(2); [INFO] [stdout] | ^^ help: convert the identifier to snake case: `r0` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.51s [INFO] running `Command { std: "docker" "inspect" "8d93653246f441a8302ef8027262635955ea862e1e8c5c974b1c59b4035b1164", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8d93653246f441a8302ef8027262635955ea862e1e8c5c974b1c59b4035b1164", kill_on_drop: false }` [INFO] [stdout] 8d93653246f441a8302ef8027262635955ea862e1e8c5c974b1c59b4035b1164