[INFO] cloning repository https://github.com/maxfer1221/raytracing-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/maxfer1221/raytracing-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmaxfer1221%2Fraytracing-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmaxfer1221%2Fraytracing-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8f7b866bd1d9bc431baad3b09bbf53061afe0e13 [INFO] checking maxfer1221/raytracing-rs against try#04ea1e1f1a12cfa912c228ca278237d92d0bb6df for pr-148477-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmaxfer1221%2Fraytracing-rs" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/maxfer1221/raytracing-rs [INFO] finished tweaking git repo https://github.com/maxfer1221/raytracing-rs [INFO] tweaked toml for git repo https://github.com/maxfer1221/raytracing-rs written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/maxfer1221/raytracing-rs on toolchain 04ea1e1f1a12cfa912c228ca278237d92d0bb6df [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+04ea1e1f1a12cfa912c228ca278237d92d0bb6df" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/maxfer1221/raytracing-rs 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" "+04ea1e1f1a12cfa912c228ca278237d92d0bb6df" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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] checking maxfer1221/raytracing-rs against try#04ea1e1f1a12cfa912c228ca278237d92d0bb6df for pr-148477-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmaxfer1221%2Fraytracing-rs" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/maxfer1221/raytracing-rs [INFO] finished tweaking git repo https://github.com/maxfer1221/raytracing-rs [INFO] tweaked toml for git repo https://github.com/maxfer1221/raytracing-rs written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/maxfer1221/raytracing-rs on toolchain 04ea1e1f1a12cfa912c228ca278237d92d0bb6df [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+04ea1e1f1a12cfa912c228ca278237d92d0bb6df" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/maxfer1221/raytracing-rs 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" "+04ea1e1f1a12cfa912c228ca278237d92d0bb6df" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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 sdl2 v0.35.1 [INFO] [stderr] Downloaded sdl2-sys v0.35.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+04ea1e1f1a12cfa912c228ca278237d92d0bb6df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 09f409b03e61bef6a0f60acaaecf1cbed2ba596389a461ea7e5038334118ec2e [INFO] running `Command { std: "docker" "start" "-a" "09f409b03e61bef6a0f60acaaecf1cbed2ba596389a461ea7e5038334118ec2e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "09f409b03e61bef6a0f60acaaecf1cbed2ba596389a461ea7e5038334118ec2e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "09f409b03e61bef6a0f60acaaecf1cbed2ba596389a461ea7e5038334118ec2e", kill_on_drop: false }` [INFO] [stdout] 09f409b03e61bef6a0f60acaaecf1cbed2ba596389a461ea7e5038334118ec2e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+04ea1e1f1a12cfa912c228ca278237d92d0bb6df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 62656123da924149dc280fdca7c7c6710e9ae564479cdfcb4ddc1969c0756c94 [INFO] running `Command { std: "docker" "start" "-a" "62656123da924149dc280fdca7c7c6710e9ae564479cdfcb4ddc1969c0756c94", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.108 [INFO] [stderr] Compiling version-compare v0.1.0 [INFO] [stderr] Compiling sdl2 v0.35.1 [INFO] [stderr] Compiling sdl2-sys v0.35.1 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking sdl2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/rays.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | _ => None [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/rays.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 55 | Obj::Sphere(s) => sphere_intersection(p1, p2, obj, s.clone()), [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 56 | Obj::Light(l) => sphere_intersection(p1, p2, obj, Sphere { [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 62 | _ => None [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/rays.rs:193:17 [INFO] [stdout] | [INFO] [stdout] 174 | Obj::Light(light) => { [INFO] [stdout] | ----------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 193 | Obj::Light(l) => return Some(l.c), [INFO] [stdout] | ^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/rays.rs:172:28 [INFO] [stdout] | [INFO] [stdout] 172 | if let Obj::Sphere(s) = i[0].3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `scene` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/main.rs:45:31 [INFO] [stdout] | [INFO] [stdout] 30 | scene::setup(&mut scene); [INFO] [stdout] | ---------- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 45 | canvas.set_draw_color(scene.sky()); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `scene` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:47:22 [INFO] [stdout] | [INFO] [stdout] 30 | scene::setup(&mut scene); [INFO] [stdout] | ---------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 47 | let lights = scene.lights_mut(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | second mutable borrow occurs here [INFO] [stdout] | first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `scene` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:55:20 [INFO] [stdout] | [INFO] [stdout] 30 | scene::setup(&mut scene); [INFO] [stdout] | ---------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 55 | match &mut scene.objs_mut()[0] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | second mutable borrow occurs here [INFO] [stdout] | first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `scene` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:62:20 [INFO] [stdout] | [INFO] [stdout] 30 | scene::setup(&mut scene); [INFO] [stdout] | ---------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 62 | match &mut scene.objs_mut()[1] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | second mutable borrow occurs here [INFO] [stdout] | first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `scene` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/main.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 30 | scene::setup(&mut scene); [INFO] [stdout] | ---------- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 66 | cl = scene.camera_loc(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `scene` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/main.rs:67:15 [INFO] [stdout] | [INFO] [stdout] 30 | scene::setup(&mut scene); [INFO] [stdout] | ---------- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 67 | fov = scene.camera_fov(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `scene` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:79:62 [INFO] [stdout] | [INFO] [stdout] 30 | scene::setup(&mut scene); [INFO] [stdout] | ---------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 79 | if let Some(color) = rays::final_color(&ray, &mut scene) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | second mutable borrow occurs here [INFO] [stdout] | first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0502. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sdl2` (bin "sdl2" test) due to 7 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/rays.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | _ => None [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/rays.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 55 | Obj::Sphere(s) => sphere_intersection(p1, p2, obj, s.clone()), [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 56 | Obj::Light(l) => sphere_intersection(p1, p2, obj, Sphere { [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 62 | _ => None [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/rays.rs:193:17 [INFO] [stdout] | [INFO] [stdout] 174 | Obj::Light(light) => { [INFO] [stdout] | ----------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 193 | Obj::Light(l) => return Some(l.c), [INFO] [stdout] | ^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/rays.rs:172:28 [INFO] [stdout] | [INFO] [stdout] 172 | if let Obj::Sphere(s) = i[0].3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `scene` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/main.rs:45:31 [INFO] [stdout] | [INFO] [stdout] 30 | scene::setup(&mut scene); [INFO] [stdout] | ---------- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 45 | canvas.set_draw_color(scene.sky()); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `scene` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:47:22 [INFO] [stdout] | [INFO] [stdout] 30 | scene::setup(&mut scene); [INFO] [stdout] | ---------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 47 | let lights = scene.lights_mut(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | second mutable borrow occurs here [INFO] [stdout] | first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `scene` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:55:20 [INFO] [stdout] | [INFO] [stdout] 30 | scene::setup(&mut scene); [INFO] [stdout] | ---------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 55 | match &mut scene.objs_mut()[0] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | second mutable borrow occurs here [INFO] [stdout] | first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `scene` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:62:20 [INFO] [stdout] | [INFO] [stdout] 30 | scene::setup(&mut scene); [INFO] [stdout] | ---------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 62 | match &mut scene.objs_mut()[1] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | second mutable borrow occurs here [INFO] [stdout] | first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `scene` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/main.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 30 | scene::setup(&mut scene); [INFO] [stdout] | ---------- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 66 | cl = scene.camera_loc(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `scene` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/main.rs:67:15 [INFO] [stdout] | [INFO] [stdout] 30 | scene::setup(&mut scene); [INFO] [stdout] | ---------- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 67 | fov = scene.camera_fov(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `scene` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:79:62 [INFO] [stdout] | [INFO] [stdout] 30 | scene::setup(&mut scene); [INFO] [stdout] | ---------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 79 | if let Some(color) = rays::final_color(&ray, &mut scene) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | second mutable borrow occurs here [INFO] [stdout] | first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0502. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sdl2` (bin "sdl2") due to 7 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "62656123da924149dc280fdca7c7c6710e9ae564479cdfcb4ddc1969c0756c94", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "62656123da924149dc280fdca7c7c6710e9ae564479cdfcb4ddc1969c0756c94", kill_on_drop: false }` [INFO] [stdout] 62656123da924149dc280fdca7c7c6710e9ae564479cdfcb4ddc1969c0756c94