[INFO] cloning repository https://github.com/zetwhite/mkko_discord_bot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zetwhite/mkko_discord_bot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzetwhite%2Fmkko_discord_bot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzetwhite%2Fmkko_discord_bot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ced6aab98dc0643ab1c3e1b283fc1990c46cfb4e [INFO] testing zetwhite/mkko_discord_bot against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzetwhite%2Fmkko_discord_bot" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/zetwhite/mkko_discord_bot [INFO] finished tweaking git repo https://github.com/zetwhite/mkko_discord_bot [INFO] tweaked toml for git repo https://github.com/zetwhite/mkko_discord_bot written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/zetwhite/mkko_discord_bot on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/zetwhite/mkko_discord_bot 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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9643791141d97f4d97aa30b6ed4f69cedd95f32585fa94ed7e6d3fc32c541856 [INFO] running `Command { std: "docker" "start" "-a" "9643791141d97f4d97aa30b6ed4f69cedd95f32585fa94ed7e6d3fc32c541856", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9643791141d97f4d97aa30b6ed4f69cedd95f32585fa94ed7e6d3fc32c541856", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9643791141d97f4d97aa30b6ed4f69cedd95f32585fa94ed7e6d3fc32c541856", kill_on_drop: false }` [INFO] [stdout] 9643791141d97f4d97aa30b6ed4f69cedd95f32585fa94ed7e6d3fc32c541856 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=forbid" "-e" "RUSTDOCFLAGS=--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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5c39a404faa1923a5aec410bcfba95c6797f1b5ca2099aa6fac7e3d68b596034 [INFO] running `Command { std: "docker" "start" "-a" "5c39a404faa1923a5aec410bcfba95c6797f1b5ca2099aa6fac7e3d68b596034", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.125 [INFO] [stderr] Compiling proc-macro2 v1.0.38 [INFO] [stderr] Compiling unicode-xid v0.2.3 [INFO] [stderr] Compiling syn v1.0.94 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling pin-project-lite v0.2.9 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling slab v0.4.6 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling mio v0.8.3 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling futures-io v0.3.21 [INFO] [stderr] Compiling http v0.2.7 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling serde_derive v1.0.137 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling httparse v1.7.1 [INFO] [stderr] Compiling tracing-core v0.1.26 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling indexmap v1.8.1 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling unicode-bidi v0.3.8 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling rustls v0.20.4 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling http-body v0.4.4 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling serde_json v1.0.81 [INFO] [stderr] Compiling cpufeatures v0.2.2 [INFO] [stderr] Compiling tower-service v0.3.1 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Compiling input_buffer v0.3.1 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling async-trait v0.1.53 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling miniz_oxide v0.5.1 [INFO] [stderr] Compiling webpki v0.22.0 [INFO] [stderr] Compiling webpki v0.21.4 [INFO] [stderr] Compiling sct v0.7.0 [INFO] [stderr] Compiling sct v0.6.1 [INFO] [stderr] Compiling rustls v0.19.1 [INFO] [stderr] Compiling webpki-roots v0.22.3 [INFO] [stderr] Compiling webpki-roots v0.20.0 [INFO] [stderr] Compiling tungstenite v0.11.1 [INFO] [stderr] Compiling rustls-pemfile v0.3.0 [INFO] [stderr] Compiling ipnet v2.5.0 [INFO] [stderr] Compiling serenity v0.10.10 [INFO] [stderr] Compiling flate2 v1.0.23 [INFO] [stderr] Compiling typemap_rev v0.1.5 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling tracing-attributes v0.1.21 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Compiling tokio v1.18.2 [INFO] [stderr] Compiling pin-project v1.0.10 [INFO] [stderr] Compiling tracing v0.1.34 [INFO] [stderr] Compiling futures-executor v0.3.21 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling tokio-util v0.7.1 [INFO] [stderr] Compiling tokio-rustls v0.23.4 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling tokio-rustls v0.22.0 [INFO] [stderr] Compiling async-tungstenite v0.11.0 [INFO] [stderr] Compiling h2 v0.3.13 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling hyper v0.14.18 [INFO] [stderr] Compiling hyper-rustls v0.23.0 [INFO] [stderr] Compiling reqwest v0.11.10 [INFO] [stderr] Compiling mogakko_discord_bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: environment variable `DISCORD_BOT_TOKEN` not defined at compile time [INFO] [stdout] --> src/discord_bot/config.rs:2:46 [INFO] [stdout] | [INFO] [stdout] 2 | pub const DISCORD_BOT_TOKEN : &'static str = std::env!("DISCORD_BOT_TOKEN"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `std::env::var("DISCORD_BOT_TOKEN")` to read the variable at run time [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: environment variable `DISCORD_GUILD_ID` not defined at compile time [INFO] [stdout] --> src/discord_bot/config.rs:3:37 [INFO] [stdout] | [INFO] [stdout] 3 | pub const GUILD_ID : &'static str = std::env!("DISCORD_GUILD_ID"); /*947467280827154432 */ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `std::env::var("DISCORD_GUILD_ID")` to read the variable at run time [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RecvError` [INFO] [stdout] --> src/main.rs:1:35 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::mpsc::{SyncSender, RecvError}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::vec` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::vec; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serenity::futures::channel::mpsc::Receiver` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use serenity::futures::channel::mpsc::Receiver; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/main.rs:18:21 [INFO] [stdout] | [INFO] [stdout] 18 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/main.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | use serde::{Serialize, Deserialize}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserializer` and `Serializer` [INFO] [stdout] --> src/connection/msg_struct.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Serialize, Deserialize, Serializer, Deserializer}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/discord_bot/bot.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 67 | connection::msg_struct::Message::SendAuthCode{ discord_id, code } => { [INFO] [stdout] | ----------------------------------------------------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 70 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/main.rs:32:33 [INFO] [stdout] | [INFO] [stdout] 32 | async fn cache_ready(&self, ctx : Context, _guilds: Vec){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `mogakko_discord_bot` (bin "mogakko_discord_bot") due to 2 previous errors; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "5c39a404faa1923a5aec410bcfba95c6797f1b5ca2099aa6fac7e3d68b596034", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5c39a404faa1923a5aec410bcfba95c6797f1b5ca2099aa6fac7e3d68b596034", kill_on_drop: false }` [INFO] [stdout] 5c39a404faa1923a5aec410bcfba95c6797f1b5ca2099aa6fac7e3d68b596034