[INFO] cloning repository https://github.com/justincremer/music-bot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/justincremer/music-bot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjustincremer%2Fmusic-bot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjustincremer%2Fmusic-bot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d3ca3e4d587ea8daed824f44ecb92ecaaf450fa6 [INFO] testing justincremer/music-bot against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjustincremer%2Fmusic-bot" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/justincremer/music-bot on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/justincremer/music-bot [INFO] finished tweaking git repo https://github.com/justincremer/music-bot [INFO] tweaked toml for git repo https://github.com/justincremer/music-bot written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/justincremer/music-bot already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dfb0c2f86965c3d747d07aed202aecb81423f24f394dc605976dec34fd9a4583 [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" "dfb0c2f86965c3d747d07aed202aecb81423f24f394dc605976dec34fd9a4583", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dfb0c2f86965c3d747d07aed202aecb81423f24f394dc605976dec34fd9a4583", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dfb0c2f86965c3d747d07aed202aecb81423f24f394dc605976dec34fd9a4583", kill_on_drop: false }` [INFO] [stdout] dfb0c2f86965c3d747d07aed202aecb81423f24f394dc605976dec34fd9a4583 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--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] 78a25454702ec8a362196dd617c4fa0d53840f06885ecaa3037125643e660126 [INFO] running `Command { std: "docker" "start" "-a" "78a25454702ec8a362196dd617c4fa0d53840f06885ecaa3037125643e660126", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.97 [INFO] [stderr] Compiling cc v1.0.68 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling signature v1.3.1 [INFO] [stderr] Compiling base64-rs v0.1.1 [INFO] [stderr] Compiling tinyvec v1.2.0 [INFO] [stderr] Compiling opus-sys v0.2.1 [INFO] [stderr] Compiling base64 v0.9.3 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling ed25519 v1.1.1 [INFO] [stderr] Compiling mime v0.2.6 [INFO] [stderr] Compiling openssl-sys v0.9.65 [INFO] [stderr] Compiling libsodium-sys v0.2.7 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling net2 v0.2.37 [INFO] [stderr] Compiling flate2 v1.0.20 [INFO] [stderr] Compiling opus v0.2.1 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling openssl v0.10.35 [INFO] [stderr] Compiling native-tls v0.2.7 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling rand v0.3.23 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling tempfile v3.2.0 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling multipart v0.17.1 [INFO] [stderr] Compiling hyper v0.10.16 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling hyper-native-tls v0.3.0 [INFO] [stderr] Compiling websocket v0.18.0 (https://github.com/ArtemGr/rust-websocket?branch=hyper-bump#b5965662) [INFO] [stderr] Compiling sodiumoxide v0.2.7 [INFO] [stderr] Compiling discord v0.9.0 (https://github.com/SpaceManiac/discord-rs#73a5fa60) [INFO] [stderr] Compiling music-bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0423]: expected function, found built-in attribute `warn` [INFO] [stdout] --> src/main.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | warn(self.discord.send_message( [INFO] [stdout] | ^^^^ not a function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found built-in attribute `warn` [INFO] [stdout] --> src/main.rs:70:21 [INFO] [stdout] | [INFO] [stdout] 70 | warn(self.discord.send_message( [INFO] [stdout] | ^^^^ not a function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found built-in attribute `warn` [INFO] [stdout] --> src/main.rs:100:13 [INFO] [stdout] | [INFO] [stdout] 100 | warn(self.discord.send_message(channel_id, &output, "", false)); [INFO] [stdout] | ^^^^ not a function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `channel_id` in this scope [INFO] [stdout] --> src/main.rs:100:44 [INFO] [stdout] | [INFO] [stdout] 100 | warn(self.discord.send_message(channel_id, &output, "", false)); [INFO] [stdout] | ^^^^^^^^^^ help: a tuple struct with a similar name exists: `ChannelId` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/git/checkouts/discord-rs-e20ed8881d23c413/73a5fa6/src/model.rs:129:1 [INFO] [stdout] | [INFO] [stdout] 129 | / id! { [INFO] [stdout] 130 | | /// Bots are identified sometimes by their application ID [INFO] [stdout] 131 | | ApplicationId; [INFO] [stdout] 132 | | /// An identifier for a User [INFO] [stdout] ... | [INFO] [stdout] 143 | | EmojiId; [INFO] [stdout] 144 | | } [INFO] [stdout] | |_- similarly named tuple struct `ChannelId` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Event` [INFO] [stdout] --> src/main.rs:6:33 [INFO] [stdout] | [INFO] [stdout] 6 | use discord::model::{ChannelId, Event, ServerId, UserId}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:36:20 [INFO] [stdout] | [INFO] [stdout] 36 | cache: cache, [INFO] [stdout] | ^^^^^- help: try using a conversion method: `.to_string()` [INFO] [stdout] | | [INFO] [stdout] | expected struct `std::string::String`, found `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 23 | fn login(token: String, cache: &str) -> &Self { [INFO] [stdout] | ----- expected `&Session` because of return type [INFO] [stdout] ... [INFO] [stdout] 32 | / Session { [INFO] [stdout] 33 | | discord: discord, [INFO] [stdout] 34 | | connection: connection, [INFO] [stdout] 35 | | state: state, [INFO] [stdout] 36 | | cache: cache, [INFO] [stdout] 37 | | } [INFO] [stdout] | |_________^ expected `&Session`, found struct `Session` [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 32 ~ &Session { [INFO] [stdout] 33 + discord: discord, [INFO] [stdout] 34 + connection: connection, [INFO] [stdout] 35 + state: state, [INFO] [stdout] 36 + cache: cache, [INFO] [stdout] 37 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:88:29 [INFO] [stdout] | [INFO] [stdout] 80 | / match discord::voice::open_ffmpeg_stream( [INFO] [stdout] 81 | | video_meta["_filename"].as_str().unwrap(), [INFO] [stdout] 82 | | ) { [INFO] [stdout] 83 | | Ok(stream) => { [INFO] [stdout] ... | [INFO] [stdout] 88 | | String::new() [INFO] [stdout] | | ^^^^^^^^^^^^^ expected `()`, found struct `std::string::String` [INFO] [stdout] 89 | | } [INFO] [stdout] 90 | | Err(error) => format!("Error: {}", error), [INFO] [stdout] 91 | | } [INFO] [stdout] | |_____________________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 88 | String::new(); [INFO] [stdout] | + [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 91 | }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:90:39 [INFO] [stdout] | [INFO] [stdout] 80 | / match discord::voice::open_ffmpeg_stream( [INFO] [stdout] 81 | | video_meta["_filename"].as_str().unwrap(), [INFO] [stdout] 82 | | ) { [INFO] [stdout] 83 | | Ok(stream) => { [INFO] [stdout] ... | [INFO] [stdout] 90 | | Err(error) => format!("Error: {}", error), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found struct `std::string::String` [INFO] [stdout] 91 | | } [INFO] [stdout] | |_____________________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:93:21 [INFO] [stdout] | [INFO] [stdout] 67 | / if output.status.success() { [INFO] [stdout] 68 | | let video_meta: Value = serde_json::from_slice(&output.stdout) [INFO] [stdout] 69 | | .expect("Failed to parse youtube-dl output"); [INFO] [stdout] 70 | | warn(self.discord.send_message( [INFO] [stdout] ... | [INFO] [stdout] 93 | | format!("Error: {}", String::from_utf8_lossy(&output.stderr)) [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found struct `std::string::String` [INFO] [stdout] 94 | | } [INFO] [stdout] | |_________________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0423, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `music-bot` due to 10 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "78a25454702ec8a362196dd617c4fa0d53840f06885ecaa3037125643e660126", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "78a25454702ec8a362196dd617c4fa0d53840f06885ecaa3037125643e660126", kill_on_drop: false }` [INFO] [stdout] 78a25454702ec8a362196dd617c4fa0d53840f06885ecaa3037125643e660126