[INFO] cloning repository https://github.com/j4qfrost/deadlast-server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/j4qfrost/deadlast-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fj4qfrost%2Fdeadlast-server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fj4qfrost%2Fdeadlast-server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d04077c7575ede02728b6ca76ee742b8104eb0e9 [INFO] checking j4qfrost/deadlast-server against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-4 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fj4qfrost%2Fdeadlast-server" "/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/j4qfrost/deadlast-server on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/j4qfrost/deadlast-server [INFO] finished tweaking git repo https://github.com/j4qfrost/deadlast-server [INFO] tweaked toml for git repo https://github.com/j4qfrost/deadlast-server written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/j4qfrost/deadlast-server 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded strum v0.19.2 [INFO] [stderr] Downloaded sha-1 v0.9.1 [INFO] [stderr] Downloaded tokio-tungstenite v0.11.0 [INFO] [stderr] Downloaded rmp v0.8.9 [INFO] [stderr] Downloaded strum_macros v0.19.2 [INFO] [stderr] Downloaded rmp-serde v0.14.4 [INFO] [stderr] Downloaded rmpv v0.4.5 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8cc76a59d06d63dddba11a1b40959ccc289ea2934f555295308b7087eadf113f [INFO] running `Command { std: "docker" "start" "-a" "8cc76a59d06d63dddba11a1b40959ccc289ea2934f555295308b7087eadf113f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8cc76a59d06d63dddba11a1b40959ccc289ea2934f555295308b7087eadf113f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8cc76a59d06d63dddba11a1b40959ccc289ea2934f555295308b7087eadf113f", kill_on_drop: false }` [INFO] [stdout] 8cc76a59d06d63dddba11a1b40959ccc289ea2934f555295308b7087eadf113f [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8c1e4c9a0105cca104eeed3d6364e3723b98f8ab89afcd596d127c13cd3e2790 [INFO] running `Command { std: "docker" "start" "-a" "8c1e4c9a0105cca104eeed3d6364e3723b98f8ab89afcd596d127c13cd3e2790", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.74 [INFO] [stderr] Compiling syn v1.0.38 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Checking ppv-lite86 v0.2.8 [INFO] [stderr] Checking bytes v0.5.6 [INFO] [stderr] Compiling pin-project-internal v0.4.23 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Checking tinyvec v0.3.3 [INFO] [stderr] Checking futures-core v0.3.5 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Checking once_cell v1.4.0 [INFO] [stderr] Checking cpuid-bool v0.1.2 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Checking pin-project-lite v0.1.7 [INFO] [stderr] Checking futures-sink v0.3.5 [INFO] [stderr] Checking utf-8 v0.7.5 [INFO] [stderr] Checking regex v1.3.9 [INFO] [stderr] Checking futures-channel v0.3.5 [INFO] [stderr] Checking futures-task v0.3.5 [INFO] [stderr] Checking strum v0.19.2 [INFO] [stderr] Checking unicode-normalization v0.1.13 [INFO] [stderr] Checking input_buffer v0.3.1 [INFO] [stderr] Checking http v0.2.1 [INFO] [stderr] Checking net2 v0.2.34 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking rmp v0.8.9 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking url v2.1.1 [INFO] [stderr] Checking rmpv v0.4.5 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking sha-1 v0.9.1 [INFO] [stderr] Checking tungstenite v0.11.1 [INFO] [stderr] Compiling serde_derive v1.0.115 [INFO] [stderr] Compiling tokio-macros v0.2.5 [INFO] [stderr] Compiling strum_macros v0.19.2 [INFO] [stderr] Checking tokio v0.2.22 [INFO] [stderr] Checking pin-project v0.4.23 [INFO] [stderr] Checking futures-util v0.3.5 [INFO] [stderr] Checking serde v1.0.115 [INFO] [stderr] Checking tokio-tungstenite v0.11.0 [INFO] [stderr] Checking dead_last_server v0.1.0 (/opt/rustwide/workdir/server) [INFO] [stderr] Checking rmp-serde v0.14.4 [INFO] [stderr] Checking serde_bytes v0.11.5 [INFO] [stderr] Checking game v0.1.0 (/opt/rustwide/workdir/game) [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> game/src/action.rs:1:50 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Copy, Clone, Default, Debug, PartialEq, Deserialize, Serialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use serde::Deserialize; [INFO] [stdout] | [INFO] [stdout] 1 + use serde_derive::Deserialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> game/src/action.rs:1:50 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Copy, Clone, Default, Debug, PartialEq, Deserialize, Serialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use serde::Deserialize; [INFO] [stdout] | [INFO] [stdout] 1 + use serde_derive::Deserialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> game/src/action.rs:1:63 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Copy, Clone, Default, Debug, PartialEq, Deserialize, Serialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use serde::Serialize; [INFO] [stdout] | [INFO] [stdout] 1 + use serde_derive::Serialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> game/src/action.rs:1:63 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Copy, Clone, Default, Debug, PartialEq, Deserialize, Serialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use serde::Serialize; [INFO] [stdout] | [INFO] [stdout] 1 + use serde_derive::Serialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `vec_remove_item` [INFO] [stdout] --> game/src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(vec_remove_item)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `vec_remove_item` [INFO] [stdout] --> game/src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(vec_remove_item)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0204]: the trait `Copy` cannot be implemented for this type [INFO] [stdout] --> game/src/action.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Copy, Clone, Default, Debug, PartialEq, Deserialize, Serialize)] [INFO] [stdout] | ^^^^ [INFO] [stdout] 2 | pub struct Action(S, String, pub T); [INFO] [stdout] | ------ this field does not implement `Copy` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0204]: the trait `Copy` cannot be implemented for this type [INFO] [stdout] --> game/src/action.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Copy, Clone, Default, Debug, PartialEq, Deserialize, Serialize)] [INFO] [stdout] | ^^^^ [INFO] [stdout] 2 | pub struct Action(S, String, pub T); [INFO] [stdout] | ------ this field does not implement `Copy` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `Slot` cannot be made into an object [INFO] [stdout] --> game/src/card_container.rs:44:64 [INFO] [stdout] | [INFO] [stdout] 44 | fn play(hand: &mut Hand, thing: T, slot: &mut Slot) { [INFO] [stdout] | ^^^^^^^ `Slot` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> game/src/card_container.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Slot { [INFO] [stdout] | ---- this trait cannot be made into an object... [INFO] [stdout] 6 | fn new() -> Self { [INFO] [stdout] | ^^^ ...because associated function `new` has no `self` parameter [INFO] [stdout] = help: the following types implement the trait, consider defining an enum where each variant holds one of these types, implementing `Slot` for this new enum and using it instead: [INFO] [stdout] card_container::ShowdownSlot [INFO] [stdout] card_container::VotingSlot [INFO] [stdout] help: consider turning `new` into a method by giving it a `&self` argument [INFO] [stdout] | [INFO] [stdout] 6 | fn new(&self) -> Self { [INFO] [stdout] | +++++ [INFO] [stdout] help: alternatively, consider constraining `new` so it does not apply to trait objects [INFO] [stdout] | [INFO] [stdout] 6 | fn new() -> Self where Self: Sized { [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `Slot` cannot be made into an object [INFO] [stdout] --> game/src/card_container.rs:60:54 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn play(&mut self, card: VotingCard, slot: &mut Slot) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ `Slot` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> game/src/card_container.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Slot { [INFO] [stdout] | ---- this trait cannot be made into an object... [INFO] [stdout] 6 | fn new() -> Self { [INFO] [stdout] | ^^^ ...because associated function `new` has no `self` parameter [INFO] [stdout] = help: the following types implement the trait, consider defining an enum where each variant holds one of these types, implementing `Slot` for this new enum and using it instead: [INFO] [stdout] card_container::ShowdownSlot [INFO] [stdout] card_container::VotingSlot [INFO] [stdout] help: consider turning `new` into a method by giving it a `&self` argument [INFO] [stdout] | [INFO] [stdout] 6 | fn new(&self) -> Self { [INFO] [stdout] | +++++ [INFO] [stdout] help: alternatively, consider constraining `new` so it does not apply to trait objects [INFO] [stdout] | [INFO] [stdout] 6 | fn new() -> Self where Self: Sized { [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `Slot` cannot be made into an object [INFO] [stdout] --> game/src/card_container.rs:73:61 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn play(&mut self, card: FinalShowdownCard, slot: &mut Slot) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `Slot` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> game/src/card_container.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Slot { [INFO] [stdout] | ---- this trait cannot be made into an object... [INFO] [stdout] 6 | fn new() -> Self { [INFO] [stdout] | ^^^ ...because associated function `new` has no `self` parameter [INFO] [stdout] = help: the following types implement the trait, consider defining an enum where each variant holds one of these types, implementing `Slot` for this new enum and using it instead: [INFO] [stdout] card_container::ShowdownSlot [INFO] [stdout] card_container::VotingSlot [INFO] [stdout] help: consider turning `new` into a method by giving it a `&self` argument [INFO] [stdout] | [INFO] [stdout] 6 | fn new(&self) -> Self { [INFO] [stdout] | +++++ [INFO] [stdout] help: alternatively, consider constraining `new` so it does not apply to trait objects [INFO] [stdout] | [INFO] [stdout] 6 | fn new() -> Self where Self: Sized { [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `Slot` cannot be made into an object [INFO] [stdout] --> game/src/card_container.rs:44:64 [INFO] [stdout] | [INFO] [stdout] 44 | fn play(hand: &mut Hand, thing: T, slot: &mut Slot) { [INFO] [stdout] | ^^^^^^^ `Slot` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> game/src/card_container.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Slot { [INFO] [stdout] | ---- this trait cannot be made into an object... [INFO] [stdout] 6 | fn new() -> Self { [INFO] [stdout] | ^^^ ...because associated function `new` has no `self` parameter [INFO] [stdout] = help: the following types implement the trait, consider defining an enum where each variant holds one of these types, implementing `Slot` for this new enum and using it instead: [INFO] [stdout] card_container::ShowdownSlot [INFO] [stdout] card_container::VotingSlot [INFO] [stdout] help: consider turning `new` into a method by giving it a `&self` argument [INFO] [stdout] | [INFO] [stdout] 6 | fn new(&self) -> Self { [INFO] [stdout] | +++++ [INFO] [stdout] help: alternatively, consider constraining `new` so it does not apply to trait objects [INFO] [stdout] | [INFO] [stdout] 6 | fn new() -> Self where Self: Sized { [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `Slot` cannot be made into an object [INFO] [stdout] --> game/src/card_container.rs:60:54 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn play(&mut self, card: VotingCard, slot: &mut Slot) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ `Slot` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> game/src/card_container.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Slot { [INFO] [stdout] | ---- this trait cannot be made into an object... [INFO] [stdout] 6 | fn new() -> Self { [INFO] [stdout] | ^^^ ...because associated function `new` has no `self` parameter [INFO] [stdout] = help: the following types implement the trait, consider defining an enum where each variant holds one of these types, implementing `Slot` for this new enum and using it instead: [INFO] [stdout] card_container::ShowdownSlot [INFO] [stdout] card_container::VotingSlot [INFO] [stdout] help: consider turning `new` into a method by giving it a `&self` argument [INFO] [stdout] | [INFO] [stdout] 6 | fn new(&self) -> Self { [INFO] [stdout] | +++++ [INFO] [stdout] help: alternatively, consider constraining `new` so it does not apply to trait objects [INFO] [stdout] | [INFO] [stdout] 6 | fn new() -> Self where Self: Sized { [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `Slot` cannot be made into an object [INFO] [stdout] --> game/src/card_container.rs:73:61 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn play(&mut self, card: FinalShowdownCard, slot: &mut Slot) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `Slot` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> game/src/card_container.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Slot { [INFO] [stdout] | ---- this trait cannot be made into an object... [INFO] [stdout] 6 | fn new() -> Self { [INFO] [stdout] | ^^^ ...because associated function `new` has no `self` parameter [INFO] [stdout] = help: the following types implement the trait, consider defining an enum where each variant holds one of these types, implementing `Slot` for this new enum and using it instead: [INFO] [stdout] card_container::ShowdownSlot [INFO] [stdout] card_container::VotingSlot [INFO] [stdout] help: consider turning `new` into a method by giving it a `&self` argument [INFO] [stdout] | [INFO] [stdout] 6 | fn new(&self) -> Self { [INFO] [stdout] | +++++ [INFO] [stdout] help: alternatively, consider constraining `new` so it does not apply to trait objects [INFO] [stdout] | [INFO] [stdout] 6 | fn new() -> Self where Self: Sized { [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, tuple struct or tuple variant, found self type `Self` [INFO] [stdout] --> game/src/card_container.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 7 | Self(None) [INFO] [stdout] | ^^^^ not a function, tuple struct or tuple variant [INFO] [stdout] | [INFO] [stdout] = note: can't use `Self` as a constructor, you must use the implemented struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `Self` cannot be known at compilation time [INFO] [stdout] --> game/src/card_container.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | fn new() -> Self { [INFO] [stdout] | ^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = note: the return type of a function must have a statically known size [INFO] [stdout] help: consider further restricting `Self` [INFO] [stdout] | [INFO] [stdout] 6 | fn new() -> Self where Self: Sized { [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, tuple struct or tuple variant, found self type `Self` [INFO] [stdout] --> game/src/card_container.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 7 | Self(None) [INFO] [stdout] | ^^^^ not a function, tuple struct or tuple variant [INFO] [stdout] | [INFO] [stdout] = note: can't use `Self` as a constructor, you must use the implemented struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `Self` cannot be known at compilation time [INFO] [stdout] --> game/src/card_container.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | fn new() -> Self { [INFO] [stdout] | ^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = note: the return type of a function must have a statically known size [INFO] [stdout] help: consider further restricting `Self` [INFO] [stdout] | [INFO] [stdout] 6 | fn new() -> Self where Self: Sized { [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `remove_item` found for struct `Vec` in the current scope [INFO] [stdout] --> game/src/card_container.rs:45:24 [INFO] [stdout] | [INFO] [stdout] 45 | let card = hand.cards.remove_item(&thing); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `remove` with a similar name [INFO] [stdout] | [INFO] [stdout] 45 | let card = hand.cards.remove(&thing); [INFO] [stdout] | ~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `Slot` cannot be made into an object [INFO] [stdout] --> game/src/card_container.rs:46:26 [INFO] [stdout] | [INFO] [stdout] 46 | if let Some(old_card) = slot.place_card(card) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ `Slot` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> game/src/card_container.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Slot { [INFO] [stdout] | ---- this trait cannot be made into an object... [INFO] [stdout] 6 | fn new() -> Self { [INFO] [stdout] | ^^^ ...because associated function `new` has no `self` parameter [INFO] [stdout] = help: the following types implement the trait, consider defining an enum where each variant holds one of these types, implementing `Slot` for this new enum and using it instead: [INFO] [stdout] card_container::ShowdownSlot [INFO] [stdout] card_container::VotingSlot [INFO] [stdout] help: consider turning `new` into a method by giving it a `&self` argument [INFO] [stdout] | [INFO] [stdout] 6 | fn new(&self) -> Self { [INFO] [stdout] | +++++ [INFO] [stdout] help: alternatively, consider constraining `new` so it does not apply to trait objects [INFO] [stdout] | [INFO] [stdout] 6 | fn new() -> Self where Self: Sized { [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `remove_item` found for struct `Vec` in the current scope [INFO] [stdout] --> game/src/card_container.rs:45:24 [INFO] [stdout] | [INFO] [stdout] 45 | let card = hand.cards.remove_item(&thing); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `remove` with a similar name [INFO] [stdout] | [INFO] [stdout] 45 | let card = hand.cards.remove(&thing); [INFO] [stdout] | ~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `Slot` cannot be made into an object [INFO] [stdout] --> game/src/card_container.rs:46:26 [INFO] [stdout] | [INFO] [stdout] 46 | if let Some(old_card) = slot.place_card(card) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ `Slot` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> game/src/card_container.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Slot { [INFO] [stdout] | ---- this trait cannot be made into an object... [INFO] [stdout] 6 | fn new() -> Self { [INFO] [stdout] | ^^^ ...because associated function `new` has no `self` parameter [INFO] [stdout] = help: the following types implement the trait, consider defining an enum where each variant holds one of these types, implementing `Slot` for this new enum and using it instead: [INFO] [stdout] card_container::ShowdownSlot [INFO] [stdout] card_container::VotingSlot [INFO] [stdout] help: consider turning `new` into a method by giving it a `&self` argument [INFO] [stdout] | [INFO] [stdout] 6 | fn new(&self) -> Self { [INFO] [stdout] | +++++ [INFO] [stdout] help: alternatively, consider constraining `new` so it does not apply to trait objects [INFO] [stdout] | [INFO] [stdout] 6 | fn new() -> Self where Self: Sized { [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `remove_item` found for struct `Vec>` in the current scope [INFO] [stdout] --> game/src/card_container.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | cards.remove_item(&Card::new(color)); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `remove` with a similar name [INFO] [stdout] | [INFO] [stdout] 54 | cards.remove(&Card::new(color)); [INFO] [stdout] | ~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `Slot` cannot be made into an object [INFO] [stdout] --> game/src/card_container.rs:61:34 [INFO] [stdout] | [INFO] [stdout] 61 | play::(self, card, slot); [INFO] [stdout] | ^^^^ `Slot` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> game/src/card_container.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Slot { [INFO] [stdout] | ---- this trait cannot be made into an object... [INFO] [stdout] 6 | fn new() -> Self { [INFO] [stdout] | ^^^ ...because associated function `new` has no `self` parameter [INFO] [stdout] = help: the following types implement the trait, consider defining an enum where each variant holds one of these types, implementing `Slot` for this new enum and using it instead: [INFO] [stdout] card_container::ShowdownSlot [INFO] [stdout] card_container::VotingSlot [INFO] [stdout] help: consider turning `new` into a method by giving it a `&self` argument [INFO] [stdout] | [INFO] [stdout] 6 | fn new(&self) -> Self { [INFO] [stdout] | +++++ [INFO] [stdout] help: alternatively, consider constraining `new` so it does not apply to trait objects [INFO] [stdout] | [INFO] [stdout] 6 | fn new() -> Self where Self: Sized { [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `Slot` cannot be made into an object [INFO] [stdout] --> game/src/card_container.rs:74:41 [INFO] [stdout] | [INFO] [stdout] 74 | play::(self, card, slot); [INFO] [stdout] | ^^^^ `Slot` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> game/src/card_container.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Slot { [INFO] [stdout] | ---- this trait cannot be made into an object... [INFO] [stdout] 6 | fn new() -> Self { [INFO] [stdout] | ^^^ ...because associated function `new` has no `self` parameter [INFO] [stdout] = help: the following types implement the trait, consider defining an enum where each variant holds one of these types, implementing `Slot` for this new enum and using it instead: [INFO] [stdout] card_container::ShowdownSlot [INFO] [stdout] card_container::VotingSlot [INFO] [stdout] help: consider turning `new` into a method by giving it a `&self` argument [INFO] [stdout] | [INFO] [stdout] 6 | fn new(&self) -> Self { [INFO] [stdout] | +++++ [INFO] [stdout] help: alternatively, consider constraining `new` so it does not apply to trait objects [INFO] [stdout] | [INFO] [stdout] 6 | fn new() -> Self where Self: Sized { [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0038, E0204, E0277, E0423, E0599, E0635. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0038`. [INFO] [stdout] [INFO] [stderr] error: could not compile `game` (lib) due to 15 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no method named `remove_item` found for struct `Vec>` in the current scope [INFO] [stdout] --> game/src/card_container.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | cards.remove_item(&Card::new(color)); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `remove` with a similar name [INFO] [stdout] | [INFO] [stdout] 54 | cards.remove(&Card::new(color)); [INFO] [stdout] | ~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `Slot` cannot be made into an object [INFO] [stdout] --> game/src/card_container.rs:61:34 [INFO] [stdout] | [INFO] [stdout] 61 | play::(self, card, slot); [INFO] [stdout] | ^^^^ `Slot` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> game/src/card_container.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Slot { [INFO] [stdout] | ---- this trait cannot be made into an object... [INFO] [stdout] 6 | fn new() -> Self { [INFO] [stdout] | ^^^ ...because associated function `new` has no `self` parameter [INFO] [stdout] = help: the following types implement the trait, consider defining an enum where each variant holds one of these types, implementing `Slot` for this new enum and using it instead: [INFO] [stdout] card_container::ShowdownSlot [INFO] [stdout] card_container::VotingSlot [INFO] [stdout] help: consider turning `new` into a method by giving it a `&self` argument [INFO] [stdout] | [INFO] [stdout] 6 | fn new(&self) -> Self { [INFO] [stdout] | +++++ [INFO] [stdout] help: alternatively, consider constraining `new` so it does not apply to trait objects [INFO] [stdout] | [INFO] [stdout] 6 | fn new() -> Self where Self: Sized { [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `Slot` cannot be made into an object [INFO] [stdout] --> game/src/card_container.rs:74:41 [INFO] [stdout] | [INFO] [stdout] 74 | play::(self, card, slot); [INFO] [stdout] | ^^^^ `Slot` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> game/src/card_container.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Slot { [INFO] [stdout] | ---- this trait cannot be made into an object... [INFO] [stdout] 6 | fn new() -> Self { [INFO] [stdout] | ^^^ ...because associated function `new` has no `self` parameter [INFO] [stdout] = help: the following types implement the trait, consider defining an enum where each variant holds one of these types, implementing `Slot` for this new enum and using it instead: [INFO] [stdout] card_container::ShowdownSlot [INFO] [stdout] card_container::VotingSlot [INFO] [stdout] help: consider turning `new` into a method by giving it a `&self` argument [INFO] [stdout] | [INFO] [stdout] 6 | fn new(&self) -> Self { [INFO] [stdout] | +++++ [INFO] [stdout] help: alternatively, consider constraining `new` so it does not apply to trait objects [INFO] [stdout] | [INFO] [stdout] 6 | fn new() -> Self where Self: Sized { [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0038, E0204, E0277, E0423, E0599, E0635. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0038`. [INFO] [stdout] [INFO] [stderr] error: could not compile `game` (lib test) due to 15 previous errors [INFO] running `Command { std: "docker" "inspect" "8c1e4c9a0105cca104eeed3d6364e3723b98f8ab89afcd596d127c13cd3e2790", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c1e4c9a0105cca104eeed3d6364e3723b98f8ab89afcd596d127c13cd3e2790", kill_on_drop: false }` [INFO] [stdout] 8c1e4c9a0105cca104eeed3d6364e3723b98f8ab89afcd596d127c13cd3e2790 [INFO] checking j4qfrost/deadlast-server against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-4 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fj4qfrost%2Fdeadlast-server" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/j4qfrost/deadlast-server on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/j4qfrost/deadlast-server [INFO] finished tweaking git repo https://github.com/j4qfrost/deadlast-server [INFO] tweaked toml for git repo https://github.com/j4qfrost/deadlast-server written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/j4qfrost/deadlast-server 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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] de593d8a69cc3636e3c7391f9082696a5301ca14512c69d63d622441b2602adc [INFO] running `Command { std: "docker" "start" "-a" "de593d8a69cc3636e3c7391f9082696a5301ca14512c69d63d622441b2602adc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "de593d8a69cc3636e3c7391f9082696a5301ca14512c69d63d622441b2602adc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de593d8a69cc3636e3c7391f9082696a5301ca14512c69d63d622441b2602adc", kill_on_drop: false }` [INFO] [stdout] de593d8a69cc3636e3c7391f9082696a5301ca14512c69d63d622441b2602adc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 143b4cd6ddc997ac7ca55521d38e67a6a1467ff938043dac62addad69f67d895 [INFO] running `Command { std: "docker" "start" "-a" "143b4cd6ddc997ac7ca55521d38e67a6a1467ff938043dac62addad69f67d895", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] no edition found in manifest, probably 2015, skipping [INFO] running `Command { std: "docker" "inspect" "143b4cd6ddc997ac7ca55521d38e67a6a1467ff938043dac62addad69f67d895", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "143b4cd6ddc997ac7ca55521d38e67a6a1467ff938043dac62addad69f67d895", kill_on_drop: false }` [INFO] [stdout] 143b4cd6ddc997ac7ca55521d38e67a6a1467ff938043dac62addad69f67d895