[INFO] cloning repository https://github.com/higumachan/ray-tracing-in-one-week-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/higumachan/ray-tracing-in-one-week-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhigumachan%2Fray-tracing-in-one-week-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhigumachan%2Fray-tracing-in-one-week-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 41ca2bc4e396c40e30b0abd2d05c0792426b1d68 [INFO] checking higumachan/ray-tracing-in-one-week-rust against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhigumachan%2Fray-tracing-in-one-week-rust" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/higumachan/ray-tracing-in-one-week-rust 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] started tweaking git repo https://github.com/higumachan/ray-tracing-in-one-week-rust [INFO] finished tweaking git repo https://github.com/higumachan/ray-tracing-in-one-week-rust [INFO] tweaked toml for git repo https://github.com/higumachan/ray-tracing-in-one-week-rust written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/higumachan/ray-tracing-in-one-week-rust 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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde v1.0.124 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.71 [INFO] [stderr] Downloaded wasm-bindgen v0.2.71 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.71 [INFO] [stderr] Downloaded plotters-backend v0.3.0 [INFO] [stderr] Downloaded cast v0.2.3 [INFO] [stderr] Downloaded js-sys v0.3.48 [INFO] [stderr] Downloaded bumpalo v3.6.1 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.71 [INFO] [stderr] Downloaded byteorder v1.4.2 [INFO] [stderr] Downloaded csv v1.1.5 [INFO] [stderr] Downloaded web-sys v0.3.48 [INFO] [stderr] Downloaded libc v0.2.88 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.71 [INFO] [stderr] Downloaded plotters v0.3.0 [INFO] [stderr] Downloaded serde_derive v1.0.124 [INFO] [stderr] Downloaded unwrap-ord v0.1.1 [INFO] [stderr] Downloaded plotters-svg v0.3.0 [INFO] [stderr] Downloaded syn v1.0.62 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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] 4cbf86ab56841c18fc939e8ee1e99225efdb98fc4b1bf41cb9b321eae16675b8 [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" "4cbf86ab56841c18fc939e8ee1e99225efdb98fc4b1bf41cb9b321eae16675b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4cbf86ab56841c18fc939e8ee1e99225efdb98fc4b1bf41cb9b321eae16675b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4cbf86ab56841c18fc939e8ee1e99225efdb98fc4b1bf41cb9b321eae16675b8", kill_on_drop: false }` [INFO] [stdout] 4cbf86ab56841c18fc939e8ee1e99225efdb98fc4b1bf41cb9b321eae16675b8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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] b1efb1bfa4061ad652ee820c455186a38a43b8c9be59e0908eb17747b27b4bee [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" "b1efb1bfa4061ad652ee820c455186a38a43b8c9be59e0908eb17747b27b4bee", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling rayon-core v1.9.0 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.62 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Checking byteorder v1.4.2 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Checking plotters-backend v0.3.0 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Compiling serde_derive v1.0.124 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking half v1.7.1 [INFO] [stderr] Checking regex-syntax v0.6.22 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking unwrap-ord v0.1.1 [INFO] [stderr] Checking itertools v0.9.0 [INFO] [stderr] Checking itertools v0.10.0 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking regex-automata v0.1.9 [INFO] [stderr] Checking plotters-svg v0.3.0 [INFO] [stderr] Checking walkdir v2.3.1 [INFO] [stderr] Compiling cast v0.2.3 [INFO] [stderr] Checking serde_cbor v0.11.1 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking bstr v0.2.15 [INFO] [stderr] Compiling crossbeam-utils v0.8.3 [INFO] [stderr] Compiling memoffset v0.6.1 [INFO] [stderr] Compiling rayon v1.5.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Checking rand_core v0.6.2 [INFO] [stderr] Checking rand_chacha v0.3.0 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking criterion-plot v0.4.3 [INFO] [stderr] Checking rand v0.8.3 [INFO] [stderr] Checking csv v1.1.5 [INFO] [stderr] Checking regex v1.4.3 [INFO] [stderr] Checking crossbeam-epoch v0.9.3 [INFO] [stderr] Checking crossbeam-channel v0.5.0 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking crossbeam-deque v0.8.0 [INFO] [stderr] Checking plotters v0.3.0 [INFO] [stderr] Checking ray-tracing-in-one-week-rust v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/hit.rs (1 fix) [INFO] [stderr] Fixed src/texture/solid_color.rs (3 fixes) [INFO] [stderr] Fixed src/hit_objects.rs (4 fixes) [INFO] [stderr] Fixed src/material/lambertian.rs (3 fixes) [INFO] [stderr] Fixed src/vector3.rs (1 fix) [INFO] [stderr] Fixed src/material/metal.rs (3 fixes) [INFO] [stderr] Fixed src/bvh/node.rs (5 fixes) [INFO] [stderr] Fixed src/bvh/aabb.rs (3 fixes) [INFO] [stderr] Fixed src/material/material.rs (1 fix) [INFO] [stderr] Fixed src/material/dielectric.rs (1 fix) [INFO] [stderr] Fixed src/moving_sphere.rs (2 fixes) [INFO] [stdout] warning: field is never read: `w` [INFO] [stdout] --> src/camera.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | w: Vector3, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking criterion v0.3.4 [INFO] [stderr] Migrating examples/5_2_creating_or_first_raytraced_image.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/8_4_fixing_shadow_acne.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/10_2_snells_law.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/10_3_total_internal_reflection.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/8_5_true_lambertian_reflection.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/8_3_using_gamma_correction_for_accurate_color_intensity.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/4_2_sending_rays_into_the_scene.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/10_5_total_internal_reflection.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/14_1_parallel.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/7_2_generating_pixels_with_multiple_samples.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/13_1_a_final_render.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/n_2_5_putting_everything_together.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/2_3_adding_a_progress_indicator.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/9_5_a_scene_with_metal_spheres.rs from 2018 edition to 2021 [INFO] [stderr] Migrating benches/world_hit.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/15_1_parallel_with_bvh.rs from 2018 edition to 2021 [INFO] [stderr] Fixed examples/10_2_snells_law.rs (4 fixes) [INFO] [stderr] Migrating examples/2_1_the_ppm_image_format.rs from 2018 edition to 2021 [INFO] [stdout] warning: unused import: `std::collections::hash_map::RandomState` [INFO] [stdout] --> examples/10_3_total_internal_reflection.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::collections::hash_map::RandomState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::sleep` [INFO] [stdout] --> examples/10_3_total_internal_reflection.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::thread::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> examples/10_3_total_internal_reflection.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> examples/10_3_total_internal_reflection.rs:94:18 [INFO] [stdout] | [INFO] [stdout] 94 | for i in (0..image_width) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/10_3_total_internal_reflection.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | material_ground, [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected struct `Arc`, found struct `Rc` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Arc<(dyn Material + 'static)>` [INFO] [stdout] found struct `Rc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/10_3_total_internal_reflection.rs:62:15 [INFO] [stdout] | [INFO] [stdout] 62 | world.add(Box::new(Sphere::new( [INFO] [stdout] | _______________^ [INFO] [stdout] 63 | | Point3::new(0.0, -100.5, -1.0), [INFO] [stdout] 64 | | 100.0, [INFO] [stdout] 65 | | material_ground, [INFO] [stdout] 66 | | ))); [INFO] [stdout] | |______^ expected enum `HitObject`, found struct `Box` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `HitObject` [INFO] [stdout] found struct `Box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/10_3_total_internal_reflection.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | material_center, [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected struct `Arc`, found struct `Rc` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Arc<(dyn Material + 'static)>` [INFO] [stdout] found struct `Rc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/10_3_total_internal_reflection.rs:67:15 [INFO] [stdout] | [INFO] [stdout] 67 | world.add(Box::new(Sphere::new( [INFO] [stdout] | _______________^ [INFO] [stdout] 68 | | Point3::new_z(-1.0), [INFO] [stdout] 69 | | 0.5, [INFO] [stdout] 70 | | material_center, [INFO] [stdout] 71 | | ))); [INFO] [stdout] | |______^ expected enum `HitObject`, found struct `Box` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `HitObject` [INFO] [stdout] found struct `Box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/10_3_total_internal_reflection.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | material_left, [INFO] [stdout] | ^^^^^^^^^^^^^ expected struct `Arc`, found struct `Rc` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Arc<(dyn Material + 'static)>` [INFO] [stdout] found struct `Rc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/10_3_total_internal_reflection.rs:72:15 [INFO] [stdout] | [INFO] [stdout] 72 | world.add(Box::new(Sphere::new( [INFO] [stdout] | _______________^ [INFO] [stdout] 73 | | Point3::new(-1.0, 0.0, -1.0), [INFO] [stdout] 74 | | 0.5, [INFO] [stdout] 75 | | material_left, [INFO] [stdout] 76 | | ))); [INFO] [stdout] | |______^ expected enum `HitObject`, found struct `Box` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `HitObject` [INFO] [stdout] found struct `Box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/10_3_total_internal_reflection.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | material_right, [INFO] [stdout] | ^^^^^^^^^^^^^^ expected struct `Arc`, found struct `Rc` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Arc<(dyn Material + 'static)>` [INFO] [stdout] found struct `Rc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/10_3_total_internal_reflection.rs:77:15 [INFO] [stdout] | [INFO] [stdout] 77 | world.add(Box::new(Sphere::new( [INFO] [stdout] | _______________^ [INFO] [stdout] 78 | | Point3::new(1.0, 0.0, -1.0), [INFO] [stdout] 79 | | 0.5, [INFO] [stdout] 80 | | material_right, [INFO] [stdout] 81 | | ))); [INFO] [stdout] | |______^ expected enum `HitObject`, found struct `Box` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `HitObject` [INFO] [stdout] found struct `Box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> examples/10_3_total_internal_reflection.rs:99:36 [INFO] [stdout] | [INFO] [stdout] 99 | let r = camera.ray(u, v); [INFO] [stdout] | ^^^ - - supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /tmp/fixit/src/camera.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn ray(&self, rng: &mut R, s: f64, t: f64) -> Ray { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ray-tracing-in-one-week-rust` due to 10 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused import: `std::collections::hash_map::RandomState` [INFO] [stdout] --> examples/8_4_fixing_shadow_acne.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::collections::hash_map::RandomState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::sleep` [INFO] [stdout] --> examples/8_4_fixing_shadow_acne.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::thread::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> examples/8_4_fixing_shadow_acne.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> examples/8_4_fixing_shadow_acne.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | &Ray::new(r.point().clone(), &target - r.point()), [INFO] [stdout] | ^^^^^^^^ ----------------- ------------------- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /tmp/fixit/src/ray.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(origin: Point3, direction: Vector3, time: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> examples/8_4_fixing_shadow_acne.rs:58:24 [INFO] [stdout] | [INFO] [stdout] 58 | world.add(Box::new(Sphere::new(Point3::new_z(-1.0), 0.5))); [INFO] [stdout] | ^^^^^^^^^^^ ------------------- --- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /tmp/fixit/src/sphere.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(center: Point3, radius: f64, material: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/8_4_fixing_shadow_acne.rs:58:15 [INFO] [stdout] | [INFO] [stdout] 58 | world.add(Box::new(Sphere::new(Point3::new_z(-1.0), 0.5))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `HitObject`, found struct `Box` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `HitObject` [INFO] [stdout] found struct `Box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> examples/8_4_fixing_shadow_acne.rs:59:24 [INFO] [stdout] | [INFO] [stdout] 59 | world.add(Box::new(Sphere::new(Point3::new(0.0, -100.5, -1.0), 100.0))); [INFO] [stdout] | ^^^^^^^^^^^ ------------------------------ ----- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /tmp/fixit/src/sphere.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(center: Point3, radius: f64, material: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/8_4_fixing_shadow_acne.rs:59:15 [INFO] [stdout] | [INFO] [stdout] 59 | world.add(Box::new(Sphere::new(Point3::new(0.0, -100.5, -1.0), 100.0))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `HitObject`, found struct `Box` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `HitObject` [INFO] [stdout] found struct `Box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> examples/8_4_fixing_shadow_acne.rs:77:36 [INFO] [stdout] | [INFO] [stdout] 77 | let r = camera.ray(u, v); [INFO] [stdout] | ^^^ - - supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /tmp/fixit/src/camera.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn ray(&self, rng: &mut R, s: f64, t: f64) -> Ray { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::RandomState` [INFO] [stdout] --> examples/8_5_true_lambertian_reflection.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::collections::hash_map::RandomState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::sleep` [INFO] [stdout] --> examples/8_5_true_lambertian_reflection.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::thread::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> examples/8_5_true_lambertian_reflection.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> examples/8_5_true_lambertian_reflection.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | &Ray::new(r.point().clone(), &target - r.point()), [INFO] [stdout] | ^^^^^^^^ ----------------- ------------------- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /tmp/fixit/src/ray.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(origin: Point3, direction: Vector3, time: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> examples/8_5_true_lambertian_reflection.rs:58:24 [INFO] [stdout] | [INFO] [stdout] 58 | world.add(Box::new(Sphere::new(Point3::new_z(-1.0), 0.5))); [INFO] [stdout] | ^^^^^^^^^^^ ------------------- --- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /tmp/fixit/src/sphere.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(center: Point3, radius: f64, material: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/8_5_true_lambertian_reflection.rs:58:15 [INFO] [stdout] | [INFO] [stdout] 58 | world.add(Box::new(Sphere::new(Point3::new_z(-1.0), 0.5))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `HitObject`, found struct `Box` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `HitObject` [INFO] [stdout] found struct `Box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> examples/8_5_true_lambertian_reflection.rs:59:24 [INFO] [stdout] | [INFO] [stdout] 59 | world.add(Box::new(Sphere::new(Point3::new(0.0, -100.5, -1.0), 100.0))); [INFO] [stdout] | ^^^^^^^^^^^ ------------------------------ ----- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /tmp/fixit/src/sphere.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(center: Point3, radius: f64, material: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/8_5_true_lambertian_reflection.rs:59:15 [INFO] [stdout] | [INFO] [stdout] 59 | world.add(Box::new(Sphere::new(Point3::new(0.0, -100.5, -1.0), 100.0))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `HitObject`, found struct `Box` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `HitObject` [INFO] [stdout] found struct `Box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> examples/8_5_true_lambertian_reflection.rs:77:36 [INFO] [stdout] | [INFO] [stdout] 77 | let r = camera.ray(u, v); [INFO] [stdout] | ^^^ - - supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /tmp/fixit/src/camera.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn ray(&self, rng: &mut R, s: f64, t: f64) -> Ray { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::RandomState` [INFO] [stdout] --> examples/8_3_using_gamma_correction_for_accurate_color_intensity.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::collections::hash_map::RandomState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::sleep` [INFO] [stdout] --> examples/8_3_using_gamma_correction_for_accurate_color_intensity.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::thread::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> examples/8_3_using_gamma_correction_for_accurate_color_intensity.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> examples/8_3_using_gamma_correction_for_accurate_color_intensity.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | &Ray::new(r.point().clone(), &target - r.point()), [INFO] [stdout] | ^^^^^^^^ ----------------- ------------------- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /tmp/fixit/src/ray.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(origin: Point3, direction: Vector3, time: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> examples/8_3_using_gamma_correction_for_accurate_color_intensity.rs:58:24 [INFO] [stdout] | [INFO] [stdout] 58 | world.add(Box::new(Sphere::new(Point3::new_z(-1.0), 0.5))); [INFO] [stdout] | ^^^^^^^^^^^ ------------------- --- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /tmp/fixit/src/sphere.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(center: Point3, radius: f64, material: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/8_3_using_gamma_correction_for_accurate_color_intensity.rs:58:15 [INFO] [stdout] | [INFO] [stdout] 58 | world.add(Box::new(Sphere::new(Point3::new_z(-1.0), 0.5))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `HitObject`, found struct `Box` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `HitObject` [INFO] [stdout] found struct `Box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> examples/8_3_using_gamma_correction_for_accurate_color_intensity.rs:59:24 [INFO] [stdout] | [INFO] [stdout] 59 | world.add(Box::new(Sphere::new(Point3::new(0.0, -100.5, -1.0), 100.0))); [INFO] [stdout] | ^^^^^^^^^^^ ------------------------------ ----- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /tmp/fixit/src/sphere.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(center: Point3, radius: f64, material: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/8_3_using_gamma_correction_for_accurate_color_intensity.rs:59:15 [INFO] [stdout] | [INFO] [stdout] 59 | world.add(Box::new(Sphere::new(Point3::new(0.0, -100.5, -1.0), 100.0))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `HitObject`, found struct `Box` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `HitObject` [INFO] [stdout] found struct `Box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> examples/8_3_using_gamma_correction_for_accurate_color_intensity.rs:77:36 [INFO] [stdout] | [INFO] [stdout] 77 | let r = camera.ray(u, v); [INFO] [stdout] | ^^^ - - supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /tmp/fixit/src/camera.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn ray(&self, rng: &mut R, s: f64, t: f64) -> Ray { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::sleep` [INFO] [stdout] --> examples/5_2_creating_or_first_raytraced_image.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::thread::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> examples/5_2_creating_or_first_raytraced_image.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> examples/5_2_creating_or_first_raytraced_image.rs:59:21 [INFO] [stdout] | [INFO] [stdout] 59 | let r = Ray::new( [INFO] [stdout] | ^^^^^^^^ expected 3 arguments [INFO] [stdout] 60 | origin.clone(), [INFO] [stdout] | -------------- [INFO] [stdout] 61 | &lower_left_corner + &hv + vv - Vector3::from(origin.clone()), [INFO] [stdout] | ------------------------------------------------------------- supplied 2 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /tmp/fixit/src/ray.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(origin: Point3, direction: Vector3, time: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::sleep` [INFO] [stdout] --> examples/4_2_sending_rays_into_the_scene.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::thread::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> examples/4_2_sending_rays_into_the_scene.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> examples/4_2_sending_rays_into_the_scene.rs:45:21 [INFO] [stdout] | [INFO] [stdout] 45 | let r = Ray::new( [INFO] [stdout] | ^^^^^^^^ expected 3 arguments [INFO] [stdout] 46 | origin.clone(), [INFO] [stdout] | -------------- [INFO] [stdout] 47 | &lower_left_corner + &hv + vv - Vector3::from(origin.clone()), [INFO] [stdout] | ------------------------------------------------------------- supplied 2 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /tmp/fixit/src/ray.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(origin: Point3, direction: Vector3, time: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::RandomState` [INFO] [stdout] --> examples/10_5_total_internal_reflection.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::collections::hash_map::RandomState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::sleep` [INFO] [stdout] --> examples/10_5_total_internal_reflection.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::thread::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> examples/10_5_total_internal_reflection.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> examples/10_5_total_internal_reflection.rs:99:18 [INFO] [stdout] | [INFO] [stdout] 99 | for i in (0..image_width) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/10_5_total_internal_reflection.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | material_ground, [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected struct `Arc`, found struct `Rc` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Arc<(dyn Material + 'static)>` [INFO] [stdout] found struct `Rc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/10_5_total_internal_reflection.rs:62:15 [INFO] [stdout] | [INFO] [stdout] 62 | world.add(Box::new(Sphere::new( [INFO] [stdout] | _______________^ [INFO] [stdout] 63 | | Point3::new(0.0, -100.5, -1.0), [INFO] [stdout] 64 | | 100.0, [INFO] [stdout] 65 | | material_ground, [INFO] [stdout] 66 | | ))); [INFO] [stdout] | |______^ expected enum `HitObject`, found struct `Box` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `HitObject` [INFO] [stdout] found struct `Box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/10_5_total_internal_reflection.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | material_center, [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected struct `Arc`, found struct `Rc` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Arc<(dyn Material + 'static)>` [INFO] [stdout] found struct `Rc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/10_5_total_internal_reflection.rs:67:15 [INFO] [stdout] | [INFO] [stdout] 67 | world.add(Box::new(Sphere::new( [INFO] [stdout] | _______________^ [INFO] [stdout] 68 | | Point3::new_z(-1.0), [INFO] [stdout] 69 | | 0.5, [INFO] [stdout] 70 | | material_center, [INFO] [stdout] 71 | | ))); [INFO] [stdout] | |______^ expected enum `HitObject`, found struct `Box` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `HitObject` [INFO] [stdout] found struct `Box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/10_5_total_internal_reflection.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | material_left.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ expected struct `Arc`, found struct `Rc` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Arc<(dyn Material + 'static)>` [INFO] [stdout] found struct `Rc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/10_5_total_internal_reflection.rs:72:15 [INFO] [stdout] | [INFO] [stdout] 72 | world.add(Box::new(Sphere::new( [INFO] [stdout] | _______________^ [INFO] [stdout] 73 | | Point3::new(-1.0, 0.0, -1.0), [INFO] [stdout] 74 | | 0.5, [INFO] [stdout] 75 | | material_left.clone(), [INFO] [stdout] 76 | | ))); [INFO] [stdout] | |______^ expected enum `HitObject`, found struct `Box` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `HitObject` [INFO] [stdout] found struct `Box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/10_5_total_internal_reflection.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | material_left, [INFO] [stdout] | ^^^^^^^^^^^^^ expected struct `Arc`, found struct `Rc` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Arc<(dyn Material + 'static)>` [INFO] [stdout] found struct `Rc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/10_5_total_internal_reflection.rs:77:15 [INFO] [stdout] | [INFO] [stdout] 77 | world.add(Box::new(Sphere::new( [INFO] [stdout] | _______________^ [INFO] [stdout] 78 | | Point3::new(-1.0, 0.0, -1.0), [INFO] [stdout] 79 | | -0.4, [INFO] [stdout] 80 | | material_left, [INFO] [stdout] 81 | | ))); [INFO] [stdout] | |______^ expected enum `HitObject`, found struct `Box` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `HitObject` [INFO] [stdout] found struct `Box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::RandomState` [INFO] [stdout] --> examples/7_2_generating_pixels_with_multiple_samples.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::hash_map::RandomState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::sleep` [INFO] [stdout] --> examples/7_2_generating_pixels_with_multiple_samples.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::thread::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> examples/7_2_generating_pixels_with_multiple_samples.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/10_5_total_internal_reflection.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | material_right, [INFO] [stdout] | ^^^^^^^^^^^^^^ expected struct `Arc`, found struct `Rc` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Arc<(dyn Material + 'static)>` [INFO] [stdout] found struct `Rc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> examples/7_2_generating_pixels_with_multiple_samples.rs:43:24 [INFO] [stdout] | [INFO] [stdout] 43 | world.add(Box::new(Sphere::new(Point3::new_z(-1.0), 0.5))); [INFO] [stdout] | ^^^^^^^^^^^ ------------------- --- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /tmp/fixit/src/sphere.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(center: Point3, radius: f64, material: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/10_5_total_internal_reflection.rs:82:15 [INFO] [stdout] | [INFO] [stdout] 82 | world.add(Box::new(Sphere::new( [INFO] [stdout] | _______________^ [INFO] [stdout] 83 | | Point3::new(1.0, 0.0, -1.0), [INFO] [stdout] 84 | | 0.5, [INFO] [stdout] 85 | | material_right, [INFO] [stdout] 86 | | ))); [INFO] [stdout] | |______^ expected enum `HitObject`, found struct `Box` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `HitObject` [INFO] [stdout] found struct `Box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> examples/10_5_total_internal_reflection.rs:104:36 [INFO] [stdout] | [INFO] [stdout] 104 | let r = camera.ray(u, v); [INFO] [stdout] | ^^^ - - supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /tmp/fixit/src/camera.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn ray(&self, rng: &mut R, s: f64, t: f64) -> Ray { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/7_2_generating_pixels_with_multiple_samples.rs:43:15 [INFO] [stdout] | [INFO] [stdout] 43 | world.add(Box::new(Sphere::new(Point3::new_z(-1.0), 0.5))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `HitObject`, found struct `Box` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `HitObject` [INFO] [stdout] found struct `Box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> examples/7_2_generating_pixels_with_multiple_samples.rs:44:24 [INFO] [stdout] | [INFO] [stdout] 44 | world.add(Box::new(Sphere::new(Point3::new(0.0, -100.5, -1.0), 100.0))); [INFO] [stdout] | ^^^^^^^^^^^ ------------------------------ ----- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /tmp/fixit/src/sphere.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(center: Point3, radius: f64, material: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/7_2_generating_pixels_with_multiple_samples.rs:44:15 [INFO] [stdout] | [INFO] [stdout] 44 | world.add(Box::new(Sphere::new(Point3::new(0.0, -100.5, -1.0), 100.0))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `HitObject`, found struct `Box` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `HitObject` [INFO] [stdout] found struct `Box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HitRecord` [INFO] [stdout] --> examples/13_1_a_final_render.rs:4:46 [INFO] [stdout] | [INFO] [stdout] 4 | use ray_tracing_in_one_week_rust::hit::{Hit, HitRecord}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::RandomState` [INFO] [stdout] --> examples/13_1_a_final_render.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::collections::hash_map::RandomState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::sleep` [INFO] [stdout] --> examples/13_1_a_final_render.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::thread::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> examples/13_1_a_final_render.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> examples/13_1_a_final_render.rs:144:18 [INFO] [stdout] | [INFO] [stdout] 144 | for i in (0..image_width) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> examples/7_2_generating_pixels_with_multiple_samples.rs:62:36 [INFO] [stdout] | [INFO] [stdout] 62 | let r = camera.ray(u, v); [INFO] [stdout] | ^^^ - - supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /tmp/fixit/src/camera.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn ray(&self, rng: &mut R, s: f64, t: f64) -> Ray { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 9 arguments but 7 arguments were supplied [INFO] [stdout] --> examples/13_1_a_final_render.rs:126:18 [INFO] [stdout] | [INFO] [stdout] 126 | let camera = Camera::new( [INFO] [stdout] | ^^^^^^^^^^^ expected 9 arguments [INFO] [stdout] 127 | look_from, [INFO] [stdout] | --------- [INFO] [stdout] 128 | look_at, [INFO] [stdout] | ------- [INFO] [stdout] 129 | vup, [INFO] [stdout] | --- [INFO] [stdout] 130 | 20.0, [INFO] [stdout] | ---- [INFO] [stdout] 131 | aspect_ratio, [INFO] [stdout] | ------------ [INFO] [stdout] 132 | aperture, [INFO] [stdout] | -------- [INFO] [stdout] 133 | dist_to_focus, [INFO] [stdout] | ------------- supplied 7 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /tmp/fixit/src/camera.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] Fixed examples/n_2_5_putting_everything_together.rs (5 fixes) [INFO] [stdout] warning: unused import: `HitRecord` [INFO] [stdout] --> examples/14_1_parallel.rs:4:46 [INFO] [stdout] | [INFO] [stdout] 4 | use ray_tracing_in_one_week_rust::hit::{Hit, HitRecord}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::RandomState` [INFO] [stdout] --> examples/14_1_parallel.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::collections::hash_map::RandomState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::sleep` [INFO] [stdout] --> examples/14_1_parallel.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::thread::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> examples/14_1_parallel.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> examples/14_1_parallel.rs:147:18 [INFO] [stdout] | [INFO] [stdout] 147 | for i in (0..image_width) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 9 arguments but 7 arguments were supplied [INFO] [stdout] --> examples/14_1_parallel.rs:127:18 [INFO] [stdout] | [INFO] [stdout] 127 | let camera = Camera::new( [INFO] [stdout] | ^^^^^^^^^^^ expected 9 arguments [INFO] [stdout] 128 | look_from, [INFO] [stdout] | --------- [INFO] [stdout] 129 | look_at, [INFO] [stdout] | ------- [INFO] [stdout] 130 | vup, [INFO] [stdout] | --- [INFO] [stdout] 131 | 20.0, [INFO] [stdout] | ---- [INFO] [stdout] 132 | aspect_ratio, [INFO] [stdout] | ------------ [INFO] [stdout] 133 | aperture, [INFO] [stdout] | -------- [INFO] [stdout] 134 | dist_to_focus, [INFO] [stdout] | ------------- supplied 7 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /tmp/fixit/src/camera.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `ray_tracing_in_one_week_rust::material::material::Material` [INFO] [stdout] --> examples/n_2_5_putting_everything_together.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use ray_tracing_in_one_week_rust::material::material::Material; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `ray_tracing_in_one_week_rust::lambertian` [INFO] [stdout] --> examples/9_5_a_scene_with_metal_spheres.rs:6:35 [INFO] [stdout] | [INFO] [stdout] 6 | use ray_tracing_in_one_week_rust::lambertian::Lambertian; [INFO] [stdout] | ^^^^^^^^^^ could not find `lambertian` in `ray_tracing_in_one_week_rust` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `ray_tracing_in_one_week_rust::metal` [INFO] [stdout] --> examples/9_5_a_scene_with_metal_spheres.rs:7:35 [INFO] [stdout] | [INFO] [stdout] 7 | use ray_tracing_in_one_week_rust::metal::Metal; [INFO] [stdout] | ^^^^^ could not find `metal` in `ray_tracing_in_one_week_rust` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::RandomState` [INFO] [stdout] --> examples/9_5_a_scene_with_metal_spheres.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::collections::hash_map::RandomState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::sleep` [INFO] [stdout] --> examples/9_5_a_scene_with_metal_spheres.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::thread::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> examples/9_5_a_scene_with_metal_spheres.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> examples/9_5_a_scene_with_metal_spheres.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 26 | .scatter(ray, &r) [INFO] [stdout] | ^^^^^^^ --- -- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /tmp/fixit/src/material/material.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | fn scatter( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/9_5_a_scene_with_metal_spheres.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | material_ground, [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected struct `Arc`, found struct `Rc` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Arc<(dyn Material + 'static)>` [INFO] [stdout] found struct `Rc<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `black_box` [INFO] [stdout] --> benches/world_hit.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use criterion::{black_box, criterion_group, criterion_main, Criterion}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/9_5_a_scene_with_metal_spheres.rs:71:15 [INFO] [stdout] | [INFO] [stdout] 71 | world.add(Box::new(Sphere::new( [INFO] [stdout] | _______________^ [INFO] [stdout] 72 | | Point3::new(0.0, -100.5, -1.0), [INFO] [stdout] 73 | | 100.0, [INFO] [stdout] 74 | | material_ground, [INFO] [stdout] 75 | | ))); [INFO] [stdout] | |______^ expected enum `HitObject`, found struct `Box` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `HitObject` [INFO] [stdout] found struct `Box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 9 arguments but 7 arguments were supplied [INFO] [stdout] --> benches/world_hit.rs:89:18 [INFO] [stdout] | [INFO] [stdout] 89 | let camera = Camera::new( [INFO] [stdout] | ^^^^^^^^^^^ expected 9 arguments [INFO] [stdout] 90 | look_from, [INFO] [stdout] | --------- [INFO] [stdout] 91 | look_at, [INFO] [stdout] | ------- [INFO] [stdout] 92 | vup, [INFO] [stdout] | --- [INFO] [stdout] 93 | 20.0, [INFO] [stdout] | ---- [INFO] [stdout] 94 | aspect_ratio, [INFO] [stdout] | ------------ [INFO] [stdout] 95 | aperture, [INFO] [stdout] | -------- [INFO] [stdout] 96 | dist_to_focus, [INFO] [stdout] | ------------- supplied 7 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /tmp/fixit/src/camera.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/9_5_a_scene_with_metal_spheres.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | material_center, [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected struct `Arc`, found struct `Rc` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Arc<(dyn Material + 'static)>` [INFO] [stdout] found struct `Rc<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/9_5_a_scene_with_metal_spheres.rs:76:15 [INFO] [stdout] | [INFO] [stdout] 76 | world.add(Box::new(Sphere::new( [INFO] [stdout] | _______________^ [INFO] [stdout] 77 | | Point3::new_z(-1.0), [INFO] [stdout] 78 | | 0.5, [INFO] [stdout] 79 | | material_center, [INFO] [stdout] 80 | | ))); [INFO] [stdout] | |______^ expected enum `HitObject`, found struct `Box` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `HitObject` [INFO] [stdout] found struct `Box` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed examples/15_1_parallel_with_bvh.rs (5 fixes) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/9_5_a_scene_with_metal_spheres.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | material_left, [INFO] [stdout] | ^^^^^^^^^^^^^ expected struct `Arc`, found struct `Rc` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Arc<(dyn Material + 'static)>` [INFO] [stdout] found struct `Rc<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/9_5_a_scene_with_metal_spheres.rs:81:15 [INFO] [stdout] | [INFO] [stdout] 81 | world.add(Box::new(Sphere::new( [INFO] [stdout] | _______________^ [INFO] [stdout] 82 | | Point3::new(-1.0, 0.0, -1.0), [INFO] [stdout] 83 | | 0.5, [INFO] [stdout] 84 | | material_left, [INFO] [stdout] 85 | | ))); [INFO] [stdout] | |______^ expected enum `HitObject`, found struct `Box` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `HitObject` [INFO] [stdout] found struct `Box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/9_5_a_scene_with_metal_spheres.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | material_right, [INFO] [stdout] | ^^^^^^^^^^^^^^ expected struct `Arc`, found struct `Rc` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Arc<(dyn Material + 'static)>` [INFO] [stdout] found struct `Rc<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/9_5_a_scene_with_metal_spheres.rs:86:15 [INFO] [stdout] | [INFO] [stdout] 86 | world.add(Box::new(Sphere::new( [INFO] [stdout] | _______________^ [INFO] [stdout] 87 | | Point3::new(1.0, 0.0, -1.0), [INFO] [stdout] 88 | | 0.5, [INFO] [stdout] 89 | | material_right, [INFO] [stdout] 90 | | ))); [INFO] [stdout] | |______^ expected enum `HitObject`, found struct `Box` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `HitObject` [INFO] [stdout] found struct `Box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> examples/9_5_a_scene_with_metal_spheres.rs:108:36 [INFO] [stdout] | [INFO] [stdout] 108 | let r = camera.ray(u, v); [INFO] [stdout] | ^^^ - - supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /tmp/fixit/src/camera.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn ray(&self, rng: &mut R, s: f64, t: f64) -> Ray { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 12 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "b1efb1bfa4061ad652ee820c455186a38a43b8c9be59e0908eb17747b27b4bee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1efb1bfa4061ad652ee820c455186a38a43b8c9be59e0908eb17747b27b4bee", kill_on_drop: false }` [INFO] [stdout] b1efb1bfa4061ad652ee820c455186a38a43b8c9be59e0908eb17747b27b4bee