[INFO] cloning repository https://github.com/arthur-monteath/gears-and-glyphs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/arthur-monteath/gears-and-glyphs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Farthur-monteath%2Fgears-and-glyphs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Farthur-monteath%2Fgears-and-glyphs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6022335c43a78e2abf735adc3a76ec6b3911574f [INFO] testing arthur-monteath/gears-and-glyphs against try#b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b for pr-145330-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Farthur-monteath%2Fgears-and-glyphs" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/arthur-monteath/gears-and-glyphs [INFO] finished tweaking git repo https://github.com/arthur-monteath/gears-and-glyphs [INFO] tweaked toml for git repo https://github.com/arthur-monteath/gears-and-glyphs written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/arthur-monteath/gears-and-glyphs on toolchain b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/arthur-monteath/gears-and-glyphs 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" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6b08a96b7c7e54ea040f9720e9d41e5e717170ab2f245e4329746074ed49394d [INFO] running `Command { std: "docker" "start" "-a" "6b08a96b7c7e54ea040f9720e9d41e5e717170ab2f245e4329746074ed49394d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6b08a96b7c7e54ea040f9720e9d41e5e717170ab2f245e4329746074ed49394d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b08a96b7c7e54ea040f9720e9d41e5e717170ab2f245e4329746074ed49394d", kill_on_drop: false }` [INFO] [stdout] 6b08a96b7c7e54ea040f9720e9d41e5e717170ab2f245e4329746074ed49394d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f46727d33353d099958d48fd61bf4c40f39030fa70fae741cdec804b96376b42 [INFO] running `Command { std: "docker" "start" "-a" "f46727d33353d099958d48fd61bf4c40f39030fa70fae741cdec804b96376b42", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling bytes v1.6.0 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling cc v1.0.99 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling syn v2.0.67 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling tower-layer v0.3.2 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Compiling rustls-pki-types v1.7.0 [INFO] [stderr] Compiling signal-hook-mio v0.2.3 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling either v1.12.0 [INFO] [stderr] Compiling rustls v0.22.4 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling rustls-webpki v0.102.4 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.3.0 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling tokio v1.38.0 [INFO] [stderr] Compiling thiserror-impl v1.0.61 [INFO] [stderr] Compiling async-trait v0.1.80 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling regex v1.10.5 [INFO] [stderr] Compiling opentelemetry v0.21.0 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling crossbeam-channel v0.5.13 [INFO] [stderr] Compiling pin-project v1.1.5 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling ordered-float v4.2.0 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling subtle v2.6.0 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling matchers v0.1.0 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling strum_macros v0.24.3 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Compiling prost-derive v0.12.6 [INFO] [stderr] Compiling futures-executor v0.3.30 [INFO] [stderr] Compiling opentelemetry_sdk v0.21.2 [INFO] [stderr] Compiling crossterm v0.26.1 [INFO] [stderr] Compiling tokio-util v0.7.11 [INFO] [stderr] Compiling axum v0.6.20 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling strum v0.24.1 [INFO] [stderr] Compiling unicode-width v0.1.13 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling tracing-serde v0.1.3 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling uuid v1.8.0 [INFO] [stderr] Compiling tracing-subscriber v0.3.18 [INFO] [stderr] Compiling comfy-table v6.2.0 [INFO] [stderr] Compiling prost v0.12.6 [INFO] [stderr] Compiling strum v0.26.2 [INFO] [stderr] Compiling tokio-io-timeout v1.2.0 [INFO] [stderr] Compiling opentelemetry-http v0.10.0 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Compiling crossterm v0.27.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling tracing-opentelemetry v0.22.0 [INFO] [stderr] Compiling data-encoding v2.6.0 [INFO] [stderr] Compiling matchit v0.7.3 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling miniz_oxide v0.7.4 [INFO] [stderr] Compiling tungstenite v0.21.0 [INFO] [stderr] Compiling hyper v0.14.29 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling shuttle-common v0.46.0 [INFO] [stderr] Compiling darling_core v0.20.9 [INFO] [stderr] Compiling async-stream v0.3.5 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling tokio-rustls v0.25.0 [INFO] [stderr] Compiling tokio-stream v0.1.15 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling webpki-roots v0.26.3 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling encoding_rs v0.8.34 [INFO] [stderr] Compiling serenity v0.12.2 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling ipnet v2.9.0 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling flate2 v1.0.30 [INFO] [stderr] Compiling tokio-tungstenite v0.21.0 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling prost-types v0.12.6 [INFO] [stderr] Compiling arrayvec v0.7.4 [INFO] [stderr] Compiling serde_cow v0.1.0 [INFO] [stderr] Compiling dashmap v5.5.3 [INFO] [stderr] Compiling secrecy v0.8.0 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling typemap_rev v0.3.0 [INFO] [stderr] Compiling strfmt v0.2.4 [INFO] [stderr] Compiling shuttle-codegen v0.46.0 [INFO] [stderr] Compiling colored v2.1.0 [INFO] [stderr] Compiling shuttle-service v0.46.0 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling darling_macro v0.20.9 [INFO] [stderr] Compiling darling v0.20.9 [INFO] [stderr] Compiling poise_macros v0.6.1 [INFO] [stderr] Compiling hyper-rustls v0.24.2 [INFO] [stderr] Compiling hyper-timeout v0.4.1 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling tonic v0.10.2 [INFO] [stderr] Compiling shuttle-proto v0.46.0 [INFO] [stderr] Compiling shuttle-runtime v0.46.0 [INFO] [stderr] Compiling shuttle-serenity v0.46.0 [INFO] [stderr] Compiling poise v0.6.1 [INFO] [stderr] Compiling gears-and-glyphs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `fmt::Error` [INFO] [stdout] --> src/duelingSystem.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Error}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reply` [INFO] [stdout] --> src/main.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use poise::{reply, Modal, serenity_prelude as serenity}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CreateInteractionResponse` and `InteractionType` [INFO] [stdout] --> src/main.rs:11:21 [INFO] [stdout] | [INFO] [stdout] 11 | use serenity::all::{CreateInteractionResponse, InteractionType}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `f32::consts::E` [INFO] [stdout] --> src/main.rs:15:33 [INFO] [stdout] | [INFO] [stdout] 15 | use std::{collections::HashMap, f32::consts::E, sync::Arc, time::Duration}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:303:9 [INFO] [stdout] | [INFO] [stdout] 286 | / loop { [INFO] [stdout] 287 | | let (action, tile) = send_turn_message(ctx, &msg, current_player, err.clone()).await?; [INFO] [stdout] 288 | | [INFO] [stdout] 289 | | match duel.input_action(current_player == inviter_id, action, tile) { [INFO] [stdout] ... | [INFO] [stdout] 300 | | current_player = if current_player == inviter_id { invitee_id } else { inviter_id }; [INFO] [stdout] 301 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 302 | [INFO] [stdout] 303 | return Ok(()) [INFO] [stdout] | ^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `health` are never read [INFO] [stdout] --> src/duelingSystem.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | struct Player { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 6 | id: UserId, [INFO] [stdout] | ^^ [INFO] [stdout] 7 | health: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `damage` is never used [INFO] [stdout] --> src/duelingSystem.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Player { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 11 | pub fn damage(&mut self, amount: u32) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `inviter` and `invitee` are never read [INFO] [stdout] --> src/duelingSystem.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Duel { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 17 | inviter: Player, // P1 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 18 | invitee: Player, // P2 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Trap` and `Wall` are never constructed [INFO] [stdout] --> src/duelingSystem.rs:187:5 [INFO] [stdout] | [INFO] [stdout] 183 | enum Slot { // Use the commands as what they should be as String [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 187 | Trap, // :brown_square: [INFO] [stdout] | ^^^^ [INFO] [stdout] 188 | Wall, // :black_large_square: [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Slot` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `duelingSystem` should have a snake case name [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | mod duelingSystem; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `dueling_system` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4m 42s [INFO] running `Command { std: "docker" "inspect" "f46727d33353d099958d48fd61bf4c40f39030fa70fae741cdec804b96376b42", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f46727d33353d099958d48fd61bf4c40f39030fa70fae741cdec804b96376b42", kill_on_drop: false }` [INFO] [stdout] f46727d33353d099958d48fd61bf4c40f39030fa70fae741cdec804b96376b42 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a938de838f1182fd6e716a954fc650bcf963884001d80697d95ed015f11ba82b [INFO] running `Command { std: "docker" "start" "-a" "a938de838f1182fd6e716a954fc650bcf963884001d80697d95ed015f11ba82b", kill_on_drop: false }` [INFO] [stderr] Compiling gears-and-glyphs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `fmt::Error` [INFO] [stdout] --> src/duelingSystem.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Error}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reply` [INFO] [stdout] --> src/main.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use poise::{reply, Modal, serenity_prelude as serenity}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CreateInteractionResponse` and `InteractionType` [INFO] [stdout] --> src/main.rs:11:21 [INFO] [stdout] | [INFO] [stdout] 11 | use serenity::all::{CreateInteractionResponse, InteractionType}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `f32::consts::E` [INFO] [stdout] --> src/main.rs:15:33 [INFO] [stdout] | [INFO] [stdout] 15 | use std::{collections::HashMap, f32::consts::E, sync::Arc, time::Duration}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:303:9 [INFO] [stdout] | [INFO] [stdout] 286 | / loop { [INFO] [stdout] 287 | | let (action, tile) = send_turn_message(ctx, &msg, current_player, err.clone()).await?; [INFO] [stdout] 288 | | [INFO] [stdout] 289 | | match duel.input_action(current_player == inviter_id, action, tile) { [INFO] [stdout] ... | [INFO] [stdout] 300 | | current_player = if current_player == inviter_id { invitee_id } else { inviter_id }; [INFO] [stdout] 301 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 302 | [INFO] [stdout] 303 | return Ok(()) [INFO] [stdout] | ^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `health` are never read [INFO] [stdout] --> src/duelingSystem.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | struct Player { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 6 | id: UserId, [INFO] [stdout] | ^^ [INFO] [stdout] 7 | health: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `damage` is never used [INFO] [stdout] --> src/duelingSystem.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Player { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 11 | pub fn damage(&mut self, amount: u32) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `inviter` and `invitee` are never read [INFO] [stdout] --> src/duelingSystem.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Duel { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 17 | inviter: Player, // P1 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 18 | invitee: Player, // P2 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Trap` and `Wall` are never constructed [INFO] [stdout] --> src/duelingSystem.rs:187:5 [INFO] [stdout] | [INFO] [stdout] 183 | enum Slot { // Use the commands as what they should be as String [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 187 | Trap, // :brown_square: [INFO] [stdout] | ^^^^ [INFO] [stdout] 188 | Wall, // :black_large_square: [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Slot` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `duelingSystem` should have a snake case name [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | mod duelingSystem; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `dueling_system` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.91s [INFO] running `Command { std: "docker" "inspect" "a938de838f1182fd6e716a954fc650bcf963884001d80697d95ed015f11ba82b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a938de838f1182fd6e716a954fc650bcf963884001d80697d95ed015f11ba82b", kill_on_drop: false }` [INFO] [stdout] a938de838f1182fd6e716a954fc650bcf963884001d80697d95ed015f11ba82b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 543f2e85d2025f19f18752e735627e0b833e5081e6f2ebd40e964bd0d4d4d5d9 [INFO] running `Command { std: "docker" "start" "-a" "543f2e85d2025f19f18752e735627e0b833e5081e6f2ebd40e964bd0d4d4d5d9", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `fmt::Error` [INFO] [stderr] --> src/duelingSystem.rs:1:11 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{fmt::Error}; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `reply` [INFO] [stderr] --> src/main.rs:10:13 [INFO] [stderr] | [INFO] [stderr] 10 | use poise::{reply, Modal, serenity_prelude as serenity}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `CreateInteractionResponse` and `InteractionType` [INFO] [stderr] --> src/main.rs:11:21 [INFO] [stderr] | [INFO] [stderr] 11 | use serenity::all::{CreateInteractionResponse, InteractionType}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::borrow::BorrowMut` [INFO] [stderr] --> src/main.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | use std::borrow::BorrowMut; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `f32::consts::E` [INFO] [stderr] --> src/main.rs:15:33 [INFO] [stderr] | [INFO] [stderr] 15 | use std::{collections::HashMap, f32::consts::E, sync::Arc, time::Duration}; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/main.rs:303:9 [INFO] [stderr] | [INFO] [stderr] 286 | / loop { [INFO] [stderr] 287 | | let (action, tile) = send_turn_message(ctx, &msg, current_player, err.clone()).await?; [INFO] [stderr] 288 | | [INFO] [stderr] 289 | | match duel.input_action(current_player == inviter_id, action, tile) { [INFO] [stderr] ... | [INFO] [stderr] 300 | | current_player = if current_player == inviter_id { invitee_id } else { inviter_id }; [INFO] [stderr] 301 | | } [INFO] [stderr] | |_________- any code following this expression is unreachable [INFO] [stderr] 302 | [INFO] [stderr] 303 | return Ok(()) [INFO] [stderr] | ^^^^^^^^^^^^^ unreachable expression [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: fields `id` and `health` are never read [INFO] [stderr] --> src/duelingSystem.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 5 | struct Player { [INFO] [stderr] | ------ fields in this struct [INFO] [stderr] 6 | id: UserId, [INFO] [stderr] | ^^ [INFO] [stderr] 7 | health: u32, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: method `damage` is never used [INFO] [stderr] --> src/duelingSystem.rs:11:12 [INFO] [stderr] | [INFO] [stderr] 10 | impl Player { [INFO] [stderr] | ----------- method in this implementation [INFO] [stderr] 11 | pub fn damage(&mut self, amount: u32) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `inviter` and `invitee` are never read [INFO] [stderr] --> src/duelingSystem.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 16 | pub struct Duel { [INFO] [stderr] | ---- fields in this struct [INFO] [stderr] 17 | inviter: Player, // P1 [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 18 | invitee: Player, // P2 [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variants `Trap` and `Wall` are never constructed [INFO] [stderr] --> src/duelingSystem.rs:187:5 [INFO] [stderr] | [INFO] [stderr] 183 | enum Slot { // Use the commands as what they should be as String [INFO] [stderr] | ---- variants in this enum [INFO] [stderr] ... [INFO] [stderr] 187 | Trap, // :brown_square: [INFO] [stderr] | ^^^^ [INFO] [stderr] 188 | Wall, // :black_large_square: [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Slot` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: module `duelingSystem` should have a snake case name [INFO] [stderr] --> src/main.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | mod duelingSystem; [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `dueling_system` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `gears-and-glyphs` (bin "gears-and-glyphs" test) generated 11 warnings (run `cargo fix --bin "gears-and-glyphs" --tests` to apply 5 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.36s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/gears_and_glyphs-bda63025001cf588) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "543f2e85d2025f19f18752e735627e0b833e5081e6f2ebd40e964bd0d4d4d5d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "543f2e85d2025f19f18752e735627e0b833e5081e6f2ebd40e964bd0d4d4d5d9", kill_on_drop: false }` [INFO] [stdout] 543f2e85d2025f19f18752e735627e0b833e5081e6f2ebd40e964bd0d4d4d5d9