[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 try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhpbrewton%2Fregyrabit" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hpbrewton/regyrabit 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/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-5/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: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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] 865ff9513442d90a0f98535babe92acd87efc87a9d301dc29cd6486f4fd57fdb [INFO] running `Command { std: "docker" "start" "-a" "865ff9513442d90a0f98535babe92acd87efc87a9d301dc29cd6486f4fd57fdb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "865ff9513442d90a0f98535babe92acd87efc87a9d301dc29cd6486f4fd57fdb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "865ff9513442d90a0f98535babe92acd87efc87a9d301dc29cd6486f4fd57fdb", kill_on_drop: false }` [INFO] [stdout] 865ff9513442d90a0f98535babe92acd87efc87a9d301dc29cd6486f4fd57fdb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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] fb157c5bf9c8fe2d776f632704d0dbbe0aad9f170b7254a5ee416dece21db01a [INFO] running `Command { std: "docker" "start" "-a" "fb157c5bf9c8fe2d776f632704d0dbbe0aad9f170b7254a5ee416dece21db01a", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking sched v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/scheduler.rs:5:36 [INFO] [stdout] | [INFO] [stdout] 5 | fn schedule(&mut self, ticker: ticker::Ticker); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn ticker::Ticker` [INFO] [stdout] | [INFO] [stdout] = note: `--force-warn bare-trait-objects` implied by `--force-warn rust-2021-compatibility` [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/scheduler.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | queue: VecDeque> [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn ticker::Ticker` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/scheduler.rs:19:41 [INFO] [stdout] | [INFO] [stdout] 19 | fn schedule(&mut self, &mut ticker: ticker::Ticker) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn ticker::Ticker` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [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] 10 | | count: 5 [INFO] [stdout] 11 | | }) [INFO] [stdout] | |_________^ expected trait object `dyn Ticker`, found struct `SimpleTicker` [INFO] [stdout] | [INFO] [stdout] = note: expected trait object `(dyn Ticker + 'static)` [INFO] [stdout] found struct `SimpleTicker` [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] | ^^^^^^^^^^^---------------- [INFO] [stdout] | | | [INFO] [stdout] | | expected due to this [INFO] [stdout] | expected trait object `dyn Ticker`, found `&mut _` [INFO] [stdout] | help: did you mean `ticker`: `&(dyn Ticker + 'static)` [INFO] [stdout] | [INFO] [stdout] = note: expected trait object `(dyn Ticker + 'static)` [INFO] [stdout] found mutable reference `&mut _` [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: 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: &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: aborting due to 4 previous errors; 3 warnings emitted [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` due to 5 previous errors; 3 warnings emitted [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/scheduler.rs:5:36 [INFO] [stdout] | [INFO] [stdout] 5 | fn schedule(&mut self, ticker: ticker::Ticker); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn ticker::Ticker` [INFO] [stdout] | [INFO] [stdout] = note: `--force-warn bare-trait-objects` implied by `--force-warn rust-2021-compatibility` [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/scheduler.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | queue: VecDeque> [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn ticker::Ticker` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/scheduler.rs:19:41 [INFO] [stdout] | [INFO] [stdout] 19 | fn schedule(&mut self, &mut ticker: ticker::Ticker) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn ticker::Ticker` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [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] 10 | | count: 5 [INFO] [stdout] 11 | | }) [INFO] [stdout] | |_________^ expected trait object `dyn Ticker`, found struct `SimpleTicker` [INFO] [stdout] | [INFO] [stdout] = note: expected trait object `(dyn Ticker + 'static)` [INFO] [stdout] found struct `SimpleTicker` [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] | ^^^^^^^^^^^---------------- [INFO] [stdout] | | | [INFO] [stdout] | | expected due to this [INFO] [stdout] | expected trait object `dyn Ticker`, found `&mut _` [INFO] [stdout] | help: did you mean `ticker`: `&(dyn Ticker + 'static)` [INFO] [stdout] | [INFO] [stdout] = note: expected trait object `(dyn Ticker + 'static)` [INFO] [stdout] found mutable reference `&mut _` [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: 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: &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: aborting due to 4 previous errors; 3 warnings emitted [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: 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" "fb157c5bf9c8fe2d776f632704d0dbbe0aad9f170b7254a5ee416dece21db01a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb157c5bf9c8fe2d776f632704d0dbbe0aad9f170b7254a5ee416dece21db01a", kill_on_drop: false }` [INFO] [stdout] fb157c5bf9c8fe2d776f632704d0dbbe0aad9f170b7254a5ee416dece21db01a