[INFO] cloning repository https://github.com/dwerner/rust-dispatch [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dwerner/rust-dispatch" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdwerner%2Frust-dispatch", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdwerner%2Frust-dispatch'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ead26ca50ba5cff74d81b863c39c685a035b9916 [INFO] checking dwerner/rust-dispatch against master#5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdwerner%2Frust-dispatch" "/workspace/builds/worker-11/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dwerner/rust-dispatch on toolchain 5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dwerner/rust-dispatch [INFO] finished tweaking git repo https://github.com/dwerner/rust-dispatch [INFO] tweaked toml for git repo https://github.com/dwerner/rust-dispatch written to /workspace/builds/worker-11/source/Cargo.toml [INFO] crate git repo https://github.com/dwerner/rust-dispatch already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a8ff08e50a9a76176bd80e57efbe146e98f214470e8e99b4f41988cf2316e477 [INFO] running `Command { std: "docker" "start" "-a" "a8ff08e50a9a76176bd80e57efbe146e98f214470e8e99b4f41988cf2316e477", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a8ff08e50a9a76176bd80e57efbe146e98f214470e8e99b4f41988cf2316e477", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a8ff08e50a9a76176bd80e57efbe146e98f214470e8e99b4f41988cf2316e477", kill_on_drop: false }` [INFO] [stdout] a8ff08e50a9a76176bd80e57efbe146e98f214470e8e99b4f41988cf2316e477 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 272fcbb21da9f542467216c62f3709c2e48fc8ac7613d2f40ea4280fb98e78c5 [INFO] running `Command { std: "docker" "start" "-a" "272fcbb21da9f542467216c62f3709c2e48fc8ac7613d2f40ea4280fb98e78c5", kill_on_drop: false }` [INFO] [stderr] Checking dispatch v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:150:50 [INFO] [stdout] | [INFO] [stdout] 150 | fn mut_components(&mut self) -> &mut Vec>; [INFO] [stdout] | ^^^^^^^^^ help: use `dyn`: `dyn Component` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:153:38 [INFO] [stdout] | [INFO] [stdout] 153 | impl WithComponents for Player> { [INFO] [stdout] | ^^^^^^^^^ help: use `dyn`: `dyn Component` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:154:50 [INFO] [stdout] | [INFO] [stdout] 154 | fn mut_components(&mut self) -> &mut Vec> { [INFO] [stdout] | ^^^^^^^^^ help: use `dyn`: `dyn Component` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:159:37 [INFO] [stdout] | [INFO] [stdout] 159 | impl WithComponents for Enemy> { [INFO] [stdout] | ^^^^^^^^^ help: use `dyn`: `dyn Component` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:160:50 [INFO] [stdout] | [INFO] [stdout] 160 | fn mut_components(&mut self) -> &mut Vec> { [INFO] [stdout] | ^^^^^^^^^ help: use `dyn`: `dyn Component` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:171:47 [INFO] [stdout] | [INFO] [stdout] 171 | Box::new(Health{ hearts: 42 }) as Box [INFO] [stdout] | ^^^^^^^^^ help: use `dyn`: `dyn Component` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:175:37 [INFO] [stdout] | [INFO] [stdout] 175 | let player = Box::new(p) as Box; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn WithComponents` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:181:64 [INFO] [stdout] | [INFO] [stdout] 181 | Box::new(Pathing{ data: "fedcba".to_string() }) as Box, [INFO] [stdout] | ^^^^^^^^^ help: use `dyn`: `dyn Component` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:182:47 [INFO] [stdout] | [INFO] [stdout] 182 | Box::new(Health{ hearts: 77 }) as Box [INFO] [stdout] | ^^^^^^^^^ help: use `dyn`: `dyn Component` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:186:36 [INFO] [stdout] | [INFO] [stdout] 186 | let enemy = Box::new(e) as Box; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn WithComponents` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:194:51 [INFO] [stdout] | [INFO] [stdout] 194 | pub fn update_trait_components(entity: &mut Box) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn WithComponents` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:197:29 [INFO] [stdout] | [INFO] [stdout] 197 | let b = i as &mut Box; [INFO] [stdout] | ^^^^^^^^^ help: use `dyn`: `dyn Component` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:198:42 [INFO] [stdout] | [INFO] [stdout] 198 | if let actual_comp = b as &mut Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: use `dyn`: `dyn HealthComponent` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:201:42 [INFO] [stdout] | [INFO] [stdout] 201 | if let actual_comp = b as &mut Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn PathingComponent` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `dispatch` due to 3 previous errors; 14 warnings emitted [INFO] [stdout] error[E0605]: non-primitive cast: `&mut Box` as `&mut Box` [INFO] [stdout] --> src/lib.rs:198:28 [INFO] [stdout] | [INFO] [stdout] 198 | if let actual_comp = b as &mut Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0605]: non-primitive cast: `&mut Box` as `&mut Box` [INFO] [stdout] --> src/lib.rs:201:28 [INFO] [stdout] | [INFO] [stdout] 201 | if let actual_comp = b as &mut Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0605`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "272fcbb21da9f542467216c62f3709c2e48fc8ac7613d2f40ea4280fb98e78c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "272fcbb21da9f542467216c62f3709c2e48fc8ac7613d2f40ea4280fb98e78c5", kill_on_drop: false }` [INFO] [stdout] 272fcbb21da9f542467216c62f3709c2e48fc8ac7613d2f40ea4280fb98e78c5