[INFO] cloning repository https://github.com/Kyando2/BitterHarmony [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Kyando2/BitterHarmony" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKyando2%2FBitterHarmony", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKyando2%2FBitterHarmony'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3a17d663f03dfa069a4913743f0025e6c8cdc406 [INFO] checking Kyando2/BitterHarmony against try#6f8a6450478f69b8510c8976ab6c2a70b3b0e47c for pr-84920 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKyando2%2FBitterHarmony" "/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/Kyando2/BitterHarmony on toolchain 6f8a6450478f69b8510c8976ab6c2a70b3b0e47c [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+6f8a6450478f69b8510c8976ab6c2a70b3b0e47c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Kyando2/BitterHarmony [INFO] finished tweaking git repo https://github.com/Kyando2/BitterHarmony [INFO] tweaked toml for git repo https://github.com/Kyando2/BitterHarmony written to /workspace/builds/worker-11/source/Cargo.toml [INFO] crate git repo https://github.com/Kyando2/BitterHarmony already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+6f8a6450478f69b8510c8976ab6c2a70b3b0e47c" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded utf-8 v0.7.5 [INFO] [stderr] Downloaded schannel v0.1.19 [INFO] [stderr] Downloaded reqwest v0.11.2 [INFO] [stderr] Downloaded winreg v0.7.0 [INFO] [stderr] Downloaded miow v0.3.7 [INFO] [stderr] Downloaded h2 v0.3.2 [INFO] [stderr] Downloaded tokio-util v0.6.5 [INFO] [stderr] Downloaded tokio-macros v1.1.0 [INFO] [stderr] Downloaded try-lock v0.2.3 [INFO] [stderr] Downloaded hyper-tls v0.5.0 [INFO] [stderr] Downloaded tokio-native-tls v0.3.0 [INFO] [stderr] Downloaded socket2 v0.4.0 [INFO] [stderr] Downloaded httpdate v0.3.2 [INFO] [stderr] Downloaded ipnet v2.3.0 [INFO] [stderr] Downloaded tower-service v0.3.1 [INFO] [stderr] Downloaded wasm-bindgen-futures v0.4.23 [INFO] [stderr] Downloaded libc v0.2.93 [INFO] [stderr] Downloaded tungstenite v0.13.0 [INFO] [stderr] Downloaded core-foundation-sys v0.8.2 [INFO] [stderr] Downloaded rand_hc v0.3.0 [INFO] [stderr] Downloaded lock_api v0.4.3 [INFO] [stderr] Downloaded web-sys v0.3.50 [INFO] [stderr] Downloaded tinyvec v1.2.0 [INFO] [stderr] Downloaded js-sys v0.3.50 [INFO] [stderr] Downloaded unicode-bidi v0.3.5 [INFO] [stderr] Downloaded native-tls v0.2.7 [INFO] [stderr] Downloaded want v0.3.0 [INFO] [stderr] Downloaded foreign-types v0.3.2 [INFO] [stderr] Downloaded openssl-probe v0.1.2 [INFO] [stderr] Downloaded remove_dir_all v0.5.3 [INFO] [stderr] Downloaded tempfile v3.2.0 [INFO] [stderr] Downloaded rand_chacha v0.3.0 [INFO] [stderr] Downloaded getrandom v0.2.2 [INFO] [stderr] Downloaded rand_core v0.6.2 [INFO] [stderr] Downloaded rand v0.8.3 [INFO] [stderr] Downloaded http-body v0.4.1 [INFO] [stderr] Downloaded hyper v0.14.5 [INFO] [stderr] Downloaded input_buffer v0.4.0 [INFO] [stderr] Downloaded security-framework-sys v2.2.0 [INFO] [stderr] Downloaded wasi v0.10.0+wasi-snapshot-preview1 [INFO] [stderr] Downloaded ntapi v0.3.6 [INFO] [stderr] Downloaded mio v0.7.11 [INFO] [stderr] Downloaded core-foundation v0.9.1 [INFO] [stderr] Downloaded foreign-types-shared v0.1.1 [INFO] [stderr] Downloaded tokio v1.4.0 [INFO] [stderr] Downloaded openssl v0.10.33 [INFO] [stderr] Downloaded vcpkg v0.2.11 [INFO] [stderr] Downloaded openssl-sys v0.9.61 [INFO] [stderr] Downloaded security-framework v2.2.0 [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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+6f8a6450478f69b8510c8976ab6c2a70b3b0e47c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cee7bde82cff9d40b3e4f857f9ffb90f8c715bd9f09a92f32834c54a468393b6 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "cee7bde82cff9d40b3e4f857f9ffb90f8c715bd9f09a92f32834c54a468393b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cee7bde82cff9d40b3e4f857f9ffb90f8c715bd9f09a92f32834c54a468393b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cee7bde82cff9d40b3e4f857f9ffb90f8c715bd9f09a92f32834c54a468393b6", kill_on_drop: false }` [INFO] [stdout] cee7bde82cff9d40b3e4f857f9ffb90f8c715bd9f09a92f32834c54a468393b6 [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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+6f8a6450478f69b8510c8976ab6c2a70b3b0e47c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] b6655fdc85998c74daf868e05f173157865cce4dad59b4d47834e1701cbf3263 [INFO] running `Command { std: "docker" "start" "-a" "b6655fdc85998c74daf868e05f173157865cce4dad59b4d47834e1701cbf3263", kill_on_drop: false }` [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling proc-macro2 v1.0.26 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.68 [INFO] [stderr] Checking bytes v1.0.1 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Checking once_cell v1.7.2 [INFO] [stderr] Checking pin-project-lite v0.2.6 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Checking futures-core v0.3.13 [INFO] [stderr] Compiling native-tls v0.2.7 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling serde v1.0.125 [INFO] [stderr] Checking futures-io v0.3.13 [INFO] [stderr] Checking futures-task v0.3.13 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking futures-sink v0.3.13 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Compiling encoding_rs v0.8.28 [INFO] [stderr] Checking tower-service v0.3.1 [INFO] [stderr] Checking cpuid-bool v0.1.2 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Checking ipnet v2.3.0 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Checking lock_api v0.4.3 [INFO] [stderr] Checking unicode-bidi v0.3.5 [INFO] [stderr] Checking instant v0.1.9 [INFO] [stderr] Checking tracing-core v0.1.17 [INFO] [stderr] Checking futures-channel v0.3.13 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Checking log v0.4.14 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking futures-util v0.3.13 [INFO] [stderr] Checking http v0.2.3 [INFO] [stderr] Checking input_buffer v0.4.0 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling tokio v1.4.0 [INFO] [stderr] Compiling indexmap v1.6.2 [INFO] [stderr] Checking mio v0.7.11 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking idna v0.2.2 [INFO] [stderr] Checking rand_core v0.6.2 [INFO] [stderr] Checking tracing v0.1.25 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking rand_chacha v0.3.0 [INFO] [stderr] Compiling openssl-sys v0.9.61 [INFO] [stderr] Checking url v2.2.1 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking rand v0.8.3 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking sha-1 v0.9.4 [INFO] [stderr] Compiling openssl v0.10.33 [INFO] [stderr] Checking http-body v0.4.1 [INFO] [stderr] Checking serde_json v1.0.64 [INFO] [stderr] Checking serde_urlencoded v0.7.0 [INFO] [stderr] Compiling tokio-macros v1.1.0 [INFO] [stderr] Compiling pin-project-internal v1.0.6 [INFO] [stderr] Compiling thiserror-impl v1.0.24 [INFO] [stderr] Checking thiserror v1.0.24 [INFO] [stderr] Checking tungstenite v0.13.0 [INFO] [stderr] Checking pin-project v1.0.6 [INFO] [stderr] Checking tokio-util v0.6.5 [INFO] [stderr] Checking tokio-native-tls v0.3.0 [INFO] [stderr] Checking h2 v0.3.2 [INFO] [stderr] Checking hyper v0.14.5 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.2 [INFO] [stderr] Checking bitter_harmony v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected one of `!`, `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `,` [INFO] [stdout] --> src/client/handler.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | fn on_message(&Self, ctx: Context); [INFO] [stdout] | ^ expected one of 9 possible tokens [INFO] [stdout] | [INFO] [stdout] = note: anonymous parameters are removed in the 2018 edition (see RFC 1685) [INFO] [stdout] help: explicitly ignore the parameter name [INFO] [stdout] | [INFO] [stdout] 4 | fn on_message(_: &Self, ctx: Context); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `!`, `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `,` [INFO] [stdout] --> src/client/handler.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | fn on_command(&Self, ctx: Context); [INFO] [stdout] | ^ expected one of 9 possible tokens [INFO] [stdout] | [INFO] [stdout] = note: anonymous parameters are removed in the 2018 edition (see RFC 1685) [INFO] [stdout] help: explicitly ignore the parameter name [INFO] [stdout] | [INFO] [stdout] 5 | fn on_command(_: &Self, ctx: Context); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `!`, `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `,` [INFO] [stdout] --> src/client/handler.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | fn on_message(&Self, ctx: Context); [INFO] [stdout] | ^ expected one of 9 possible tokens [INFO] [stdout] | [INFO] [stdout] = note: anonymous parameters are removed in the 2018 edition (see RFC 1685) [INFO] [stdout] help: explicitly ignore the parameter name [INFO] [stdout] | [INFO] [stdout] 4 | fn on_message(_: &Self, ctx: Context); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `!`, `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `,` [INFO] [stdout] --> src/client/handler.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | fn on_command(&Self, ctx: Context); [INFO] [stdout] | ^ expected one of 9 possible tokens [INFO] [stdout] | [INFO] [stdout] = note: anonymous parameters are removed in the 2018 edition (see RFC 1685) [INFO] [stdout] help: explicitly ignore the parameter name [INFO] [stdout] | [INFO] [stdout] 5 | fn on_command(_: &Self, ctx: Context); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Message` [INFO] [stdout] --> src/gateway/runner.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 7 | use tungstenite::{connect, Message, WebSocket, client::AutoStream}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::BitterHandler` [INFO] [stdout] --> src/client/default.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::BitterHandler; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Message` [INFO] [stdout] --> src/gateway/runner.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 7 | use tungstenite::{connect, Message, WebSocket, client::AutoStream}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::BitterHandler` [INFO] [stdout] --> src/client/default.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::BitterHandler; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `BitterHandler` cannot be made into an object [INFO] [stdout] --> src/gateway/runner.rs:56:77 [INFO] [stdout] | [INFO] [stdout] 56 | ...ocket>>, handle: Arc>) -> Arc>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `BitterHandler` 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] --> src/client/handler.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait BitterHandler { [INFO] [stdout] | ------------- this trait cannot be made into an object... [INFO] [stdout] 4 | fn on_message(&Self, ctx: Context); [INFO] [stdout] | ^^^^^^^^^^ ...because associated function `on_message` has no `self` parameter [INFO] [stdout] 5 | fn on_command(&Self, ctx: Context); [INFO] [stdout] | ^^^^^^^^^^ ...because associated function `on_command` has no `self` parameter [INFO] [stdout] help: consider turning `on_message` into a method by giving it a `&self` argument [INFO] [stdout] | [INFO] [stdout] 4 | fn on_message(&self, &Self, ctx: Context); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: alternatively, consider constraining `on_message` so it does not apply to trait objects [INFO] [stdout] | [INFO] [stdout] 4 | fn on_message(&Self, ctx: Context) where Self: Sized; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider turning `on_command` into a method by giving it a `&self` argument [INFO] [stdout] | [INFO] [stdout] 5 | fn on_command(&self, &Self, ctx: Context); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: alternatively, consider constraining `on_command` so it does not apply to trait objects [INFO] [stdout] | [INFO] [stdout] 5 | fn on_command(&Self, ctx: Context) where Self: Sized; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `BitterHandler` cannot be made into an object [INFO] [stdout] --> src/gateway/runner.rs:87:40 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn connect(&mut self, handler: Arc>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `BitterHandler` 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] --> src/client/handler.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait BitterHandler { [INFO] [stdout] | ------------- this trait cannot be made into an object... [INFO] [stdout] 4 | fn on_message(&Self, ctx: Context); [INFO] [stdout] | ^^^^^^^^^^ ...because associated function `on_message` has no `self` parameter [INFO] [stdout] 5 | fn on_command(&Self, ctx: Context); [INFO] [stdout] | ^^^^^^^^^^ ...because associated function `on_command` has no `self` parameter [INFO] [stdout] help: consider turning `on_message` into a method by giving it a `&self` argument [INFO] [stdout] | [INFO] [stdout] 4 | fn on_message(&self, &Self, ctx: Context); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: alternatively, consider constraining `on_message` so it does not apply to trait objects [INFO] [stdout] | [INFO] [stdout] 4 | fn on_message(&Self, ctx: Context) where Self: Sized; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider turning `on_command` into a method by giving it a `&self` argument [INFO] [stdout] | [INFO] [stdout] 5 | fn on_command(&self, &Self, ctx: Context); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: alternatively, consider constraining `on_command` so it does not apply to trait objects [INFO] [stdout] | [INFO] [stdout] 5 | fn on_command(&Self, ctx: Context) where Self: Sized; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `BitterHandler` cannot be made into an object [INFO] [stdout] --> src/gateway/runner.rs:144:121 [INFO] [stdout] | [INFO] [stdout] 144 | ...cket>>, handler: Arc>) -> Worker { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `BitterHandler` 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] --> src/client/handler.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait BitterHandler { [INFO] [stdout] | ------------- this trait cannot be made into an object... [INFO] [stdout] 4 | fn on_message(&Self, ctx: Context); [INFO] [stdout] | ^^^^^^^^^^ ...because associated function `on_message` has no `self` parameter [INFO] [stdout] 5 | fn on_command(&Self, ctx: Context); [INFO] [stdout] | ^^^^^^^^^^ ...because associated function `on_command` has no `self` parameter [INFO] [stdout] help: consider turning `on_message` into a method by giving it a `&self` argument [INFO] [stdout] | [INFO] [stdout] 4 | fn on_message(&self, &Self, ctx: Context); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: alternatively, consider constraining `on_message` so it does not apply to trait objects [INFO] [stdout] | [INFO] [stdout] 4 | fn on_message(&Self, ctx: Context) where Self: Sized; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider turning `on_command` into a method by giving it a `&self` argument [INFO] [stdout] | [INFO] [stdout] 5 | fn on_command(&self, &Self, ctx: Context); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: alternatively, consider constraining `on_command` so it does not apply to trait objects [INFO] [stdout] | [INFO] [stdout] 5 | fn on_command(&Self, ctx: Context) where Self: Sized; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `BitterHandler` cannot be made into an object [INFO] [stdout] --> src/gateway/runner.rs:56:77 [INFO] [stdout] | [INFO] [stdout] 56 | ...ocket>>, handle: Arc>) -> Arc>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `BitterHandler` 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] --> src/client/handler.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait BitterHandler { [INFO] [stdout] | ------------- this trait cannot be made into an object... [INFO] [stdout] 4 | fn on_message(&Self, ctx: Context); [INFO] [stdout] | ^^^^^^^^^^ ...because associated function `on_message` has no `self` parameter [INFO] [stdout] 5 | fn on_command(&Self, ctx: Context); [INFO] [stdout] | ^^^^^^^^^^ ...because associated function `on_command` has no `self` parameter [INFO] [stdout] help: consider turning `on_message` into a method by giving it a `&self` argument [INFO] [stdout] | [INFO] [stdout] 4 | fn on_message(&self, &Self, ctx: Context); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: alternatively, consider constraining `on_message` so it does not apply to trait objects [INFO] [stdout] | [INFO] [stdout] 4 | fn on_message(&Self, ctx: Context) where Self: Sized; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider turning `on_command` into a method by giving it a `&self` argument [INFO] [stdout] | [INFO] [stdout] 5 | fn on_command(&self, &Self, ctx: Context); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: alternatively, consider constraining `on_command` so it does not apply to trait objects [INFO] [stdout] | [INFO] [stdout] 5 | fn on_command(&Self, ctx: Context) where Self: Sized; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `BitterHandler` cannot be made into an object [INFO] [stdout] --> src/gateway/runner.rs:87:40 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn connect(&mut self, handler: Arc>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `BitterHandler` 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] --> src/client/handler.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait BitterHandler { [INFO] [stdout] | ------------- this trait cannot be made into an object... [INFO] [stdout] 4 | fn on_message(&Self, ctx: Context); [INFO] [stdout] | ^^^^^^^^^^ ...because associated function `on_message` has no `self` parameter [INFO] [stdout] 5 | fn on_command(&Self, ctx: Context); [INFO] [stdout] | ^^^^^^^^^^ ...because associated function `on_command` has no `self` parameter [INFO] [stdout] help: consider turning `on_message` into a method by giving it a `&self` argument [INFO] [stdout] | [INFO] [stdout] 4 | fn on_message(&self, &Self, ctx: Context); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: alternatively, consider constraining `on_message` so it does not apply to trait objects [INFO] [stdout] | [INFO] [stdout] 4 | fn on_message(&Self, ctx: Context) where Self: Sized; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider turning `on_command` into a method by giving it a `&self` argument [INFO] [stdout] | [INFO] [stdout] 5 | fn on_command(&self, &Self, ctx: Context); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: alternatively, consider constraining `on_command` so it does not apply to trait objects [INFO] [stdout] | [INFO] [stdout] 5 | fn on_command(&Self, ctx: Context) where Self: Sized; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `BitterHandler` cannot be made into an object [INFO] [stdout] --> src/gateway/runner.rs:144:121 [INFO] [stdout] | [INFO] [stdout] 144 | ...cket>>, handler: Arc>) -> Worker { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `BitterHandler` 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] --> src/client/handler.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait BitterHandler { [INFO] [stdout] | ------------- this trait cannot be made into an object... [INFO] [stdout] 4 | fn on_message(&Self, ctx: Context); [INFO] [stdout] | ^^^^^^^^^^ ...because associated function `on_message` has no `self` parameter [INFO] [stdout] 5 | fn on_command(&Self, ctx: Context); [INFO] [stdout] | ^^^^^^^^^^ ...because associated function `on_command` has no `self` parameter [INFO] [stdout] help: consider turning `on_message` into a method by giving it a `&self` argument [INFO] [stdout] | [INFO] [stdout] 4 | fn on_message(&self, &Self, ctx: Context); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: alternatively, consider constraining `on_message` so it does not apply to trait objects [INFO] [stdout] | [INFO] [stdout] 4 | fn on_message(&Self, ctx: Context) where Self: Sized; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider turning `on_command` into a method by giving it a `&self` argument [INFO] [stdout] | [INFO] [stdout] 5 | fn on_command(&self, &Self, ctx: Context); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: alternatively, consider constraining `on_command` so it does not apply to trait objects [INFO] [stdout] | [INFO] [stdout] 5 | fn on_command(&Self, ctx: Context) where Self: Sized; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0038`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0038`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bitter_harmony` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "b6655fdc85998c74daf868e05f173157865cce4dad59b4d47834e1701cbf3263", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b6655fdc85998c74daf868e05f173157865cce4dad59b4d47834e1701cbf3263", kill_on_drop: false }` [INFO] [stdout] b6655fdc85998c74daf868e05f173157865cce4dad59b4d47834e1701cbf3263