[INFO] cloning repository https://github.com/Dominux/ray-tracing-in-a-weekend
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Dominux/ray-tracing-in-a-weekend" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDominux%2Fray-tracing-in-a-weekend", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDominux%2Fray-tracing-in-a-weekend'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 1fb427a10db70e8e96284c2c51e0ba90f409aa75
[INFO] checking Dominux/ray-tracing-in-a-weekend against master#292be5c7c05138d753bbd4b30db7a3f1a5c914f7 for pr-148271
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDominux%2Fray-tracing-in-a-weekend" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Dominux/ray-tracing-in-a-weekend
[INFO] finished tweaking git repo https://github.com/Dominux/ray-tracing-in-a-weekend
[INFO] tweaked toml for git repo https://github.com/Dominux/ray-tracing-in-a-weekend written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Dominux/ray-tracing-in-a-weekend on toolchain 292be5c7c05138d753bbd4b30db7a3f1a5c914f7
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Dominux/ray-tracing-in-a-weekend 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" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 06b61cadb092002d5772db0e105a0f987cf5cc3d22e467deee47cc155081bada
[INFO] running `Command { std: "docker" "start" "-a" "06b61cadb092002d5772db0e105a0f987cf5cc3d22e467deee47cc155081bada", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "06b61cadb092002d5772db0e105a0f987cf5cc3d22e467deee47cc155081bada", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "06b61cadb092002d5772db0e105a0f987cf5cc3d22e467deee47cc155081bada", kill_on_drop: false }`
[INFO] [stdout] 06b61cadb092002d5772db0e105a0f987cf5cc3d22e467deee47cc155081bada
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 85aceee6f09289f769e669e9340a03f3bd81eae11c4342ca1624062cc7018ae6
[INFO] running `Command { std: "docker" "start" "-a" "85aceee6f09289f769e669e9340a03f3bd81eae11c4342ca1624062cc7018ae6", kill_on_drop: false }`
[INFO] [stderr]     Checking ray_tracing_in_a_weekend v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0596]: cannot borrow `temp_rec` as mutable, as it is not declared as mutable
[INFO] [stdout]   --> src/hitable_list.rs:22:57
[INFO] [stdout]    |
[INFO] [stdout] 22 |             .filter(|h| h.hit(r, t_min, closest_so_far, &mut temp_rec))
[INFO] [stdout]    |                                                         ^^^^^^^^^^^^^ cannot borrow as mutable
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]    |
[INFO] [stdout] 16 |         let mut temp_rec: HitRecord;
[INFO] [stdout]    |             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0594]: cannot assign to `hit_anything`, as it is not declared as mutable
[INFO] [stdout]   --> src/hitable_list.rs:24:17
[INFO] [stdout]    |
[INFO] [stdout] 24 |                 hit_anything = true;
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^ cannot assign
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]    |
[INFO] [stdout] 17 |         let mut hit_anything = false;
[INFO] [stdout]    |             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0594]: cannot assign to `closest_so_far`, as it is not declared as mutable
[INFO] [stdout]   --> src/hitable_list.rs:25:17
[INFO] [stdout]    |
[INFO] [stdout] 25 |                 closest_so_far = temp_rec.t;
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot assign
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]    |
[INFO] [stdout] 18 |         let mut closest_so_far = t_max;
[INFO] [stdout]    |             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0521]: borrowed data escapes outside of closure
[INFO] [stdout]   --> src/hitable_list.rs:26:17
[INFO] [stdout]    |
[INFO] [stdout] 15 |     fn hit(&self, r: &Ray, t_min: f64, t_max: f64, rec: &mut HitRecord) -> bool {
[INFO] [stdout]    |                                                    --- `rec` declared here, outside of the closure body
[INFO] [stdout] ...
[INFO] [stdout] 26 |                 rec = &mut temp_rec
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0594]: cannot assign to `rec`, as it is not declared as mutable
[INFO] [stdout]   --> src/hitable_list.rs:26:17
[INFO] [stdout]    |
[INFO] [stdout] 26 |                 rec = &mut temp_rec
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^ cannot assign
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]    |
[INFO] [stdout] 15 |     fn hit(&self, r: &Ray, t_min: f64, t_max: f64, mut rec: &mut HitRecord) -> bool {
[INFO] [stdout]    |                                                    +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `temp_rec` as mutable, as it is not declared as mutable
[INFO] [stdout]   --> src/hitable_list.rs:26:23
[INFO] [stdout]    |
[INFO] [stdout] 26 |                 rec = &mut temp_rec
[INFO] [stdout]    |                       ^^^^^^^^^^^^^ cannot borrow as mutable
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]    |
[INFO] [stdout] 16 |         let mut temp_rec: HitRecord;
[INFO] [stdout]    |             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `ray_tracing_in_a_weekend` (bin "ray_tracing_in_a_weekend") due to 11 previous errors; 1 warning emitted
[INFO] [stdout] error[E0381]: used binding `temp_rec` isn't initialized
[INFO] [stdout]   --> src/hitable_list.rs:22:21
[INFO] [stdout]    |
[INFO] [stdout] 16 |         let temp_rec: HitRecord;
[INFO] [stdout]    |             -------- binding declared here but left uninitialized
[INFO] [stdout] ...
[INFO] [stdout] 22 |             .filter(|h| h.hit(r, t_min, closest_so_far, &mut temp_rec))
[INFO] [stdout]    |                     ^^^                                      -------- borrow occurs due to use in closure
[INFO] [stdout]    |                     |
[INFO] [stdout]    |                     `temp_rec` used here but it isn't initialized
[INFO] [stdout]    |
[INFO] [stdout] help: consider assigning a value
[INFO] [stdout]    |
[INFO] [stdout] 16 |         let temp_rec: HitRecord = Default::default();
[INFO] [stdout]    |                                 ++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0500]: closure requires unique access to `closest_so_far` but it is already borrowed
[INFO] [stdout]   --> src/hitable_list.rs:23:18
[INFO] [stdout]    |
[INFO] [stdout] 22 |             .filter(|h| h.hit(r, t_min, closest_so_far, &mut temp_rec))
[INFO] [stdout]    |                     ---                 -------------- first borrow occurs due to use of `closest_so_far` in closure
[INFO] [stdout]    |                     |
[INFO] [stdout]    |                     borrow occurs here
[INFO] [stdout] 23 |             .map(|h| {
[INFO] [stdout]    |              --- ^^^ closure construction occurs here
[INFO] [stdout]    |              |
[INFO] [stdout]    |              first borrow later used by call
[INFO] [stdout] 24 |                 hit_anything = true;
[INFO] [stdout] 25 |                 closest_so_far = temp_rec.t;
[INFO] [stdout]    |                 -------------- second borrow occurs due to use of `closest_so_far` in closure
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0524]: two closures require unique access to `temp_rec` at the same time
[INFO] [stdout]   --> src/hitable_list.rs:23:18
[INFO] [stdout]    |
[INFO] [stdout] 22 |             .filter(|h| h.hit(r, t_min, closest_so_far, &mut temp_rec))
[INFO] [stdout]    |                     --- first closure is constructed here    -------- first borrow occurs due to use of `temp_rec` in closure
[INFO] [stdout] 23 |             .map(|h| {
[INFO] [stdout]    |              --- ^^^ second closure is constructed here
[INFO] [stdout]    |              |
[INFO] [stdout]    |              first borrow later used by call
[INFO] [stdout] ...
[INFO] [stdout] 26 |                 rec = &mut temp_rec
[INFO] [stdout]    |                            -------- second borrow occurs due to use of `temp_rec` in closure
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0597]: `temp_rec` does not live long enough
[INFO] [stdout]   --> src/hitable_list.rs:26:28
[INFO] [stdout]    |
[INFO] [stdout] 15 |     fn hit(&self, r: &Ray, t_min: f64, t_max: f64, rec: &mut HitRecord) -> bool {
[INFO] [stdout]    |                                                         - let's call the lifetime of this reference `'1`
[INFO] [stdout] 16 |         let temp_rec: HitRecord;
[INFO] [stdout]    |             -------- binding `temp_rec` declared here
[INFO] [stdout] ...
[INFO] [stdout] 23 |             .map(|h| {
[INFO] [stdout]    |                  --- value captured here
[INFO] [stdout] ...
[INFO] [stdout] 26 |                 rec = &mut temp_rec
[INFO] [stdout]    |                 -----------^^^^^^^^
[INFO] [stdout]    |                 |          |
[INFO] [stdout]    |                 |          borrowed value does not live long enough
[INFO] [stdout]    |                 assignment requires that `temp_rec` is borrowed for `'1`
[INFO] [stdout] ...
[INFO] [stdout] 29 |     }
[INFO] [stdout]    |     - `temp_rec` dropped here while still borrowed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `h`
[INFO] [stdout]   --> src/hitable_list.rs:23:19
[INFO] [stdout]    |
[INFO] [stdout] 23 |             .map(|h| {
[INFO] [stdout]    |                   ^ help: if this is intentional, prefix it with an underscore: `_h`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `rec` as mutable, as it is not declared as mutable
[INFO] [stdout]   --> src/main.rs:17:37
[INFO] [stdout]    |
[INFO] [stdout] 17 |     if world.hit(&r, 0.0, f64::MAX, &mut rec) {
[INFO] [stdout]    |                                     ^^^^^^^^ cannot borrow as mutable
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]    |
[INFO] [stdout] 16 |     let mut rec = HitRecord{..Default::default()};
[INFO] [stdout]    |         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0381, E0500, E0521, E0524, E0594, E0596, E0597.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0381`.
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `temp_rec` as mutable, as it is not declared as mutable
[INFO] [stdout]   --> src/hitable_list.rs:22:57
[INFO] [stdout]    |
[INFO] [stdout] 22 |             .filter(|h| h.hit(r, t_min, closest_so_far, &mut temp_rec))
[INFO] [stdout]    |                                                         ^^^^^^^^^^^^^ cannot borrow as mutable
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]    |
[INFO] [stdout] 16 |         let mut temp_rec: HitRecord;
[INFO] [stdout]    |             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0594]: cannot assign to `hit_anything`, as it is not declared as mutable
[INFO] [stdout]   --> src/hitable_list.rs:24:17
[INFO] [stdout]    |
[INFO] [stdout] 24 |                 hit_anything = true;
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^ cannot assign
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]    |
[INFO] [stdout] 17 |         let mut hit_anything = false;
[INFO] [stdout]    |             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0594]: cannot assign to `closest_so_far`, as it is not declared as mutable
[INFO] [stdout]   --> src/hitable_list.rs:25:17
[INFO] [stdout]    |
[INFO] [stdout] 25 |                 closest_so_far = temp_rec.t;
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot assign
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]    |
[INFO] [stdout] 18 |         let mut closest_so_far = t_max;
[INFO] [stdout]    |             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0521]: borrowed data escapes outside of closure
[INFO] [stdout]   --> src/hitable_list.rs:26:17
[INFO] [stdout]    |
[INFO] [stdout] 15 |     fn hit(&self, r: &Ray, t_min: f64, t_max: f64, rec: &mut HitRecord) -> bool {
[INFO] [stdout]    |                                                    --- `rec` declared here, outside of the closure body
[INFO] [stdout] ...
[INFO] [stdout] 26 |                 rec = &mut temp_rec
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0594]: cannot assign to `rec`, as it is not declared as mutable
[INFO] [stdout]   --> src/hitable_list.rs:26:17
[INFO] [stdout]    |
[INFO] [stdout] 26 |                 rec = &mut temp_rec
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^ cannot assign
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]    |
[INFO] [stdout] 15 |     fn hit(&self, r: &Ray, t_min: f64, t_max: f64, mut rec: &mut HitRecord) -> bool {
[INFO] [stdout]    |                                                    +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `temp_rec` as mutable, as it is not declared as mutable
[INFO] [stdout]   --> src/hitable_list.rs:26:23
[INFO] [stdout]    |
[INFO] [stdout] 26 |                 rec = &mut temp_rec
[INFO] [stdout]    |                       ^^^^^^^^^^^^^ cannot borrow as mutable
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]    |
[INFO] [stdout] 16 |         let mut temp_rec: HitRecord;
[INFO] [stdout]    |             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0381]: used binding `temp_rec` isn't initialized
[INFO] [stdout]   --> src/hitable_list.rs:22:21
[INFO] [stdout]    |
[INFO] [stdout] 16 |         let temp_rec: HitRecord;
[INFO] [stdout]    |             -------- binding declared here but left uninitialized
[INFO] [stdout] ...
[INFO] [stdout] 22 |             .filter(|h| h.hit(r, t_min, closest_so_far, &mut temp_rec))
[INFO] [stdout]    |                     ^^^                                      -------- borrow occurs due to use in closure
[INFO] [stdout]    |                     |
[INFO] [stdout]    |                     `temp_rec` used here but it isn't initialized
[INFO] [stdout]    |
[INFO] [stdout] help: consider assigning a value
[INFO] [stdout]    |
[INFO] [stdout] 16 |         let temp_rec: HitRecord = Default::default();
[INFO] [stdout]    |                                 ++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0500]: closure requires unique access to `closest_so_far` but it is already borrowed
[INFO] [stdout]   --> src/hitable_list.rs:23:18
[INFO] [stdout]    |
[INFO] [stdout] 22 |             .filter(|h| h.hit(r, t_min, closest_so_far, &mut temp_rec))
[INFO] [stdout]    |                     ---                 -------------- first borrow occurs due to use of `closest_so_far` in closure
[INFO] [stdout]    |                     |
[INFO] [stdout]    |                     borrow occurs here
[INFO] [stdout] 23 |             .map(|h| {
[INFO] [stdout]    |              --- ^^^ closure construction occurs here
[INFO] [stdout]    |              |
[INFO] [stdout]    |              first borrow later used by call
[INFO] [stdout] 24 |                 hit_anything = true;
[INFO] [stdout] 25 |                 closest_so_far = temp_rec.t;
[INFO] [stdout]    |                 -------------- second borrow occurs due to use of `closest_so_far` in closure
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0524]: two closures require unique access to `temp_rec` at the same time
[INFO] [stdout]   --> src/hitable_list.rs:23:18
[INFO] [stdout]    |
[INFO] [stdout] 22 |             .filter(|h| h.hit(r, t_min, closest_so_far, &mut temp_rec))
[INFO] [stdout]    |                     --- first closure is constructed here    -------- first borrow occurs due to use of `temp_rec` in closure
[INFO] [stdout] 23 |             .map(|h| {
[INFO] [stdout]    |              --- ^^^ second closure is constructed here
[INFO] [stdout]    |              |
[INFO] [stdout]    |              first borrow later used by call
[INFO] [stdout] ...
[INFO] [stdout] 26 |                 rec = &mut temp_rec
[INFO] [stdout]    |                            -------- second borrow occurs due to use of `temp_rec` in closure
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0597]: `temp_rec` does not live long enough
[INFO] [stdout]   --> src/hitable_list.rs:26:28
[INFO] [stdout]    |
[INFO] [stdout] 15 |     fn hit(&self, r: &Ray, t_min: f64, t_max: f64, rec: &mut HitRecord) -> bool {
[INFO] [stdout]    |                                                         - let's call the lifetime of this reference `'1`
[INFO] [stdout] 16 |         let temp_rec: HitRecord;
[INFO] [stdout]    |             -------- binding `temp_rec` declared here
[INFO] [stdout] ...
[INFO] [stdout] 23 |             .map(|h| {
[INFO] [stdout]    |                  --- value captured here
[INFO] [stdout] ...
[INFO] [stdout] 26 |                 rec = &mut temp_rec
[INFO] [stdout]    |                 -----------^^^^^^^^
[INFO] [stdout]    |                 |          |
[INFO] [stdout]    |                 |          borrowed value does not live long enough
[INFO] [stdout]    |                 assignment requires that `temp_rec` is borrowed for `'1`
[INFO] [stdout] ...
[INFO] [stdout] 29 |     }
[INFO] [stdout]    |     - `temp_rec` dropped here while still borrowed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `ray_tracing_in_a_weekend` (bin "ray_tracing_in_a_weekend" test) due to 11 previous errors; 1 warning emitted
[INFO] [stdout] warning: unused variable: `h`
[INFO] [stdout]   --> src/hitable_list.rs:23:19
[INFO] [stdout]    |
[INFO] [stdout] 23 |             .map(|h| {
[INFO] [stdout]    |                   ^ help: if this is intentional, prefix it with an underscore: `_h`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `rec` as mutable, as it is not declared as mutable
[INFO] [stdout]   --> src/main.rs:17:37
[INFO] [stdout]    |
[INFO] [stdout] 17 |     if world.hit(&r, 0.0, f64::MAX, &mut rec) {
[INFO] [stdout]    |                                     ^^^^^^^^ cannot borrow as mutable
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]    |
[INFO] [stdout] 16 |     let mut rec = HitRecord{..Default::default()};
[INFO] [stdout]    |         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0381, E0500, E0521, E0524, E0594, E0596, E0597.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0381`.
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "85aceee6f09289f769e669e9340a03f3bd81eae11c4342ca1624062cc7018ae6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "85aceee6f09289f769e669e9340a03f3bd81eae11c4342ca1624062cc7018ae6", kill_on_drop: false }`
[INFO] [stdout] 85aceee6f09289f769e669e9340a03f3bd81eae11c4342ca1624062cc7018ae6
