[INFO] updating cached repository https://github.com/reminder-bot/autoclear-bot-rs [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] [stderr] From https://github.com/reminder-bot/autoclear-bot-rs [INFO] [stderr] df23287..bec1e8a master -> master [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] bec1e8a529fe37cca3a8ff4c5a35badc29c89277 [INFO] testing reminder-bot/autoclear-bot-rs against 1.44.0 for beta-1.45-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Freminder-bot%2Fautoclear-bot-rs" "/workspace/builds/worker-4/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/reminder-bot/autoclear-bot-rs on toolchain 1.44.0 [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/reminder-bot/autoclear-bot-rs [INFO] removed path dependency serenity from git repo https://github.com/reminder-bot/autoclear-bot-rs [INFO] finished tweaking git repo https://github.com/reminder-bot/autoclear-bot-rs [INFO] tweaked toml for git repo https://github.com/reminder-bot/autoclear-bot-rs written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/reminder-bot/autoclear-bot-rs already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] warning: dependency (serenity) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: the lock file /workspace/builds/worker-4/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] warning: dependency (serenity) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.44.0" "build" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 62f0875091fd6dac6f5a450cb9b1e9954a332d4b30146044517595da94c3f5e9 [INFO] running `"docker" "start" "-a" "62f0875091fd6dac6f5a450cb9b1e9954a332d4b30146044517595da94c3f5e9"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] warning: dependency (serenity) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling serenity v0.8.6 [INFO] [stderr] Compiling uwl v0.6.0 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling syn v1.0.30 [INFO] [stderr] Compiling tokio v0.2.21 [INFO] [stderr] Compiling http v0.1.21 [INFO] [stderr] Compiling input_buffer v0.2.0 [INFO] [stderr] Compiling sqlformat v0.1.0 [INFO] [stderr] Compiling rustls v0.17.0 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling webpki-roots v0.19.0 [INFO] [stderr] Compiling webpki-roots v0.18.0 [INFO] [stderr] Compiling rustls v0.16.0 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling crossbeam-queue v0.2.2 [INFO] [stderr] Compiling bigdecimal v0.1.2 [INFO] [stderr] Compiling generic-array v0.12.3 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling sha-1 v0.8.2 [INFO] [stderr] Compiling sha2 v0.8.2 [INFO] [stderr] Compiling tungstenite v0.9.2 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling tokio-rustls v0.13.1 [INFO] [stderr] Compiling pin-project-internal v0.4.20 [INFO] [stderr] Compiling futures-macro v0.3.5 [INFO] [stderr] Compiling serde_derive v1.0.111 [INFO] [stderr] Compiling thiserror-impl v1.0.19 [INFO] [stderr] Compiling async-stream-impl v0.2.1 [INFO] [stderr] Compiling command_attr v0.2.0 [INFO] [stderr] Compiling async-stream v0.2.1 [INFO] [stderr] Compiling thiserror v1.0.19 [INFO] [stderr] Compiling async-native-tls v0.3.3 [INFO] [stderr] Compiling pin-project v0.4.20 [INFO] [stderr] Compiling futures-util v0.3.5 [INFO] [stderr] Compiling serde v1.0.111 [INFO] [stderr] Compiling h2 v0.2.5 [INFO] [stderr] Compiling futures-executor v0.3.5 [INFO] [stderr] Compiling sqlx-core v0.3.5 [INFO] [stderr] Compiling futures v0.3.5 [INFO] [stderr] Compiling hyper v0.13.6 [INFO] [stderr] Compiling sqlx-macros v0.3.5 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling serde_json v1.0.53 [INFO] [stderr] Compiling chrono v0.4.11 [INFO] [stderr] Compiling hyper-rustls v0.20.0 [INFO] [stderr] Compiling reqwest v0.10.6 [INFO] [stderr] Compiling sqlx v0.3.5 [INFO] [stderr] Compiling autoclear-bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error: expected `fn` [INFO] [stderr] --> src/main.rs:44:1 [INFO] [stderr] | [INFO] [stderr] 44 | async fn permission_check(ctx: &Context, msg: &Message) -> CheckResult { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] error: DATABASE_URL not set [INFO] [stderr] --> src/main.rs:76:9 [INFO] [stderr] | [INFO] [stderr] 76 | / sqlx::query!( [INFO] [stderr] 77 | | " [INFO] [stderr] 78 | | DELETE FROM deletes WHERE message IN (?); [INFO] [stderr] 79 | | ", [INFO] [stderr] 80 | | all_ids [INFO] [stderr] 81 | | ) [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: DATABASE_URL not set [INFO] [stderr] --> src/main.rs:114:27 [INFO] [stderr] | [INFO] [stderr] 114 | let res = sqlx::query_as!( [INFO] [stderr] | ___________________________^ [INFO] [stderr] 115 | | Row, [INFO] [stderr] 116 | | " [INFO] [stderr] 117 | | SELECT timeout, message [INFO] [stderr] ... | [INFO] [stderr] 123 | | channel_id.as_u64(), user_id [INFO] [stderr] 124 | | ) [INFO] [stderr] | |_________________^ [INFO] [stderr] | [INFO] [stderr] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: DATABASE_URL not set [INFO] [stderr] --> src/main.rs:133:21 [INFO] [stderr] | [INFO] [stderr] 133 | / sqlx::query!( [INFO] [stderr] 134 | | " [INFO] [stderr] 135 | | INSERT INTO deletes (channel, message, time, to_send) VALUES (?, ?, ADDDATE(NOW(), INTERVAL ? SECOND), ?); [INFO] [stderr] 136 | | ", [INFO] [stderr] 137 | | channel_id.as_u64(), msg.as_u64(), row.timeout, text [INFO] [stderr] 138 | | ) [INFO] [stderr] | |_____________________^ [INFO] [stderr] | [INFO] [stderr] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: expected `fn` [INFO] [stderr] --> src/main.rs:190:1 [INFO] [stderr] | [INFO] [stderr] 190 | async fn autoclear(context: &Context, message: &Message, mut args: Args) -> CommandResult { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] error: expected `fn` [INFO] [stderr] --> src/main.rs:264:1 [INFO] [stderr] | [INFO] [stderr] 264 | async fn cancel_clear(context: &Context, message: &Message) -> CommandResult { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] error: expected `fn` [INFO] [stderr] --> src/main.rs:303:1 [INFO] [stderr] | [INFO] [stderr] 303 | async fn rules(context: &Context, message: &Message) -> CommandResult { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] error: expected `fn` [INFO] [stderr] --> src/main.rs:357:1 [INFO] [stderr] | [INFO] [stderr] 357 | async fn help(context: &Context, message: &Message) -> CommandResult { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] error: expected `fn` [INFO] [stderr] --> src/main.rs:381:1 [INFO] [stderr] | [INFO] [stderr] 381 | async fn info(context: &Context, message: &Message) -> CommandResult { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0706]: functions in traits cannot be declared `async` [INFO] [stderr] --> src/main.rs:69:5 [INFO] [stderr] | [INFO] [stderr] 69 | async fn channel_pins_update(&self, context: Context, pin: ChannelPinsUpdateEvent) { [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | _____`async` because of this [INFO] [stderr] | | [INFO] [stderr] 70 | | [INFO] [stderr] 71 | | let pool = context.data.read().await [INFO] [stderr] 72 | | .get::().cloned().expect("Could not get SQLPool from data"); [INFO] [stderr] ... | [INFO] [stderr] 83 | | .await.unwrap(); [INFO] [stderr] 84 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: `async` trait functions are not currently supported [INFO] [stderr] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stderr] [INFO] [stderr] error[E0706]: functions in traits cannot be declared `async` [INFO] [stderr] --> src/main.rs:86:5 [INFO] [stderr] | [INFO] [stderr] 86 | async fn message(&self, context: Context, message: Message) { [INFO] [stderr] | ^---- [INFO] [stderr] | | [INFO] [stderr] | _____`async` because of this [INFO] [stderr] | | [INFO] [stderr] 87 | | [INFO] [stderr] 88 | | struct Row { [INFO] [stderr] 89 | | pub message: Option, [INFO] [stderr] ... | [INFO] [stderr] 143 | | } [INFO] [stderr] 144 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: `async` trait functions are not currently supported [INFO] [stderr] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `serenity::client::bridge::gateway::GatewayIntents` [INFO] [stderr] --> src/main.rs:3:9 [INFO] [stderr] | [INFO] [stderr] 3 | bridge::gateway::GatewayIntents, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `GatewayIntents` in `client::bridge::gateway` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `async_trait` in `serenity` [INFO] [stderr] --> src/main.rs:67:13 [INFO] [stderr] | [INFO] [stderr] 67 | #[serenity::async_trait] [INFO] [stderr] | ^^^^^^^^^^^ could not find `async_trait` in `serenity` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stderr] --> src/main.rs:147:10 [INFO] [stderr] | [INFO] [stderr] 147 | #[tokio::main] [INFO] [stderr] | ^^^^ could not find `main` in `tokio` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `PERMISSION_CHECK_CHECK` in this scope [INFO] [stderr] --> src/main.rs:37:1 [INFO] [stderr] | [INFO] [stderr] 37 | #[group] [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `HELP_COMMAND` in this scope [INFO] [stderr] --> src/main.rs:37:1 [INFO] [stderr] | [INFO] [stderr] 37 | #[group] [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `INFO_COMMAND` in this scope [INFO] [stderr] --> src/main.rs:37:1 [INFO] [stderr] | [INFO] [stderr] 37 | #[group] [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `AUTOCLEAR_COMMAND` in this scope [INFO] [stderr] --> src/main.rs:37:1 [INFO] [stderr] | [INFO] [stderr] 37 | #[group] [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `CANCEL_CLEAR_COMMAND` in this scope [INFO] [stderr] --> src/main.rs:37:1 [INFO] [stderr] | [INFO] [stderr] 37 | #[group] [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `RULES_COMMAND` in this scope [INFO] [stderr] --> src/main.rs:37:1 [INFO] [stderr] | [INFO] [stderr] 37 | #[group] [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Args`, `CheckResult`, `CommandResult`, `Reason` [INFO] [stderr] --> src/main.rs:7:9 [INFO] [stderr] | [INFO] [stderr] 7 | Args, CommandResult, CheckResult, StandardFramework, Reason, [INFO] [stderr] | ^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0053]: method `channel_pins_update` has an incompatible type for trait [INFO] [stderr] --> src/main.rs:69:5 [INFO] [stderr] | [INFO] [stderr] 69 | async fn channel_pins_update(&self, context: Context, pin: ChannelPinsUpdateEvent) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - the `Output` of this `async fn`'s found opaque type [INFO] [stderr] | | [INFO] [stderr] | expected `()`, found opaque type [INFO] [stderr] | [INFO] [stderr] = note: expected fn pointer `fn(&Handler, serenity::client::context::Context, serenity::model::event::ChannelPinsUpdateEvent)` [INFO] [stderr] found fn pointer `fn(&Handler, serenity::client::context::Context, serenity::model::event::ChannelPinsUpdateEvent) -> impl std::future::Future` [INFO] [stderr] [INFO] [stderr] error[E0053]: method `message` has an incompatible type for trait [INFO] [stderr] --> src/main.rs:86:5 [INFO] [stderr] | [INFO] [stderr] 86 | async fn message(&self, context: Context, message: Message) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - the `Output` of this `async fn`'s found opaque type [INFO] [stderr] | | [INFO] [stderr] | expected `()`, found opaque type [INFO] [stderr] | [INFO] [stderr] = note: expected fn pointer `fn(&Handler, serenity::client::context::Context, serenity::model::channel::message::Message)` [INFO] [stderr] found fn pointer `fn(&Handler, serenity::client::context::Context, serenity::model::channel::message::Message) -> impl std::future::Future` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `lock_api::rwlock::RwLockReadGuard<'_, parking_lot::raw_rwlock::RawRwLock, typemap::TypeMap<(dyn unsafe_any::UnsafeAny + std::marker::Send + std::marker::Sync + 'static)>>: std::future::Future` is not satisfied [INFO] [stderr] --> src/main.rs:71:20 [INFO] [stderr] | [INFO] [stderr] 71 | let pool = context.data.read().await [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::future::Future` is not implemented for `lock_api::rwlock::RwLockReadGuard<'_, parking_lot::raw_rwlock::RawRwLock, typemap::TypeMap<(dyn unsafe_any::UnsafeAny + std::marker::Send + std::marker::Sync + 'static)>>` [INFO] [stderr] | [INFO] [stderr] = note: required by `std::future::Future::poll` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `std::result::Result, serenity::error::Error>: std::future::Future` is not satisfied [INFO] [stderr] --> src/main.rs:74:23 [INFO] [stderr] | [INFO] [stderr] 74 | let all_ids = pin.channel_id.pins(&context).await.unwrap().iter().map(|pin| pin.id.as_u64().to_string()).collect::>().join(","); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::future::Future` is not implemented for `std::result::Result, serenity::error::Error>` [INFO] [stderr] | [INFO] [stderr] = note: required by `std::future::Future::poll` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `std::result::Result: std::future::Future` is not satisfied [INFO] [stderr] --> src/main.rs:95:52 [INFO] [stderr] | [INFO] [stderr] 95 | if let Ok(Channel::Guild(guild_channel)) = channel_id.to_channel(&context).await { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::future::Future` is not implemented for `std::result::Result` [INFO] [stderr] | [INFO] [stderr] = note: required by `std::future::Future::poll` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `current_user` found for struct `serenity::cache::CacheRwLock` in the current scope [INFO] [stderr] --> src/main.rs:97:49 [INFO] [stderr] | [INFO] [stderr] 97 | let current_user_id = context.cache.current_user().await.id; [INFO] [stderr] | ^^^^^^^^^^^^ method not found in `serenity::cache::CacheRwLock` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `permissions_for_user` found for struct `std::sync::Arc>` in the current scope [INFO] [stderr] --> src/main.rs:99:45 [INFO] [stderr] | [INFO] [stderr] 99 | let permissions = guild_channel.permissions_for_user(&context, current_user_id).await.unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ method not found in `std::sync::Arc>` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `std::result::Result: std::future::Future` is not satisfied [INFO] [stderr] --> src/main.rs:104:32 [INFO] [stderr] | [INFO] [stderr] 104 | Some(w) => w.to_webhook(&context).await.unwrap().user.unwrap(), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::future::Future` is not implemented for `std::result::Result` [INFO] [stderr] | [INFO] [stderr] = note: required by `std::future::Future::poll` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `lock_api::rwlock::RwLockReadGuard<'_, parking_lot::raw_rwlock::RawRwLock, typemap::TypeMap<(dyn unsafe_any::UnsafeAny + std::marker::Send + std::marker::Sync + 'static)>>: std::future::Future` is not satisfied [INFO] [stderr] --> src/main.rs:111:28 [INFO] [stderr] | [INFO] [stderr] 111 | let pool = context.data.read().await [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::future::Future` is not implemented for `lock_api::rwlock::RwLockReadGuard<'_, parking_lot::raw_rwlock::RawRwLock, typemap::TypeMap<(dyn unsafe_any::UnsafeAny + std::marker::Send + std::marker::Sync + 'static)>>` [INFO] [stderr] | [INFO] [stderr] = note: required by `std::future::Future::poll` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `std::result::Result: std::future::Future` is not satisfied [INFO] [stderr] --> src/main.rs:158:19 [INFO] [stderr] | [INFO] [stderr] 158 | user_id = http_client.get_current_user().await.ok().map(|current_user| current_user.id); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::future::Future` is not implemented for `std::result::Result` [INFO] [stderr] | [INFO] [stderr] = note: required by `std::future::Future::poll` [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stderr] --> src/main.rs:171:22 [INFO] [stderr] | [INFO] [stderr] 171 | let mut client = Client::new(&env::var("DISCORD_TOKEN").expect("Missing DISCORD_TOKEN from environment")) [INFO] [stderr] | ^^^^^^^^^^^ --------------------------------------------------------------------------- supplied 1 argument [INFO] [stderr] | | [INFO] [stderr] | expected 2 arguments [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `intents` found for enum `std::result::Result` in the current scope [INFO] [stderr] --> src/main.rs:172:10 [INFO] [stderr] | [INFO] [stderr] 172 | .intents(GatewayIntents::GUILD_MESSAGES | GatewayIntents::GUILDS) [INFO] [stderr] | ^^^^^^^ method not found in `std::result::Result` [INFO] [stderr] [INFO] [stderr] error[E0277]: `main` has invalid return type `impl std::future::Future` [INFO] [stderr] --> src/main.rs:148:20 [INFO] [stderr] | [INFO] [stderr] 148 | async fn main() -> Result<(), Box> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` can only return types that implement `std::process::Termination` [INFO] [stderr] | [INFO] [stderr] = help: consider using `()`, or a `Result` [INFO] [stderr] [INFO] [stderr] error[E0752]: `main` function is not allowed to be `async` [INFO] [stderr] --> src/main.rs:148:1 [INFO] [stderr] | [INFO] [stderr] 148 | async fn main() -> Result<(), Box> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stderr] [INFO] [stderr] error: aborting due to 34 previous errors; 1 warning emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0053, E0061, E0277, E0425, E0432, E0433, E0599, E0706, E0752. [INFO] [stderr] For more information about an error, try `rustc --explain E0053`. [INFO] [stderr] error: could not compile `autoclear-bot`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "62f0875091fd6dac6f5a450cb9b1e9954a332d4b30146044517595da94c3f5e9"` [INFO] running `"docker" "rm" "-f" "62f0875091fd6dac6f5a450cb9b1e9954a332d4b30146044517595da94c3f5e9"` [INFO] [stdout] 62f0875091fd6dac6f5a450cb9b1e9954a332d4b30146044517595da94c3f5e9