[INFO] cloning repository https://github.com/waltsai2483/rusty-metro [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/waltsai2483/rusty-metro" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwaltsai2483%2Frusty-metro", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwaltsai2483%2Frusty-metro'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cf37d314e64442b32c051d038ab970cf369cf290 [INFO] building waltsai2483/rusty-metro against try#8b8eff55bd72abbb57167bc42222a7f91d41cb0d for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwaltsai2483%2Frusty-metro" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/waltsai2483/rusty-metro on toolchain 8b8eff55bd72abbb57167bc42222a7f91d41cb0d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/waltsai2483/rusty-metro [INFO] finished tweaking git repo https://github.com/waltsai2483/rusty-metro [INFO] tweaked toml for git repo https://github.com/waltsai2483/rusty-metro written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/waltsai2483/rusty-metro 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" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9540730ab55eaf0787a2a0b240651212c50537f347ea2ce2de36ebd8b3ee1097 [INFO] running `Command { std: "docker" "start" "-a" "9540730ab55eaf0787a2a0b240651212c50537f347ea2ce2de36ebd8b3ee1097", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9540730ab55eaf0787a2a0b240651212c50537f347ea2ce2de36ebd8b3ee1097", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9540730ab55eaf0787a2a0b240651212c50537f347ea2ce2de36ebd8b3ee1097", kill_on_drop: false }` [INFO] [stdout] 9540730ab55eaf0787a2a0b240651212c50537f347ea2ce2de36ebd8b3ee1097 [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=warn" "-e" "RUSTDOCFLAGS=--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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 99aa9dea4f4e4ace6a84b2eb4ca18e5390527f5d562fdad2636833fe9da57680 [INFO] running `Command { std: "docker" "start" "-a" "99aa9dea4f4e4ace6a84b2eb4ca18e5390527f5d562fdad2636833fe9da57680", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling xml-rs v0.8.26 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling libloading v0.8.7 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling smallvec v1.15.0 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling simd-adler32 v0.3.7 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling dlib v0.5.2 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling ttf-parser v0.25.1 [INFO] [stderr] Compiling miniz_oxide v0.8.8 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling wayland-sys v0.29.5 [INFO] [stderr] Compiling ab_glyph_rasterizer v0.1.8 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling downcast-rs v1.2.1 [INFO] [stderr] Compiling camino v1.1.9 [INFO] [stderr] Compiling scoped-tls v1.0.1 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling flate2 v1.1.1 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling alsa-sys v0.3.1 [INFO] [stderr] Compiling fdeflate v0.3.7 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Compiling libloading v0.7.4 [INFO] [stderr] Compiling khronos-egl v4.1.0 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling cfg_aliases v0.2.1 [INFO] [stderr] Compiling ash v0.37.3+1.3.251 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling pulldown-cmark v0.9.6 [INFO] [stderr] Compiling linux-raw-sys v0.9.4 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling png v0.17.16 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Compiling cc v1.2.23 [INFO] [stderr] Compiling nix v0.24.3 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling nix v0.25.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling smithay-client-toolkit v0.16.1 [INFO] [stderr] Compiling gpu-descriptor-types v0.1.2 [INFO] [stderr] Compiling gpu-alloc-types v0.2.0 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Compiling hexf-parse v0.2.1 [INFO] [stderr] Compiling strict-num v0.1.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Compiling euclid v0.22.11 [INFO] [stderr] Compiling spirv v0.2.0+1.5.4 [INFO] [stderr] Compiling xcursor v0.3.8 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling arrayref v0.3.9 [INFO] [stderr] Compiling bytemuck_derive v1.9.3 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zstd-safe v5.0.2+zstd.1.5.2 [INFO] [stderr] Compiling owned_ttf_parser v0.25.0 [INFO] [stderr] Compiling lyon_geom v1.0.6 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling ab_glyph v0.2.29 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling raw-window-handle v0.5.2 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling gpu-descriptor v0.2.4 [INFO] [stderr] Compiling tempfile v3.20.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Compiling bzip2-sys v0.1.13+1.0.8 [INFO] [stderr] Compiling wayland-commons v0.29.5 [INFO] [stderr] Compiling gpu-alloc v0.5.4 [INFO] [stderr] Compiling bytemuck v1.23.0 [INFO] [stderr] Compiling lyon_path v1.0.7 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling calloop v0.10.6 [INFO] [stderr] Compiling naga v0.12.3 [INFO] [stderr] Compiling symphonia-core v0.5.4 [INFO] [stderr] Compiling tiny-skia-path v0.8.4 [INFO] [stderr] Compiling inotify-sys v0.1.5 [INFO] [stderr] Compiling memmap2 v0.5.10 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling wgpu-types v0.16.1 [INFO] [stderr] Compiling glob v0.3.2 [INFO] [stderr] Compiling profiling v1.0.16 [INFO] [stderr] Compiling bytecount v0.6.8 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling glow v0.12.3 [INFO] [stderr] Compiling renderdoc-sys v1.1.0 [INFO] [stderr] Compiling cpal v0.15.3 [INFO] [stderr] Compiling weezl v0.1.8 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Compiling winit v0.28.7 [INFO] [stderr] Compiling wayland-cursor v0.29.5 [INFO] [stderr] Compiling symphonia-metadata v0.5.4 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling tiny-skia v0.8.4 [INFO] [stderr] Compiling tinyvec v1.9.0 [INFO] [stderr] Compiling symphonia-bundle-mp3 v0.5.4 [INFO] [stderr] Compiling alsa v0.9.1 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling inotify v0.10.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling approx v0.5.1 [INFO] [stderr] Compiling ogg v0.8.0 [INFO] [stderr] Compiling crossbeam-channel v0.5.15 [INFO] [stderr] Compiling memoffset v0.8.0 [INFO] [stderr] Compiling uuid v1.16.0 [INFO] [stderr] Compiling rustversion v1.0.20 [INFO] [stderr] Compiling gilrs v0.10.10 [INFO] [stderr] Compiling option-ext v0.2.0 [INFO] [stderr] Compiling jpeg-decoder v0.3.1 [INFO] [stderr] Compiling xi-unicode v0.3.0 [INFO] [stderr] Compiling float_next_after v1.0.0 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling rustc-hash v2.1.1 [INFO] [stderr] Compiling dasp_sample v0.11.0 [INFO] [stderr] Compiling mint v0.5.9 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling tiff v0.9.1 [INFO] [stderr] Compiling gif v0.13.1 [INFO] [stderr] Compiling glyph_brush_layout v0.2.4 [INFO] [stderr] Compiling lyon_tessellation v1.0.15 [INFO] [stderr] Compiling glyph_brush_draw_cache v0.1.6 [INFO] [stderr] Compiling dirs-sys v0.4.1 [INFO] [stderr] Compiling gilrs-core v0.5.15 [INFO] [stderr] Compiling twox-hash v2.1.0 [INFO] [stderr] Compiling lewton v0.10.2 [INFO] [stderr] Compiling symphonia v0.5.4 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling bzip2 v0.4.4 [INFO] [stderr] Compiling cargo-platform v0.1.9 [INFO] [stderr] Compiling lyon_algorithms v1.0.5 [INFO] [stderr] Compiling ordered-float v5.0.0 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling claxon v0.4.3 [INFO] [stderr] Compiling hound v3.5.1 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling lyon v1.0.1 [INFO] [stderr] Compiling glyph_brush v0.7.12 [INFO] [stderr] Compiling rand v0.9.1 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling rodio v0.17.3 [INFO] [stderr] Compiling image v0.24.9 [INFO] [stderr] Compiling directories v5.0.1 [INFO] [stderr] Compiling crevice-derive v0.10.0 [INFO] [stderr] Compiling cargo_metadata v0.14.2 [INFO] [stderr] Compiling glam v0.24.2 [INFO] [stderr] Compiling smart-default v0.7.1 [INFO] [stderr] Compiling ordered-float v3.9.2 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling pollster v0.3.0 [INFO] [stderr] Compiling crevice v0.13.0 [INFO] [stderr] Compiling typed-arena v2.0.2 [INFO] [stderr] Compiling strum_macros v0.27.1 [INFO] [stderr] Compiling rand_distr v0.5.1 [INFO] [stderr] Compiling lerp v0.5.0 [INFO] [stderr] Compiling strum v0.27.1 [INFO] [stderr] Compiling skeptic v0.13.7 [INFO] [stderr] Compiling ggez v0.9.3 [INFO] [stderr] Compiling zstd v0.11.2+zstd.1.5.2 [INFO] [stderr] Compiling zip v0.6.6 [INFO] [stderr] Compiling sctk-adwaita v0.5.4 [INFO] [stderr] Compiling wgpu-hal v0.16.2 [INFO] [stderr] Compiling wgpu-core v0.16.1 [INFO] [stderr] Compiling wgpu v0.16.3 [INFO] [stderr] Compiling rusty-metro v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Canvas` [INFO] [stdout] --> src/route/handler.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | graphics::{Canvas, Color}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TAU` [INFO] [stdout] --> src/route/segment.rs:1:28 [INFO] [stdout] | [INFO] [stdout] 1 | use std::f32::consts::{PI, TAU}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PI` [INFO] [stdout] --> src/station/mod.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::f32::consts::{PI, TAU}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Shape` and `metro::Metro` [INFO] [stdout] --> src/station/mod.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | shape::{Shape, ShapeBuilder}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | vehicle::{Vehicle, metro::Metro}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Index` [INFO] [stdout] --> src/station/handler.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Index; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context` and `DrawParam` [INFO] [stdout] --> src/station/handler.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | Context, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 5 | glam::Vec2, [INFO] [stdout] 6 | graphics::{Canvas, DrawParam}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Shape` and `palette::ShapePalette` [INFO] [stdout] --> src/station/handler.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::shape::{Shape, ShapeBuilder, palette::ShapePalette}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/vehicle/mod.rs:3:51 [INFO] [stdout] | [INFO] [stdout] 3 | use ggez::{glam::Vec2, graphics::{Canvas, Color}, Context}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Route` and `types::StationShape` [INFO] [stdout] --> src/vehicle/mod.rs:7:70 [INFO] [stdout] | [INFO] [stdout] 7 | route::{handler::RouteHandler, segment::{Segment, VehicleState}, Route}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | shape::ShapeBuilder, [INFO] [stdout] 9 | station::{handler::StationHandler, types::StationShape}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Canvas`, `Color`, and `Context` [INFO] [stdout] --> src/vehicle/handler.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use ggez::{graphics::{Canvas, Color}, Context}; [INFO] [stdout] | ^^^^^^ ^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `palette::ShapePalette` [INFO] [stdout] --> src/vehicle/handler.rs:5:51 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{route::handler::RouteHandler, shape::{palette::ShapePalette, ShapeBuilder}, station::handler::StationHandler}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `types::StationShape` [INFO] [stdout] --> src/vehicle/metro.rs:11:40 [INFO] [stdout] | [INFO] [stdout] 11 | station::{handler::StationHandler, types::StationShape}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MeshBuilder` and `Mesh` [INFO] [stdout] --> src/world.rs:5:54 [INFO] [stdout] | [INFO] [stdout] 5 | graphics::{Canvas, Color, DrawParam, FilterMode, Mesh, MeshBuilder, Quad, Rect}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Route` [INFO] [stdout] --> src/world.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | Route, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rng` [INFO] [stdout] --> src/station/mod.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | use rand::{Rng, rngs::ThreadRng, seq::IndexedRandom}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `choose_larger` [INFO] [stdout] --> src/route/segment.rs:117:81 [INFO] [stdout] | [INFO] [stdout] 117 | VehicleState::ArrivePlatform(_, _, entrance_angle, center_angle, _, choose_larger) => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_choose_larger` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `choose_larger` [INFO] [stdout] --> src/route/segment.rs:120:76 [INFO] [stdout] | [INFO] [stdout] 120 | VehicleState::LeavePlatform(_, _, _, center_angle, exit_angle, choose_larger) => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_choose_larger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exit_angle` [INFO] [stdout] --> src/route/mod.rs:422:17 [INFO] [stdout] | [INFO] [stdout] 422 | exit_angle, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exit_angle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pick_larger_angle` [INFO] [stdout] --> src/route/mod.rs:423:17 [INFO] [stdout] | [INFO] [stdout] 423 | pick_larger_angle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pick_larger_angle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entrance_angle` [INFO] [stdout] --> src/route/mod.rs:436:17 [INFO] [stdout] | [INFO] [stdout] 436 | entrance_angle, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_entrance_angle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pick_larger_angle` [INFO] [stdout] --> src/route/mod.rs:439:17 [INFO] [stdout] | [INFO] [stdout] 439 | pick_larger_angle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pick_larger_angle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta` [INFO] [stdout] --> src/route/mod.rs:457:9 [INFO] [stdout] | [INFO] [stdout] 457 | delta: f32, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delta` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/route/mod.rs:469:28 [INFO] [stdout] | [INFO] [stdout] 469 | pub fn draw(&mut self, ctx: &Context, canvas: &mut Canvas) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stations` [INFO] [stdout] --> src/vehicle/metro.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | stations: &StationHandler, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stations` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shapes` [INFO] [stdout] --> src/vehicle/metro.rs:157:41 [INFO] [stdout] | [INFO] [stdout] 157 | fn draw(&self, canvas: &mut Canvas, shapes: &ShapeBuilder, color: Color) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_shapes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stations` [INFO] [stdout] --> src/vehicle/mod.rs:75:55 [INFO] [stdout] | [INFO] [stdout] 75 | fn move_vehicle(&mut self, routes: &RouteHandler, stations: &StationHandler, delta: f32) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stations` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/world.rs:116:32 [INFO] [stdout] | [INFO] [stdout] 116 | fn resize_event(&mut self, ctx: &mut Context, width: f32, height: f32) -> GameResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `OnVehicle`, `LeavingStation`, and `LeavingVehicle` are never constructed [INFO] [stdout] --> src/passenger/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum PassengerState { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 5 | OnStation, [INFO] [stdout] 6 | OnVehicle, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 7 | LeavingStation(usize), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 8 | LeavingVehicle(usize) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PassengerState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_state` is never used [INFO] [stdout] --> src/passenger/mod.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Passenger { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn set_state(&mut self, state: PassengerState) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `stops` is never used [INFO] [stdout] --> src/route/mod.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl Route { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn stops(&self) -> &Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `iter` is never used [INFO] [stdout] --> src/route/handler.rs:43:19 [INFO] [stdout] | [INFO] [stdout] 15 | impl RouteHandler { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | pub(crate) fn iter(&self) -> std::slice::Iter<'_, Route> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `side` is never used [INFO] [stdout] --> src/route/stop.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Stop { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn side(&self) -> StopSide { self.side } [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `capacity` are never read [INFO] [stdout] --> src/station/mod.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Station { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 24 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 32 | capacity: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `id`, `kind`, and `take_vehicle` are never used [INFO] [stdout] --> src/station/mod.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl Station { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn id(&self) -> u32 { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn kind(&self) -> StationShape { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn take_vehicle(&mut self, vehicle: &mut Box) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_mut` is never used [INFO] [stdout] --> src/station/handler.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl StationHandler { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn get_mut(&mut self, index: usize) -> &mut Station { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `id`, `available_spaces`, `passengers`, and `get_segment` are never used [INFO] [stdout] --> src/vehicle/mod.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub trait Vehicle { [INFO] [stdout] | ------- methods in this trait [INFO] [stdout] 16 | fn id(&self) -> usize; [INFO] [stdout] | ^^ [INFO] [stdout] 17 | fn set_id(&mut self, id: usize); [INFO] [stdout] 18 | fn available_spaces(&self) -> usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | fn passengers(&self) -> &Vec; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn get_segment<'a>(&self, routes: &'a RouteHandler) -> &'a Segment { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `vehicles` is never used [INFO] [stdout] --> src/vehicle/handler.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl VehicleHandler { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn vehicles(&self) -> &Vec> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `passengers` is never read [INFO] [stdout] --> src/vehicle/metro.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Metro { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 37 | passengers: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vec2i` is never constructed [INFO] [stdout] --> src/utils/vec.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Vec2i { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `x`, and `y` are never used [INFO] [stdout] --> src/utils/vec.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Vec2i { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 9 | pub fn new(x: i32, y: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn x(&self) -> i32 { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn y(&self) -> i32 { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Grid` is never constructed [INFO] [stdout] --> src/utils/vec.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Grid { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `can_fill`, and `fill` are never used [INFO] [stdout] --> src/utils/vec.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Grid { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 30 | pub fn new(width: usize, height: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn can_fill(&self, x: usize, y: usize) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn fill(&mut self, x: usize, y: usize, shape: StationShape, station_type: StationType) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 15s [INFO] running `Command { std: "docker" "inspect" "99aa9dea4f4e4ace6a84b2eb4ca18e5390527f5d562fdad2636833fe9da57680", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99aa9dea4f4e4ace6a84b2eb4ca18e5390527f5d562fdad2636833fe9da57680", kill_on_drop: false }` [INFO] [stdout] 99aa9dea4f4e4ace6a84b2eb4ca18e5390527f5d562fdad2636833fe9da57680 [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=warn" "-e" "RUSTDOCFLAGS=--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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6c2802920bb5f9b406630005249de43e4caa0ec4b3a01e15070523a06e576dad [INFO] running `Command { std: "docker" "start" "-a" "6c2802920bb5f9b406630005249de43e4caa0ec4b3a01e15070523a06e576dad", kill_on_drop: false }` [INFO] [stderr] Compiling rusty-metro v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Canvas` [INFO] [stdout] --> src/route/handler.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | graphics::{Canvas, Color}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TAU` [INFO] [stdout] --> src/route/segment.rs:1:28 [INFO] [stdout] | [INFO] [stdout] 1 | use std::f32::consts::{PI, TAU}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PI` [INFO] [stdout] --> src/station/mod.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::f32::consts::{PI, TAU}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Shape` and `metro::Metro` [INFO] [stdout] --> src/station/mod.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | shape::{Shape, ShapeBuilder}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | vehicle::{Vehicle, metro::Metro}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Index` [INFO] [stdout] --> src/station/handler.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Index; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context` and `DrawParam` [INFO] [stdout] --> src/station/handler.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | Context, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 5 | glam::Vec2, [INFO] [stdout] 6 | graphics::{Canvas, DrawParam}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Shape` and `palette::ShapePalette` [INFO] [stdout] --> src/station/handler.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::shape::{Shape, ShapeBuilder, palette::ShapePalette}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/vehicle/mod.rs:3:51 [INFO] [stdout] | [INFO] [stdout] 3 | use ggez::{glam::Vec2, graphics::{Canvas, Color}, Context}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Route` and `types::StationShape` [INFO] [stdout] --> src/vehicle/mod.rs:7:70 [INFO] [stdout] | [INFO] [stdout] 7 | route::{handler::RouteHandler, segment::{Segment, VehicleState}, Route}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | shape::ShapeBuilder, [INFO] [stdout] 9 | station::{handler::StationHandler, types::StationShape}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Canvas`, `Color`, and `Context` [INFO] [stdout] --> src/vehicle/handler.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use ggez::{graphics::{Canvas, Color}, Context}; [INFO] [stdout] | ^^^^^^ ^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `palette::ShapePalette` [INFO] [stdout] --> src/vehicle/handler.rs:5:51 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{route::handler::RouteHandler, shape::{palette::ShapePalette, ShapeBuilder}, station::handler::StationHandler}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `types::StationShape` [INFO] [stdout] --> src/vehicle/metro.rs:11:40 [INFO] [stdout] | [INFO] [stdout] 11 | station::{handler::StationHandler, types::StationShape}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MeshBuilder` and `Mesh` [INFO] [stdout] --> src/world.rs:5:54 [INFO] [stdout] | [INFO] [stdout] 5 | graphics::{Canvas, Color, DrawParam, FilterMode, Mesh, MeshBuilder, Quad, Rect}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Route` [INFO] [stdout] --> src/world.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | Route, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rng` [INFO] [stdout] --> src/station/mod.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | use rand::{Rng, rngs::ThreadRng, seq::IndexedRandom}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `choose_larger` [INFO] [stdout] --> src/route/segment.rs:117:81 [INFO] [stdout] | [INFO] [stdout] 117 | VehicleState::ArrivePlatform(_, _, entrance_angle, center_angle, _, choose_larger) => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_choose_larger` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `choose_larger` [INFO] [stdout] --> src/route/segment.rs:120:76 [INFO] [stdout] | [INFO] [stdout] 120 | VehicleState::LeavePlatform(_, _, _, center_angle, exit_angle, choose_larger) => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_choose_larger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exit_angle` [INFO] [stdout] --> src/route/mod.rs:422:17 [INFO] [stdout] | [INFO] [stdout] 422 | exit_angle, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exit_angle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pick_larger_angle` [INFO] [stdout] --> src/route/mod.rs:423:17 [INFO] [stdout] | [INFO] [stdout] 423 | pick_larger_angle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pick_larger_angle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entrance_angle` [INFO] [stdout] --> src/route/mod.rs:436:17 [INFO] [stdout] | [INFO] [stdout] 436 | entrance_angle, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_entrance_angle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pick_larger_angle` [INFO] [stdout] --> src/route/mod.rs:439:17 [INFO] [stdout] | [INFO] [stdout] 439 | pick_larger_angle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pick_larger_angle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta` [INFO] [stdout] --> src/route/mod.rs:457:9 [INFO] [stdout] | [INFO] [stdout] 457 | delta: f32, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delta` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/route/mod.rs:469:28 [INFO] [stdout] | [INFO] [stdout] 469 | pub fn draw(&mut self, ctx: &Context, canvas: &mut Canvas) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stations` [INFO] [stdout] --> src/vehicle/metro.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | stations: &StationHandler, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stations` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shapes` [INFO] [stdout] --> src/vehicle/metro.rs:157:41 [INFO] [stdout] | [INFO] [stdout] 157 | fn draw(&self, canvas: &mut Canvas, shapes: &ShapeBuilder, color: Color) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_shapes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stations` [INFO] [stdout] --> src/vehicle/mod.rs:75:55 [INFO] [stdout] | [INFO] [stdout] 75 | fn move_vehicle(&mut self, routes: &RouteHandler, stations: &StationHandler, delta: f32) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stations` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/world.rs:116:32 [INFO] [stdout] | [INFO] [stdout] 116 | fn resize_event(&mut self, ctx: &mut Context, width: f32, height: f32) -> GameResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `OnVehicle`, `LeavingStation`, and `LeavingVehicle` are never constructed [INFO] [stdout] --> src/passenger/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum PassengerState { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 5 | OnStation, [INFO] [stdout] 6 | OnVehicle, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 7 | LeavingStation(usize), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 8 | LeavingVehicle(usize) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PassengerState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_state` is never used [INFO] [stdout] --> src/passenger/mod.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Passenger { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn set_state(&mut self, state: PassengerState) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `stops` is never used [INFO] [stdout] --> src/route/mod.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl Route { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn stops(&self) -> &Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `iter` is never used [INFO] [stdout] --> src/route/handler.rs:43:19 [INFO] [stdout] | [INFO] [stdout] 15 | impl RouteHandler { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | pub(crate) fn iter(&self) -> std::slice::Iter<'_, Route> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `side` is never used [INFO] [stdout] --> src/route/stop.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Stop { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn side(&self) -> StopSide { self.side } [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `capacity` are never read [INFO] [stdout] --> src/station/mod.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Station { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 24 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 32 | capacity: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `id`, `kind`, and `take_vehicle` are never used [INFO] [stdout] --> src/station/mod.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl Station { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn id(&self) -> u32 { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn kind(&self) -> StationShape { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn take_vehicle(&mut self, vehicle: &mut Box) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_mut` is never used [INFO] [stdout] --> src/station/handler.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl StationHandler { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn get_mut(&mut self, index: usize) -> &mut Station { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `id`, `available_spaces`, `passengers`, and `get_segment` are never used [INFO] [stdout] --> src/vehicle/mod.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub trait Vehicle { [INFO] [stdout] | ------- methods in this trait [INFO] [stdout] 16 | fn id(&self) -> usize; [INFO] [stdout] | ^^ [INFO] [stdout] 17 | fn set_id(&mut self, id: usize); [INFO] [stdout] 18 | fn available_spaces(&self) -> usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | fn passengers(&self) -> &Vec; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn get_segment<'a>(&self, routes: &'a RouteHandler) -> &'a Segment { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `vehicles` is never used [INFO] [stdout] --> src/vehicle/handler.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl VehicleHandler { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn vehicles(&self) -> &Vec> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `passengers` is never read [INFO] [stdout] --> src/vehicle/metro.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Metro { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 37 | passengers: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vec2i` is never constructed [INFO] [stdout] --> src/utils/vec.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Vec2i { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `x`, and `y` are never used [INFO] [stdout] --> src/utils/vec.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Vec2i { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 9 | pub fn new(x: i32, y: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn x(&self) -> i32 { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn y(&self) -> i32 { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Grid` is never constructed [INFO] [stdout] --> src/utils/vec.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Grid { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `can_fill`, and `fill` are never used [INFO] [stdout] --> src/utils/vec.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Grid { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 30 | pub fn new(width: usize, height: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn can_fill(&self, x: usize, y: usize) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn fill(&mut self, x: usize, y: usize, shape: StationShape, station_type: StationType) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.01s [INFO] running `Command { std: "docker" "inspect" "6c2802920bb5f9b406630005249de43e4caa0ec4b3a01e15070523a06e576dad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6c2802920bb5f9b406630005249de43e4caa0ec4b3a01e15070523a06e576dad", kill_on_drop: false }` [INFO] [stdout] 6c2802920bb5f9b406630005249de43e4caa0ec4b3a01e15070523a06e576dad