[INFO] cloning repository https://github.com/elisvathi/rustracer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/elisvathi/rustracer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Felisvathi%2Frustracer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Felisvathi%2Frustracer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f520beb544da0c775aae8a5dfd4364378d568da7 [INFO] checking elisvathi/rustracer/f520beb544da0c775aae8a5dfd4364378d568da7 against master#ff1737bb00913444173658b4e0b274fd79aabf66 for pr-132712-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Felisvathi%2Frustracer" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/elisvathi/rustracer on toolchain ff1737bb00913444173658b4e0b274fd79aabf66 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/elisvathi/rustracer [INFO] finished tweaking git repo https://github.com/elisvathi/rustracer [INFO] tweaked toml for git repo https://github.com/elisvathi/rustracer written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/elisvathi/rustracer 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" "+ff1737bb00913444173658b4e0b274fd79aabf66" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 345e6cec68b527fdde4fd9a66b18e8809be1abb349ccb5fc1034201db14887bc [INFO] running `Command { std: "docker" "start" "-a" "345e6cec68b527fdde4fd9a66b18e8809be1abb349ccb5fc1034201db14887bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "345e6cec68b527fdde4fd9a66b18e8809be1abb349ccb5fc1034201db14887bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "345e6cec68b527fdde4fd9a66b18e8809be1abb349ccb5fc1034201db14887bc", kill_on_drop: false }` [INFO] [stdout] 345e6cec68b527fdde4fd9a66b18e8809be1abb349ccb5fc1034201db14887bc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 39fea16361ed7f5cbcfbb180de495c4f0da37353bb0a5cd9b64f49e4b40572e6 [INFO] running `Command { std: "docker" "start" "-a" "39fea16361ed7f5cbcfbb180de495c4f0da37353bb0a5cd9b64f49e4b40572e6", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Compiling getrandom v0.1.13 [INFO] [stderr] Checking c2-chacha v0.2.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.1 [INFO] [stderr] Checking rand v0.7.2 [INFO] [stderr] Checking rustracer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0277]: `Rc<(dyn hitable::Hittable + 'static)>` cannot be shared between threads safely [INFO] [stdout] --> src/threading/threadpool.rs:48:36 [INFO] [stdout] | [INFO] [stdout] 48 | let thread = thread::spawn(move || loop { [INFO] [stdout] | ______________________-------------_^ [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound introduced by this call [INFO] [stdout] 49 | | let message = receiver.lock().unwrap().recv().unwrap(); [INFO] [stdout] 50 | | match message { [INFO] [stdout] 51 | | Message::NewJob(job) => { [INFO] [stdout] ... | [INFO] [stdout] 58 | | } [INFO] [stdout] 59 | | }); [INFO] [stdout] | |_________^ `Rc<(dyn hitable::Hittable + 'static)>` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `accelerator::accelerator::BoundingBoxNode`, the trait `Sync` is not implemented for `Rc<(dyn hitable::Hittable + 'static)>` [INFO] [stdout] note: required because it appears within the type `Option>` [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/core/src/option.rs:572:10 [INFO] [stdout] note: required because it appears within the type `accelerator::accelerator::BoundingBoxNode` [INFO] [stdout] --> src/accelerator/accelerator.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct BoundingBoxNode { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Job` [INFO] [stdout] --> src/threading/threadpool.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct Job { [INFO] [stdout] | ^^^ [INFO] [stdout] note: required because it appears within the type `Message` [INFO] [stdout] --> src/threading/threadpool.rs:16:6 [INFO] [stdout] | [INFO] [stdout] 16 | enum Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] = note: required for `std::sync::mpsc::Receiver` to implement `Send` [INFO] [stdout] = note: required for `Mutex>` to implement `Sync` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `Arc>>` to implement `Send` [INFO] [stdout] note: required because it's used within this closure [INFO] [stdout] --> src/threading/threadpool.rs:48:36 [INFO] [stdout] | [INFO] [stdout] 48 | let thread = thread::spawn(move || loop { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: required by a bound in `spawn` [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/std/src/thread/mod.rs:724:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Rc<(dyn hitable::Hittable + 'static)>` cannot be shared between threads safely [INFO] [stdout] --> src/threading/threadpool.rs:48:36 [INFO] [stdout] | [INFO] [stdout] 48 | let thread = thread::spawn(move || loop { [INFO] [stdout] | ______________________-------------_^ [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound introduced by this call [INFO] [stdout] 49 | | let message = receiver.lock().unwrap().recv().unwrap(); [INFO] [stdout] 50 | | match message { [INFO] [stdout] 51 | | Message::NewJob(job) => { [INFO] [stdout] ... | [INFO] [stdout] 58 | | } [INFO] [stdout] 59 | | }); [INFO] [stdout] | |_________^ `Rc<(dyn hitable::Hittable + 'static)>` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `accelerator::accelerator::BoundingBoxNode`, the trait `Sync` is not implemented for `Rc<(dyn hitable::Hittable + 'static)>` [INFO] [stdout] note: required because it appears within the type `Option>` [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/core/src/option.rs:572:10 [INFO] [stdout] note: required because it appears within the type `accelerator::accelerator::BoundingBoxNode` [INFO] [stdout] --> src/accelerator/accelerator.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct BoundingBoxNode { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Job` [INFO] [stdout] --> src/threading/threadpool.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct Job { [INFO] [stdout] | ^^^ [INFO] [stdout] note: required because it appears within the type `Message` [INFO] [stdout] --> src/threading/threadpool.rs:16:6 [INFO] [stdout] | [INFO] [stdout] 16 | enum Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] = note: required for `std::sync::mpsc::Receiver` to implement `Send` [INFO] [stdout] = note: required for `Mutex>` to implement `Sync` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `Arc>>` to implement `Send` [INFO] [stdout] note: required because it's used within this closure [INFO] [stdout] --> src/threading/threadpool.rs:48:36 [INFO] [stdout] | [INFO] [stdout] 48 | let thread = thread::spawn(move || loop { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: required by a bound in `spawn` [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/std/src/thread/mod.rs:724:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Rc<(dyn hitable::Hittable + 'static)>` cannot be sent between threads safely [INFO] [stdout] --> src/threading/threadpool.rs:48:36 [INFO] [stdout] | [INFO] [stdout] 48 | let thread = thread::spawn(move || loop { [INFO] [stdout] | ______________________-------------_^ [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound introduced by this call [INFO] [stdout] 49 | | let message = receiver.lock().unwrap().recv().unwrap(); [INFO] [stdout] 50 | | match message { [INFO] [stdout] 51 | | Message::NewJob(job) => { [INFO] [stdout] ... | [INFO] [stdout] 58 | | } [INFO] [stdout] 59 | | }); [INFO] [stdout] | |_________^ `Rc<(dyn hitable::Hittable + 'static)>` cannot be sent between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `accelerator::accelerator::BoundingBoxNode`, the trait `Send` is not implemented for `Rc<(dyn hitable::Hittable + 'static)>` [INFO] [stdout] note: required because it appears within the type `Option>` [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/core/src/option.rs:572:10 [INFO] [stdout] note: required because it appears within the type `accelerator::accelerator::BoundingBoxNode` [INFO] [stdout] --> src/accelerator/accelerator.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct BoundingBoxNode { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Job` [INFO] [stdout] --> src/threading/threadpool.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct Job { [INFO] [stdout] | ^^^ [INFO] [stdout] note: required because it appears within the type `Message` [INFO] [stdout] --> src/threading/threadpool.rs:16:6 [INFO] [stdout] | [INFO] [stdout] 16 | enum Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] = note: required for `std::sync::mpsc::Receiver` to implement `Send` [INFO] [stdout] = note: required for `Mutex>` to implement `Sync` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `Arc>>` to implement `Send` [INFO] [stdout] note: required because it's used within this closure [INFO] [stdout] --> src/threading/threadpool.rs:48:36 [INFO] [stdout] | [INFO] [stdout] 48 | let thread = thread::spawn(move || loop { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: required by a bound in `spawn` [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/std/src/thread/mod.rs:724:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Rc<(dyn hitable::Hittable + 'static)>` cannot be sent between threads safely [INFO] [stdout] --> src/threading/threadpool.rs:48:36 [INFO] [stdout] | [INFO] [stdout] 48 | let thread = thread::spawn(move || loop { [INFO] [stdout] | ______________________-------------_^ [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound introduced by this call [INFO] [stdout] 49 | | let message = receiver.lock().unwrap().recv().unwrap(); [INFO] [stdout] 50 | | match message { [INFO] [stdout] 51 | | Message::NewJob(job) => { [INFO] [stdout] ... | [INFO] [stdout] 58 | | } [INFO] [stdout] 59 | | }); [INFO] [stdout] | |_________^ `Rc<(dyn hitable::Hittable + 'static)>` cannot be sent between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `accelerator::accelerator::BoundingBoxNode`, the trait `Send` is not implemented for `Rc<(dyn hitable::Hittable + 'static)>` [INFO] [stdout] note: required because it appears within the type `Option>` [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/core/src/option.rs:572:10 [INFO] [stdout] note: required because it appears within the type `accelerator::accelerator::BoundingBoxNode` [INFO] [stdout] --> src/accelerator/accelerator.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct BoundingBoxNode { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Job` [INFO] [stdout] --> src/threading/threadpool.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct Job { [INFO] [stdout] | ^^^ [INFO] [stdout] note: required because it appears within the type `Message` [INFO] [stdout] --> src/threading/threadpool.rs:16:6 [INFO] [stdout] | [INFO] [stdout] 16 | enum Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] = note: required for `std::sync::mpsc::Receiver` to implement `Send` [INFO] [stdout] = note: required for `Mutex>` to implement `Sync` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `Arc>>` to implement `Send` [INFO] [stdout] note: required because it's used within this closure [INFO] [stdout] --> src/threading/threadpool.rs:48:36 [INFO] [stdout] | [INFO] [stdout] 48 | let thread = thread::spawn(move || loop { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: required by a bound in `spawn` [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/std/src/thread/mod.rs:724:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `F: FnBox` is not satisfied [INFO] [stdout] --> src/threading/threadpool.rs:82:18 [INFO] [stdout] | [INFO] [stdout] 82 | fun: Box::new(f), [INFO] [stdout] | ^^^^^^^^^^^ the trait `FnOnce(Arc)` is not implemented for `F` [INFO] [stdout] | [INFO] [stdout] = note: expected a closure with arguments `(Rc,)` [INFO] [stdout] found a closure with arguments `(Arc,)` [INFO] [stdout] note: required for `F` to implement `FnBox` [INFO] [stdout] --> src/threading/threadpool.rs:31:52 [INFO] [stdout] | [INFO] [stdout] 31 | impl) -> PixelData> FnBox for F { [INFO] [stdout] | ----------------------------------------- ^^^^^ ^ [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] = note: required for the cast from `Box` to `Box<(dyn FnBox + Send + 'static)>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `F: FnBox` is not satisfied [INFO] [stdout] --> src/threading/threadpool.rs:82:18 [INFO] [stdout] | [INFO] [stdout] 82 | fun: Box::new(f), [INFO] [stdout] | ^^^^^^^^^^^ the trait `FnOnce(Arc)` is not implemented for `F` [INFO] [stdout] | [INFO] [stdout] = note: expected a closure with arguments `(Rc,)` [INFO] [stdout] found a closure with arguments `(Arc,)` [INFO] [stdout] note: required for `F` to implement `FnBox` [INFO] [stdout] --> src/threading/threadpool.rs:31:52 [INFO] [stdout] | [INFO] [stdout] 31 | impl) -> PixelData> FnBox for F { [INFO] [stdout] | ----------------------------------------- ^^^^^ ^ [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] = note: required for the cast from `Box` to `Box<(dyn FnBox + Send + 'static)>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rustracer` (lib) due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rustracer` (lib test) due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "39fea16361ed7f5cbcfbb180de495c4f0da37353bb0a5cd9b64f49e4b40572e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "39fea16361ed7f5cbcfbb180de495c4f0da37353bb0a5cd9b64f49e4b40572e6", kill_on_drop: false }` [INFO] [stdout] 39fea16361ed7f5cbcfbb180de495c4f0da37353bb0a5cd9b64f49e4b40572e6