[INFO] cloning repository https://github.com/tstullich/rust-pt [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tstullich/rust-pt" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftstullich%2Frust-pt", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftstullich%2Frust-pt'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] be3b17aa53874c86afc824e0e932a9464c420b15 [INFO] testing tstullich/rust-pt against try#7af779037716ae4125ceabb429791b4cf5dd0a43 for pr-136932 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftstullich%2Frust-pt" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tstullich/rust-pt on toolchain 7af779037716ae4125ceabb429791b4cf5dd0a43 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7af779037716ae4125ceabb429791b4cf5dd0a43" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/tstullich/rust-pt [INFO] finished tweaking git repo https://github.com/tstullich/rust-pt [INFO] tweaked toml for git repo https://github.com/tstullich/rust-pt written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/tstullich/rust-pt 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" "+7af779037716ae4125ceabb429791b4cf5dd0a43" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] testing tstullich/rust-pt against try#7af779037716ae4125ceabb429791b4cf5dd0a43 for pr-136932 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftstullich%2Frust-pt" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tstullich/rust-pt on toolchain 7af779037716ae4125ceabb429791b4cf5dd0a43 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7af779037716ae4125ceabb429791b4cf5dd0a43" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/tstullich/rust-pt [INFO] finished tweaking git repo https://github.com/tstullich/rust-pt [INFO] tweaked toml for git repo https://github.com/tstullich/rust-pt written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/tstullich/rust-pt 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" "+7af779037716ae4125ceabb429791b4cf5dd0a43" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded aho-corasick v0.6.8 [INFO] [stderr] Downloaded utf8-ranges v1.0.1 [INFO] [stderr] Downloaded lock_api v0.1.4 [INFO] [stderr] Downloaded regex v1.0.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+7af779037716ae4125ceabb429791b4cf5dd0a43" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4e23e27785cf412768b53226690bf7770e6bc128764d1d94c548884195e33b7c [INFO] running `Command { std: "docker" "start" "-a" "4e23e27785cf412768b53226690bf7770e6bc128764d1d94c548884195e33b7c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4e23e27785cf412768b53226690bf7770e6bc128764d1d94c548884195e33b7c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4e23e27785cf412768b53226690bf7770e6bc128764d1d94c548884195e33b7c", kill_on_drop: false }` [INFO] [stdout] 4e23e27785cf412768b53226690bf7770e6bc128764d1d94c548884195e33b7c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+7af779037716ae4125ceabb429791b4cf5dd0a43" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e9999da9bf00fe08a7f1734f09aafe845b66572e9f9ab280a50d77061e091166 [INFO] running `Command { std: "docker" "start" "-a" "e9999da9bf00fe08a7f1734f09aafe845b66572e9f9ab280a50d77061e091166", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling libc v0.2.43 [INFO] [stderr] Compiling cfg-if v0.1.5 [INFO] [stderr] Compiling scopeguard v0.3.3 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling rand_core v0.3.0 [INFO] [stderr] Compiling ucd-util v0.1.1 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling nodrop v0.1.12 [INFO] [stderr] Compiling stable_deref_trait v1.1.1 [INFO] [stderr] Compiling rayon-core v1.4.1 [INFO] [stderr] Compiling unicode-width v0.1.5 [INFO] [stderr] Compiling regex v1.0.5 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Compiling utf8-ranges v1.0.1 [INFO] [stderr] Compiling crossbeam-utils v0.2.2 [INFO] [stderr] Compiling owning_ref v0.3.3 [INFO] [stderr] Compiling memoffset v0.2.1 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling arrayvec v0.4.7 [INFO] [stderr] Compiling regex-syntax v0.6.2 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling num-iter v0.1.37 [INFO] [stderr] Compiling smallvec v0.6.5 [INFO] [stderr] Compiling rand_core v0.2.2 [INFO] [stderr] Compiling lock_api v0.1.4 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Compiling lazy_static v0.2.11 [INFO] [stderr] Compiling adler32 v1.0.3 [INFO] [stderr] Compiling regex-syntax v0.5.6 [INFO] [stderr] Compiling rayon v1.0.2 [INFO] [stderr] Compiling lazy_static v1.1.0 [INFO] [stderr] Compiling memchr v2.1.0 [INFO] [stderr] Compiling rand v0.5.5 [INFO] [stderr] Compiling atty v0.2.11 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling num_cpus v1.8.0 [INFO] [stderr] Compiling termios v0.3.1 [INFO] [stderr] Compiling clicolors-control v0.2.0 [INFO] [stderr] Compiling byteorder v1.2.6 [INFO] [stderr] Compiling bitflags v1.0.4 [INFO] [stderr] Compiling inflate v0.4.3 [INFO] [stderr] Compiling textwrap v0.10.0 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling either v1.5.0 [INFO] [stderr] Compiling deflate v0.7.19 [INFO] [stderr] Compiling strsim v0.7.0 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling crossbeam-epoch v0.3.1 [INFO] [stderr] Compiling parking_lot_core v0.3.1 [INFO] [stderr] Compiling aho-corasick v0.6.8 [INFO] [stderr] Compiling clap v2.32.0 [INFO] [stderr] Compiling crossbeam-deque v0.2.0 [INFO] [stderr] Compiling parking_lot v0.6.4 [INFO] [stderr] Compiling png v0.12.0 [INFO] [stderr] Compiling console v0.6.2 [INFO] [stderr] Compiling indicatif v0.9.0 [INFO] [stderr] Compiling pathtracer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `material::Material` [INFO] [stdout] --> src/hitable_list.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use material::Material; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MovingSphere` and `Sphere` [INFO] [stdout] --> src/hitable_list.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use sphere::{MovingSphere, Sphere}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vector::Vec3` [INFO] [stdout] --> src/hitable_list.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use vector::Vec3; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `material::Material` [INFO] [stdout] --> src/renderer.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use material::Material; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sphere::Sphere` [INFO] [stdout] --> src/renderer.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use sphere::Sphere; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/bvh_node.rs:21:29 [INFO] [stdout] | [INFO] [stdout] 21 | hitable: Option<&'a Box>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 21 | hitable: Option<&'a Box>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/hitable_list.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | pub objs: Vec>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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 objs: Vec>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/material.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | Lambertian(Texture), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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 | Lambertian(dyn Texture), [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/texture.rs:26:14 [INFO] [stdout] | [INFO] [stdout] 26 | odd: Box, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 26 | odd: Box, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/texture.rs:27:15 [INFO] [stdout] | [INFO] [stdout] 27 | even: Box, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 27 | even: Box, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0204]: the trait `Copy` cannot be implemented for this type [INFO] [stdout] --> src/material.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Copy, Clone)] [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | pub enum Material { [INFO] [stdout] 9 | Lambertian(Texture), [INFO] [stdout] | ------- this field does not implement `Copy` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0204]: the trait `Copy` cannot be implemented for this type [INFO] [stdout] --> src/texture.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Copy, Clone)] [INFO] [stdout] | ^^^^ [INFO] [stdout] 25 | pub struct Checker { [INFO] [stdout] 26 | odd: Box, [INFO] [stdout] | ----------------- this field does not implement `Copy` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/hitable.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | impl fmt::Debug for Hitable { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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 | impl fmt::Debug for dyn Hitable { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/bvh_node.rs:85:32 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn new(l: &'a mut [Box]) -> BvhTree<'a> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 85 | pub fn new(l: &'a mut [Box]) -> BvhTree<'a> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/bvh_node.rs:95:41 [INFO] [stdout] | [INFO] [stdout] 95 | fn build(&mut self, l: &'a mut [Box]) -> NodeId { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 95 | fn build(&mut self, l: &'a mut [Box]) -> NodeId { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/bvh_node.rs:134:45 [INFO] [stdout] | [INFO] [stdout] 134 | fn new_leaf(&mut self, hitable: &'a Box) -> NodeId { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 134 | fn new_leaf(&mut self, hitable: &'a Box) -> NodeId { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/bvh_node.rs:189:26 [INFO] [stdout] | [INFO] [stdout] 189 | fn box_x_compare(a: &Box, b: &Box) -> Ordering { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 189 | fn box_x_compare(a: &Box, b: &Box) -> Ordering { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/bvh_node.rs:189:44 [INFO] [stdout] | [INFO] [stdout] 189 | fn box_x_compare(a: &Box, b: &Box) -> Ordering { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 189 | fn box_x_compare(a: &Box, b: &Box) -> Ordering { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/bvh_node.rs:203:26 [INFO] [stdout] | [INFO] [stdout] 203 | fn box_y_compare(a: &Box, b: &Box) -> Ordering { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 203 | fn box_y_compare(a: &Box, b: &Box) -> Ordering { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/bvh_node.rs:203:44 [INFO] [stdout] | [INFO] [stdout] 203 | fn box_y_compare(a: &Box, b: &Box) -> Ordering { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 203 | fn box_y_compare(a: &Box, b: &Box) -> Ordering { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/bvh_node.rs:217:26 [INFO] [stdout] | [INFO] [stdout] 217 | fn box_z_compare(a: &Box, b: &Box) -> Ordering { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 217 | fn box_z_compare(a: &Box, b: &Box) -> Ordering { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/bvh_node.rs:217:44 [INFO] [stdout] | [INFO] [stdout] 217 | fn box_z_compare(a: &Box, b: &Box) -> Ordering { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 217 | fn box_z_compare(a: &Box, b: &Box) -> Ordering { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/hitable_list.rs:21:37 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn push(&mut self, obj: Box) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 21 | pub fn push(&mut self, obj: Box) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn Texture + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/material.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | Lambertian(Texture), [INFO] [stdout] | ^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn Texture + 'static)` [INFO] [stdout] = note: no field of an enum variant may have a dynamically sized type [INFO] [stdout] = help: change the field's type to have a statically known size [INFO] [stdout] help: borrowed types always have a statically known size [INFO] [stdout] | [INFO] [stdout] 9 | Lambertian(&Texture), [INFO] [stdout] | + [INFO] [stdout] help: the `Box` type always has a statically known size and allocates its contents in the heap [INFO] [stdout] | [INFO] [stdout] 9 | Lambertian(Box), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn Texture + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/sphere.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | impl Hitable for Sphere { [INFO] [stdout] | ^^^^^^ `(dyn Texture + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `Sphere`, the trait `Sync` is not implemented for `(dyn Texture + 'static)` [INFO] [stdout] note: required because it appears within the type `Material` [INFO] [stdout] --> src/material.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Material { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `Sphere` [INFO] [stdout] --> src/sphere.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Sphere { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] note: required by a bound in `Hitable` [INFO] [stdout] --> src/hitable.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait Hitable: Sync { [INFO] [stdout] | ^^^^ required by this bound in `Hitable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn Texture + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/sphere.rs:76:18 [INFO] [stdout] | [INFO] [stdout] 76 | impl Hitable for MovingSphere { [INFO] [stdout] | ^^^^^^^^^^^^ `(dyn Texture + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `MovingSphere`, the trait `Sync` is not implemented for `(dyn Texture + 'static)` [INFO] [stdout] note: required because it appears within the type `Material` [INFO] [stdout] --> src/material.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Material { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `MovingSphere` [INFO] [stdout] --> src/sphere.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct MovingSphere { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `Hitable` [INFO] [stdout] --> src/hitable.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait Hitable: Sync { [INFO] [stdout] | ^^^^ required by this bound in `Hitable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/texture.rs:42:25 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn new(t0: &Box, t1: &Box) -> Checker { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 42 | pub fn new(t0: &Box, t1: &Box) -> Checker { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/texture.rs:42:44 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn new(t0: &Box, t1: &Box) -> Checker { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 42 | pub fn new(t0: &Box, t1: &Box) -> Checker { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn Texture + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/triangle.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | impl Hitable for Triangle { [INFO] [stdout] | ^^^^^^^^ `(dyn Texture + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `Triangle`, the trait `Sync` is not implemented for `(dyn Texture + 'static)` [INFO] [stdout] note: required because it appears within the type `Material` [INFO] [stdout] --> src/material.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Material { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `Triangle` [INFO] [stdout] --> src/triangle.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Triangle { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] note: required by a bound in `Hitable` [INFO] [stdout] --> src/hitable.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait Hitable: Sync { [INFO] [stdout] | ^^^^ required by this bound in `Hitable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/hitable.rs:35:44 [INFO] [stdout] | [INFO] [stdout] 35 | material: Material::Lambertian(Vec3::new(0.0, 0.0, 0.0)), [INFO] [stdout] | -------------------- ^^^^^^^^^^^^^^^^^^^^^^^^ expected `dyn Texture`, found `Vec3` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected trait object `(dyn Texture + 'static)` [INFO] [stdout] found struct `Vec3` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/material.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Lambertian(Texture), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn Texture + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/hitable.rs:35:44 [INFO] [stdout] | [INFO] [stdout] 35 | material: Material::Lambertian(Vec3::new(0.0, 0.0, 0.0)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn Texture + 'static)` [INFO] [stdout] = note: all function arguments must have a statically known size [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/hitable_list.rs:17:27 [INFO] [stdout] | [INFO] [stdout] 17 | let objs: Vec> = Vec::new(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 17 | let objs: Vec> = Vec::new(); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `dyn Texture: Clone` is not satisfied [INFO] [stdout] --> src/material.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Copy, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] 8 | pub enum Material { [INFO] [stdout] 9 | Lambertian(Texture), [INFO] [stdout] | ^^^^^^^ the trait `Clone` is not implemented for `dyn Texture` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `AssertParamIsClone` [INFO] [stdout] --> /rustc/7af779037716ae4125ceabb429791b4cf5dd0a43/library/core/src/clone.rs:198:1 [INFO] [stdout] = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn Texture + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/material.rs:131:34 [INFO] [stdout] | [INFO] [stdout] 131 | Material::Lambertian(texture) => texture.value(0.0, 0.0, Vec3::new(0.0, 0.0, 0.0)), [INFO] [stdout] | ^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn Texture + 'static)` [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] = help: unsized locals are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:60:42 [INFO] [stdout] | [INFO] [stdout] 60 | Material::Lambertian(Vec3::new(1.0, 0.0, 0.0)), [INFO] [stdout] | -------------------- ^^^^^^^^^^^^^^^^^^^^^^^^ expected `dyn Texture`, found `Vec3` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected trait object `(dyn Texture + 'static)` [INFO] [stdout] found struct `Vec3` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/material.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Lambertian(Texture), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn Texture + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/parser.rs:60:42 [INFO] [stdout] | [INFO] [stdout] 60 | Material::Lambertian(Vec3::new(1.0, 0.0, 0.0)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn Texture + 'static)` [INFO] [stdout] = note: all function arguments must have a statically known size [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `dyn Texture: Clone` is not satisfied [INFO] [stdout] --> src/texture.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Copy, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] 25 | pub struct Checker { [INFO] [stdout] 26 | odd: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `dyn Texture` [INFO] [stdout] | [INFO] [stdout] = note: required for `Box` to implement `Clone` [INFO] [stdout] note: required by a bound in `AssertParamIsClone` [INFO] [stdout] --> /rustc/7af779037716ae4125ceabb429791b4cf5dd0a43/library/core/src/clone.rs:198:1 [INFO] [stdout] = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `dyn Texture: Clone` is not satisfied [INFO] [stdout] --> src/texture.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Copy, Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 27 | even: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `dyn Texture` [INFO] [stdout] | [INFO] [stdout] = note: required for `Box` to implement `Clone` [INFO] [stdout] note: required by a bound in `AssertParamIsClone` [INFO] [stdout] --> /rustc/7af779037716ae4125ceabb429791b4cf5dd0a43/library/core/src/clone.rs:198:1 [INFO] [stdout] = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot multiply `{integer}` by `f32` [INFO] [stdout] --> src/texture.rs:32:42 [INFO] [stdout] | [INFO] [stdout] 32 | let sines = f32::sin(f32::sin(10 * p.x()) * f32::sin(10 * p.y()) * f32::sin(10 * p.z())); [INFO] [stdout] | ^ no implementation for `{integer} * f32` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Mul` is not implemented for `{integer}` [INFO] [stdout] = help: the following other types implement trait `Mul`: [INFO] [stdout] `&f128` implements `Mul` [INFO] [stdout] `&f128` implements `Mul` [INFO] [stdout] `&f16` implements `Mul` [INFO] [stdout] `&f16` implements `Mul` [INFO] [stdout] `&f32` implements `Mul` [INFO] [stdout] `&f32` implements `Mul` [INFO] [stdout] `&f64` implements `Mul` [INFO] [stdout] `&f64` implements `Mul` [INFO] [stdout] and 58 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot multiply `{integer}` by `f32` [INFO] [stdout] --> src/texture.rs:32:65 [INFO] [stdout] | [INFO] [stdout] 32 | let sines = f32::sin(f32::sin(10 * p.x()) * f32::sin(10 * p.y()) * f32::sin(10 * p.z())); [INFO] [stdout] | ^ no implementation for `{integer} * f32` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Mul` is not implemented for `{integer}` [INFO] [stdout] = help: the following other types implement trait `Mul`: [INFO] [stdout] `&f128` implements `Mul` [INFO] [stdout] `&f128` implements `Mul` [INFO] [stdout] `&f16` implements `Mul` [INFO] [stdout] `&f16` implements `Mul` [INFO] [stdout] `&f32` implements `Mul` [INFO] [stdout] `&f32` implements `Mul` [INFO] [stdout] `&f64` implements `Mul` [INFO] [stdout] `&f64` implements `Mul` [INFO] [stdout] and 58 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot multiply `{integer}` by `f32` [INFO] [stdout] --> src/texture.rs:32:88 [INFO] [stdout] | [INFO] [stdout] 32 | let sines = f32::sin(f32::sin(10 * p.x()) * f32::sin(10 * p.y()) * f32::sin(10 * p.z())); [INFO] [stdout] | ^ no implementation for `{integer} * f32` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Mul` is not implemented for `{integer}` [INFO] [stdout] = help: the following other types implement trait `Mul`: [INFO] [stdout] `&f128` implements `Mul` [INFO] [stdout] `&f128` implements `Mul` [INFO] [stdout] `&f16` implements `Mul` [INFO] [stdout] `&f16` implements `Mul` [INFO] [stdout] `&f32` implements `Mul` [INFO] [stdout] `&f32` implements `Mul` [INFO] [stdout] `&f64` implements `Mul` [INFO] [stdout] `&f64` implements `Mul` [INFO] [stdout] and 58 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/texture.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | if sines < 0.0 { [INFO] [stdout] | ________________________^ [INFO] [stdout] 34 | | self.odd.value(u, v, p); [INFO] [stdout] | | - help: remove this semicolon to return this value [INFO] [stdout] 35 | | } else { [INFO] [stdout] | |_________^ expected `Vec3`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/texture.rs:35:16 [INFO] [stdout] | [INFO] [stdout] 35 | } else { [INFO] [stdout] | ________________^ [INFO] [stdout] 36 | | self.even.value(u, v, p); [INFO] [stdout] | | - help: remove this semicolon to return this value [INFO] [stdout] 37 | | } [INFO] [stdout] | |_________^ expected `Vec3`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/texture.rs:44:18 [INFO] [stdout] | [INFO] [stdout] 44 | odd: t0, [INFO] [stdout] | ^^ expected `Box`, found `&Box` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Box<_>` [INFO] [stdout] found reference `&Box<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/texture.rs:45:19 [INFO] [stdout] | [INFO] [stdout] 45 | even: t1, [INFO] [stdout] | ^^ expected `Box`, found `&Box` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Box<_>` [INFO] [stdout] found reference `&Box<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:126:30 [INFO] [stdout] | [INFO] [stdout] 126 | Material::Lambertian(Vec3::new(0.5, 0.4, 0.5)), [INFO] [stdout] | -------------------- ^^^^^^^^^^^^^^^^^^^^^^^^ expected `dyn Texture`, found `Vec3` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected trait object `(dyn Texture + 'static)` [INFO] [stdout] found struct `Vec3` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/material.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Lambertian(Texture), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:144:46 [INFO] [stdout] | [INFO] [stdout] 144 | Material::Lambertian(Vec3::new( [INFO] [stdout] | _________________________--------------------_^ [INFO] [stdout] | | | [INFO] [stdout] | | arguments to this enum variant are incorrect [INFO] [stdout] 145 | | rng.gen_range(0.0, 1.0) * rng.gen_range(0.0, 1.0), [INFO] [stdout] 146 | | rng.gen_range(0.0, 1.0) * rng.gen_range(0.0, 1.0), [INFO] [stdout] 147 | | rng.gen_range(0.0, 1.0) * rng.gen_range(0.0, 1.0), [INFO] [stdout] 148 | | )), [INFO] [stdout] | |_________________________^ expected `dyn Texture`, found `Vec3` [INFO] [stdout] | [INFO] [stdout] = note: expected trait object `(dyn Texture + 'static)` [INFO] [stdout] found struct `Vec3` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/material.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Lambertian(Texture), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:177:30 [INFO] [stdout] | [INFO] [stdout] 177 | Material::Lambertian(Vec3::new(0.1, 0.2, 0.5)), [INFO] [stdout] | -------------------- ^^^^^^^^^^^^^^^^^^^^^^^^ expected `dyn Texture`, found `Vec3` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected trait object `(dyn Texture + 'static)` [INFO] [stdout] found struct `Vec3` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/material.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Lambertian(Texture), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn Texture + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:126:30 [INFO] [stdout] | [INFO] [stdout] 126 | Material::Lambertian(Vec3::new(0.5, 0.4, 0.5)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn Texture + 'static)` [INFO] [stdout] = note: all function arguments must have a statically known size [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/hitable_list.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | for i in 1..self.objs.len() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t0` [INFO] [stdout] --> src/hitable_list.rs:48:32 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn bounding_box(&self, t0: f32, t1: f32) -> Option { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_t0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t1` [INFO] [stdout] --> src/hitable_list.rs:48:41 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn bounding_box(&self, t0: f32, t1: f32) -> Option { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_t1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/texture.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | fn value(&self, u: f32, v: f32, p: Vec3) -> Vec3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/texture.rs:13:29 [INFO] [stdout] | [INFO] [stdout] 13 | fn value(&self, u: f32, v: f32, p: Vec3) -> Vec3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/texture.rs:13:37 [INFO] [stdout] | [INFO] [stdout] 13 | fn value(&self, u: f32, v: f32, p: Vec3) -> Vec3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0204, E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0204`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pathtracer` (bin "pathtracer") due to 25 previous errors; 30 warnings emitted [INFO] running `Command { std: "docker" "inspect" "e9999da9bf00fe08a7f1734f09aafe845b66572e9f9ab280a50d77061e091166", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9999da9bf00fe08a7f1734f09aafe845b66572e9f9ab280a50d77061e091166", kill_on_drop: false }` [INFO] [stdout] e9999da9bf00fe08a7f1734f09aafe845b66572e9f9ab280a50d77061e091166