[INFO] cloning repository https://github.com/hpbrewton/regyrabit [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hpbrewton/regyrabit" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhpbrewton%2Fregyrabit", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhpbrewton%2Fregyrabit'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3000b5645b9e46d6db14db597ae730f9cc566599 [INFO] checking hpbrewton/regyrabit against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhpbrewton%2Fregyrabit" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hpbrewton/regyrabit on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/hpbrewton/regyrabit [INFO] finished tweaking git repo https://github.com/hpbrewton/regyrabit [INFO] tweaked toml for git repo https://github.com/hpbrewton/regyrabit written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/hpbrewton/regyrabit 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" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3daa5d964d2857974565761a99c92be0c202d3446112ead5a6eed1d0840786fd [INFO] running `Command { std: "docker" "start" "-a" "3daa5d964d2857974565761a99c92be0c202d3446112ead5a6eed1d0840786fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3daa5d964d2857974565761a99c92be0c202d3446112ead5a6eed1d0840786fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3daa5d964d2857974565761a99c92be0c202d3446112ead5a6eed1d0840786fd", kill_on_drop: false }` [INFO] [stdout] 3daa5d964d2857974565761a99c92be0c202d3446112ead5a6eed1d0840786fd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3bb43f62a81e20a61b3e52bfb2e54db0e5041586618978b1d7d6f1e1b9e9fb12 [INFO] running `Command { std: "docker" "start" "-a" "3bb43f62a81e20a61b3e52bfb2e54db0e5041586618978b1d7d6f1e1b9e9fb12", kill_on_drop: false }` [INFO] [stderr] Checking sched v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/scheduler.rs:19:28 [INFO] [stdout] | [INFO] [stdout] 19 | fn schedule(&mut self, &mut ticker: ticker::Ticker) { [INFO] [stdout] | ^^^^^^^^^^^ -------------- expected due to this [INFO] [stdout] | | [INFO] [stdout] | expected `dyn Ticker`, found `&mut _` [INFO] [stdout] | [INFO] [stdout] = note: expected trait object `(dyn Ticker + 'static)` [INFO] [stdout] found mutable reference `&mut _` [INFO] [stdout] note: to declare a mutable parameter use: `mut ticker` [INFO] [stdout] --> src/scheduler.rs:19:28 [INFO] [stdout] | [INFO] [stdout] 19 | fn schedule(&mut self, &mut ticker: ticker::Ticker) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: to take parameter `ticker` by reference, move `&mut` to the type [INFO] [stdout] | [INFO] [stdout] 19 - fn schedule(&mut self, &mut ticker: ticker::Ticker) { [INFO] [stdout] 19 + fn schedule(&mut self, ticker: &mut ticker::Ticker) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/scheduler.rs:19:28 [INFO] [stdout] | [INFO] [stdout] 19 | fn schedule(&mut self, &mut ticker: ticker::Ticker) { [INFO] [stdout] | ^^^^^^^^^^^ -------------- expected due to this [INFO] [stdout] | | [INFO] [stdout] | expected `dyn Ticker`, found `&mut _` [INFO] [stdout] | [INFO] [stdout] = note: expected trait object `(dyn Ticker + 'static)` [INFO] [stdout] found mutable reference `&mut _` [INFO] [stdout] note: to declare a mutable parameter use: `mut ticker` [INFO] [stdout] --> src/scheduler.rs:19:28 [INFO] [stdout] | [INFO] [stdout] 19 | fn schedule(&mut self, &mut ticker: ticker::Ticker) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: to take parameter `ticker` by reference, move `&mut` to the type [INFO] [stdout] | [INFO] [stdout] 19 - fn schedule(&mut self, &mut ticker: ticker::Ticker) { [INFO] [stdout] 19 + fn schedule(&mut self, ticker: &mut ticker::Ticker) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn Ticker + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/scheduler.rs:19:28 [INFO] [stdout] | [INFO] [stdout] 19 | fn schedule(&mut self, &mut ticker: ticker::Ticker) { [INFO] [stdout] | ^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn Ticker + 'static)` [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] help: you can use `impl Trait` as the argument type [INFO] [stdout] | [INFO] [stdout] 19 | fn schedule(&mut self, &mut ticker: impl ticker::Ticker) { [INFO] [stdout] | ++++ [INFO] [stdout] help: function arguments must have a statically known size, borrowed types always have a known size [INFO] [stdout] | [INFO] [stdout] 19 | fn schedule(&mut self, &mut ticker: &dyn ticker::Ticker) { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn Ticker + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/scheduler.rs:19:28 [INFO] [stdout] | [INFO] [stdout] 19 | fn schedule(&mut self, &mut ticker: ticker::Ticker) { [INFO] [stdout] | ^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn Ticker + 'static)` [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] help: you can use `impl Trait` as the argument type [INFO] [stdout] | [INFO] [stdout] 19 | fn schedule(&mut self, &mut ticker: impl ticker::Ticker) { [INFO] [stdout] | ++++ [INFO] [stdout] help: function arguments must have a statically known size, borrowed types always have a known size [INFO] [stdout] | [INFO] [stdout] 19 | fn schedule(&mut self, &mut ticker: &dyn ticker::Ticker) { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0033]: type `*mut dyn Ticker` cannot be dereferenced [INFO] [stdout] --> src/scheduler.rs:28:17 [INFO] [stdout] | [INFO] [stdout] 28 | let &mut ticker = Box::into_raw(opt_box_ticker.unwrap()); [INFO] [stdout] | ^^^^^^^^^^^ type `*mut dyn Ticker` cannot be dereferenced [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0033]: type `*mut dyn Ticker` cannot be dereferenced [INFO] [stdout] --> src/scheduler.rs:28:17 [INFO] [stdout] | [INFO] [stdout] 28 | let &mut ticker = Box::into_raw(opt_box_ticker.unwrap()); [INFO] [stdout] | ^^^^^^^^^^^ type `*mut dyn Ticker` cannot be dereferenced [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | rr.schedule(ticker::SimpleTicker{ [INFO] [stdout] | ____________--------_^ [INFO] [stdout] | | | [INFO] [stdout] | | arguments to this method are incorrect [INFO] [stdout] 10 | | count: 5 [INFO] [stdout] 11 | | }) [INFO] [stdout] | |_________^ expected `dyn Ticker`, found `SimpleTicker` [INFO] [stdout] | [INFO] [stdout] = note: expected trait object `(dyn Ticker + 'static)` [INFO] [stdout] found struct `SimpleTicker` [INFO] [stdout] = help: `SimpleTicker` implements `Ticker` so you could box the found value and coerce it to the trait object `Box`, you will have to change the expected type as well [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/scheduler.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | fn schedule(&mut self, ticker: ticker::Ticker); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | rr.schedule(ticker::SimpleTicker{ [INFO] [stdout] | ____________--------_^ [INFO] [stdout] | | | [INFO] [stdout] | | arguments to this method are incorrect [INFO] [stdout] 10 | | count: 5 [INFO] [stdout] 11 | | }) [INFO] [stdout] | |_________^ expected `dyn Ticker`, found `SimpleTicker` [INFO] [stdout] | [INFO] [stdout] = note: expected trait object `(dyn Ticker + 'static)` [INFO] [stdout] found struct `SimpleTicker` [INFO] [stdout] = help: `SimpleTicker` implements `Ticker` so you could box the found value and coerce it to the trait object `Box`, you will have to change the expected type as well [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/scheduler.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | fn schedule(&mut self, ticker: ticker::Ticker); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0033, E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0033`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0033, E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0033`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sched` (bin "sched") due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `sched` (bin "sched" test) due to 5 previous errors [INFO] running `Command { std: "docker" "inspect" "3bb43f62a81e20a61b3e52bfb2e54db0e5041586618978b1d7d6f1e1b9e9fb12", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3bb43f62a81e20a61b3e52bfb2e54db0e5041586618978b1d7d6f1e1b9e9fb12", kill_on_drop: false }` [INFO] [stdout] 3bb43f62a81e20a61b3e52bfb2e54db0e5041586618978b1d7d6f1e1b9e9fb12