[INFO] cloning repository https://github.com/Ohdmire/osu-ircbot-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Ohdmire/osu-ircbot-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOhdmire%2Fosu-ircbot-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOhdmire%2Fosu-ircbot-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0aab49394407fbf591b95cf5d14d36ab8fa9c9ed [INFO] building Ohdmire/osu-ircbot-rust against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOhdmire%2Fosu-ircbot-rust" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Ohdmire/osu-ircbot-rust [INFO] finished tweaking git repo https://github.com/Ohdmire/osu-ircbot-rust [INFO] tweaked toml for git repo https://github.com/Ohdmire/osu-ircbot-rust written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Ohdmire/osu-ircbot-rust on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Ohdmire/osu-ircbot-rust 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded irc v1.1.0 [INFO] [stderr] Downloaded rosu-mods v0.2.1 [INFO] [stderr] Downloaded schannel v0.1.26 [INFO] [stderr] Downloaded irc-proto v1.1.0 [INFO] [stderr] Downloaded h2 v0.4.11 [INFO] [stderr] Downloaded rusqlite v0.37.0 [INFO] [stderr] Downloaded rustls v0.23.29 [INFO] [stderr] Downloaded rosu-map v0.2.1 [INFO] [stderr] Downloaded rosu-pp v2.0.0 [INFO] [stderr] Downloaded libsqlite3-sys v0.35.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ae088908d34b16ea434ed240f49588cd56f3ddbdcdd2c88aed7151414cf994dd [INFO] running `Command { std: "docker" "start" "-a" "ae088908d34b16ea434ed240f49588cd56f3ddbdcdd2c88aed7151414cf994dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ae088908d34b16ea434ed240f49588cd56f3ddbdcdd2c88aed7151414cf994dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ae088908d34b16ea434ed240f49588cd56f3ddbdcdd2c88aed7151414cf994dd", kill_on_drop: false }` [INFO] [stdout] ae088908d34b16ea434ed240f49588cd56f3ddbdcdd2c88aed7151414cf994dd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d41c59ee5f97d018564af1489740fc3b801f3f24d2816bb6d1af1760e6ca4f02 [INFO] running `Command { std: "docker" "start" "-a" "d41c59ee5f97d018564af1489740fc3b801f3f24d2816bb6d1af1760e6ca4f02", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.87 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling bytes v1.7.2 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling cc v1.2.29 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling unicode-bidi v0.3.17 [INFO] [stderr] Compiling ipnet v2.10.1 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling hashbrown v0.15.0 [INFO] [stderr] Compiling regex-automata v0.4.8 [INFO] [stderr] Compiling rosu-mods v0.2.1 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling rosu-map v0.2.1 [INFO] [stderr] Compiling fallible-streaming-iterator v0.1.9 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling fallible-iterator v0.3.0 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling libsqlite3-sys v0.35.0 [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling rosu-pp v2.0.0 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling pin-project-internal v1.1.6 [INFO] [stderr] Compiling tokio v1.46.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling pin-project v1.1.6 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling tokio-util v0.7.12 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-stream v0.1.16 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling h2 v0.4.11 [INFO] [stderr] Compiling irc-proto v1.1.0 [INFO] [stderr] Compiling rusqlite v0.37.0 [INFO] [stderr] Compiling toml v0.7.8 [INFO] [stderr] Compiling irc v1.1.0 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.15 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.22 [INFO] [stderr] Compiling irc_bot v1.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::charts` [INFO] [stdout] --> src/bot.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::charts; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bot.rs:278:61 [INFO] [stdout] | [INFO] [stdout] 278 | pub async fn calculate_total_time_left(&self) -> Result<(String), Box> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 278 - pub async fn calculate_total_time_left(&self) -> Result<(String), Box> { [INFO] [stdout] 278 + pub async fn calculate_total_time_left(&self) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::charts::ChartDatabase` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::charts::ChartDatabase; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/bot.rs:185:25 [INFO] [stdout] | [INFO] [stdout] 185 | !panic!("End.") [INFO] [stdout] | ^-------------- [INFO] [stdout] | || [INFO] [stdout] | |any code following this expression is unreachable [INFO] [stdout] | unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/commands.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bot.rs:478:13 [INFO] [stdout] | [INFO] [stdout] 478 | let mut file = File::create("bot_state.json")?; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `beatmap_id` [INFO] [stdout] --> src/pp_calculator.rs:13:32 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn calculate_pp(&self, beatmap_id: u32, mods: u32, combo: u32, accuracy: f64, misses: u32) -> Result<(f64, f64, f64), Box src/bot.rs:236:12 [INFO] [stdout] | [INFO] [stdout] 66 | impl MyBot { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 236 | pub fn calculate_pp(&self, beatmap_id: u32, mods: u32, combo: u32, accuracy: f64) -> Result<(f64, f64, f64), Box> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 267 | pub async fn get_mp_settings(&mut self) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `calculate_pp` is never used [INFO] [stdout] --> src/pp_calculator.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl PPCalculator { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn calculate_pp(&self, beatmap_id: u32, mods: u32, combo: u32, accuracy: f64, misses: u32) -> Result<(f64, f64, f64), Box src/osu_api.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct Beatmap { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 38 | pub id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub version: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub mode_int: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 50 | pub max_combo: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Beatmap` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/osu_api.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct BeatmapForRecentScore { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 57 | pub id: u32, [INFO] [stdout] 58 | pub beatmapset_id: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 59 | pub status: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 60 | pub total_length: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 61 | pub version: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 62 | pub difficulty_rating: f32, [INFO] [stdout] 63 | pub accuracy: f32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 64 | pub ar: f32, [INFO] [stdout] | ^^ [INFO] [stdout] 65 | pub bpm: f32, [INFO] [stdout] | ^^^ [INFO] [stdout] 66 | pub cs: f32, [INFO] [stdout] | ^^ [INFO] [stdout] 67 | pub drain: f32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 68 | pub mode_int: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 69 | pub url: String, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BeatmapForRecentScore` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `artist` and `title` are never read [INFO] [stdout] --> src/osu_api.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct Beatmapset { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 74 | pub artist: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 75 | pub title: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Beatmapset` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `artist` and `title` are never read [INFO] [stdout] --> src/osu_api.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 83 | pub struct BeatmapsetForRecentScore { [INFO] [stdout] | ------------------------ fields in this struct [INFO] [stdout] 84 | pub artist: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 85 | pub title: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BeatmapsetForRecentScore` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/osu_api.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct Score { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 97 | pub accuracy: f64, [INFO] [stdout] 98 | pub best_id: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 99 | pub created_at: String, [INFO] [stdout] 100 | pub id: u64, [INFO] [stdout] | ^^ [INFO] [stdout] 101 | pub max_combo: u32, [INFO] [stdout] 102 | pub mode: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 103 | pub mode_int: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 104 | pub mods: Vec, [INFO] [stdout] 105 | pub passed: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 106 | pub perfect: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub replay: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 110 | pub score: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Score` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `count_geki` and `count_katu` are never read [INFO] [stdout] --> src/osu_api.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct ScoreStatistics { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 119 | pub count_geki: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 120 | pub count_katu: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ScoreStatistics` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/osu_api.rs:127:9 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct RecentScoreResponse { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 126 | pub accuracy: f64, [INFO] [stdout] 127 | pub best_id: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 128 | pub created_at: String, [INFO] [stdout] 129 | pub id: u64, [INFO] [stdout] | ^^ [INFO] [stdout] 130 | pub max_combo: u32, [INFO] [stdout] 131 | pub mode: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 132 | pub mode_int: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 133 | pub mods: Vec, [INFO] [stdout] 134 | pub passed: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 135 | pub perfect: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub replay: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 139 | pub score: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RecentScoreResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 03s [INFO] running `Command { std: "docker" "inspect" "d41c59ee5f97d018564af1489740fc3b801f3f24d2816bb6d1af1760e6ca4f02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d41c59ee5f97d018564af1489740fc3b801f3f24d2816bb6d1af1760e6ca4f02", kill_on_drop: false }` [INFO] [stdout] d41c59ee5f97d018564af1489740fc3b801f3f24d2816bb6d1af1760e6ca4f02 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 74c461e7cb8af1347eb8e74f65cbdeca418947ed3fcf5bf746692effd5cc56f4 [INFO] running `Command { std: "docker" "start" "-a" "74c461e7cb8af1347eb8e74f65cbdeca418947ed3fcf5bf746692effd5cc56f4", kill_on_drop: false }` [INFO] [stderr] Compiling irc_bot v1.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::charts` [INFO] [stdout] --> src/bot.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::charts; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bot.rs:278:61 [INFO] [stdout] | [INFO] [stdout] 278 | pub async fn calculate_total_time_left(&self) -> Result<(String), Box> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 278 - pub async fn calculate_total_time_left(&self) -> Result<(String), Box> { [INFO] [stdout] 278 + pub async fn calculate_total_time_left(&self) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::charts::ChartDatabase` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::charts::ChartDatabase; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/bot.rs:185:25 [INFO] [stdout] | [INFO] [stdout] 185 | !panic!("End.") [INFO] [stdout] | ^-------------- [INFO] [stdout] | || [INFO] [stdout] | |any code following this expression is unreachable [INFO] [stdout] | unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/commands.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bot.rs:478:13 [INFO] [stdout] | [INFO] [stdout] 478 | let mut file = File::create("bot_state.json")?; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `beatmap_id` [INFO] [stdout] --> src/pp_calculator.rs:13:32 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn calculate_pp(&self, beatmap_id: u32, mods: u32, combo: u32, accuracy: f64, misses: u32) -> Result<(f64, f64, f64), Box src/bot.rs:236:12 [INFO] [stdout] | [INFO] [stdout] 66 | impl MyBot { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 236 | pub fn calculate_pp(&self, beatmap_id: u32, mods: u32, combo: u32, accuracy: f64) -> Result<(f64, f64, f64), Box> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 267 | pub async fn get_mp_settings(&mut self) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `calculate_pp` is never used [INFO] [stdout] --> src/pp_calculator.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl PPCalculator { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn calculate_pp(&self, beatmap_id: u32, mods: u32, combo: u32, accuracy: f64, misses: u32) -> Result<(f64, f64, f64), Box src/osu_api.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct Beatmap { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 38 | pub id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub version: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub mode_int: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 50 | pub max_combo: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Beatmap` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/osu_api.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct BeatmapForRecentScore { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 57 | pub id: u32, [INFO] [stdout] 58 | pub beatmapset_id: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 59 | pub status: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 60 | pub total_length: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 61 | pub version: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 62 | pub difficulty_rating: f32, [INFO] [stdout] 63 | pub accuracy: f32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 64 | pub ar: f32, [INFO] [stdout] | ^^ [INFO] [stdout] 65 | pub bpm: f32, [INFO] [stdout] | ^^^ [INFO] [stdout] 66 | pub cs: f32, [INFO] [stdout] | ^^ [INFO] [stdout] 67 | pub drain: f32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 68 | pub mode_int: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 69 | pub url: String, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BeatmapForRecentScore` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `artist` and `title` are never read [INFO] [stdout] --> src/osu_api.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct Beatmapset { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 74 | pub artist: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 75 | pub title: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Beatmapset` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `artist` and `title` are never read [INFO] [stdout] --> src/osu_api.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 83 | pub struct BeatmapsetForRecentScore { [INFO] [stdout] | ------------------------ fields in this struct [INFO] [stdout] 84 | pub artist: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 85 | pub title: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BeatmapsetForRecentScore` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/osu_api.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct Score { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 97 | pub accuracy: f64, [INFO] [stdout] 98 | pub best_id: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 99 | pub created_at: String, [INFO] [stdout] 100 | pub id: u64, [INFO] [stdout] | ^^ [INFO] [stdout] 101 | pub max_combo: u32, [INFO] [stdout] 102 | pub mode: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 103 | pub mode_int: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 104 | pub mods: Vec, [INFO] [stdout] 105 | pub passed: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 106 | pub perfect: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub replay: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 110 | pub score: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Score` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `count_geki` and `count_katu` are never read [INFO] [stdout] --> src/osu_api.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct ScoreStatistics { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 119 | pub count_geki: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 120 | pub count_katu: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ScoreStatistics` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/osu_api.rs:127:9 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct RecentScoreResponse { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 126 | pub accuracy: f64, [INFO] [stdout] 127 | pub best_id: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 128 | pub created_at: String, [INFO] [stdout] 129 | pub id: u64, [INFO] [stdout] | ^^ [INFO] [stdout] 130 | pub max_combo: u32, [INFO] [stdout] 131 | pub mode: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 132 | pub mode_int: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 133 | pub mods: Vec, [INFO] [stdout] 134 | pub passed: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 135 | pub perfect: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub replay: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 139 | pub score: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RecentScoreResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.65s [INFO] running `Command { std: "docker" "inspect" "74c461e7cb8af1347eb8e74f65cbdeca418947ed3fcf5bf746692effd5cc56f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74c461e7cb8af1347eb8e74f65cbdeca418947ed3fcf5bf746692effd5cc56f4", kill_on_drop: false }` [INFO] [stdout] 74c461e7cb8af1347eb8e74f65cbdeca418947ed3fcf5bf746692effd5cc56f4