[INFO] cloning repository https://github.com/voloder/rusty-circuits [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/voloder/rusty-circuits" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvoloder%2Frusty-circuits", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvoloder%2Frusty-circuits'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bb8093e3d94bf7abc4d1e08a1928130243ab35a2 [INFO] testing voloder/rusty-circuits against try#bd7d74411512a3dd3b35d2f699c51dd2557c7e7e+cargoflags=-Zbuild-dir-new-layout for pr-149852-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvoloder%2Frusty-circuits" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/voloder/rusty-circuits [INFO] finished tweaking git repo https://github.com/voloder/rusty-circuits [INFO] tweaked toml for git repo https://github.com/voloder/rusty-circuits written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/voloder/rusty-circuits on toolchain bd7d74411512a3dd3b35d2f699c51dd2557c7e7e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/voloder/rusty-circuits 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" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b2409df841030ddfa87cedea167429a3e33c6b3850a5d008143f75ac8b085e6e [INFO] running `Command { std: "docker" "start" "-a" "b2409df841030ddfa87cedea167429a3e33c6b3850a5d008143f75ac8b085e6e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b2409df841030ddfa87cedea167429a3e33c6b3850a5d008143f75ac8b085e6e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b2409df841030ddfa87cedea167429a3e33c6b3850a5d008143f75ac8b085e6e", kill_on_drop: false }` [INFO] [stdout] b2409df841030ddfa87cedea167429a3e33c6b3850a5d008143f75ac8b085e6e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "build" "--frozen" "--message-format=json" "-Zbuild-dir-new-layout", kill_on_drop: false }` [INFO] [stdout] d1d6bd6217c4399db6506047c18268796c136ce761dca1205d6ae93d67262172 [INFO] running `Command { std: "docker" "start" "-a" "d1d6bd6217c4399db6506047c18268796c136ce761dca1205d6ae93d67262172", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling wayland-sys v0.31.4 [INFO] [stderr] Compiling wayland-backend v0.3.6 [INFO] [stderr] Compiling quick-xml v0.34.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling wayland-client v0.31.5 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling serde v1.0.205 [INFO] [stderr] Compiling zvariant_utils v1.0.1 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling futures-lite v2.3.0 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Compiling memoffset v0.7.1 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling rustix v0.37.27 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling waker-fn v1.2.0 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling futures-lite v1.13.0 [INFO] [stderr] Compiling piper v0.2.3 [INFO] [stderr] Compiling async-lock v2.8.0 [INFO] [stderr] Compiling async-fs v1.6.0 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Compiling linux-raw-sys v0.3.8 [INFO] [stderr] Compiling ttf-parser v0.24.1 [INFO] [stderr] Compiling xml-rs v0.8.21 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling xcursor v0.3.6 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling async-executor v1.13.0 [INFO] [stderr] Compiling event-listener-strategy v0.5.2 [INFO] [stderr] Compiling async-broadcast v0.5.1 [INFO] [stderr] Compiling async-channel v2.3.1 [INFO] [stderr] Compiling ordered-stream v0.2.0 [INFO] [stderr] Compiling wayland-scanner v0.31.4 [INFO] [stderr] Compiling blocking v1.6.1 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling smithay-client-toolkit v0.18.1 [INFO] [stderr] Compiling accesskit v0.12.3 [INFO] [stderr] Compiling winit v0.29.15 [INFO] [stderr] Compiling raw-window-handle v0.5.2 [INFO] [stderr] Compiling xkbcommon-dl v0.4.2 [INFO] [stderr] Compiling nohash-hasher v0.2.0 [INFO] [stderr] Compiling glutin v0.31.3 [INFO] [stderr] Compiling async-once-cell v0.5.3 [INFO] [stderr] Compiling glutin_glx_sys v0.5.0 [INFO] [stderr] Compiling glutin_egl_sys v0.6.0 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling socket2 v0.4.10 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling owned_ttf_parser v0.24.0 [INFO] [stderr] Compiling xdg-home v1.2.0 [INFO] [stderr] Compiling nix v0.26.4 [INFO] [stderr] Compiling memmap2 v0.9.4 [INFO] [stderr] Compiling ab_glyph v0.2.28 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling accesskit_consumer v0.16.1 [INFO] [stderr] Compiling flate2 v1.0.31 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling glutin-winit v0.4.2 [INFO] [stderr] Compiling matrixmultiply v0.3.9 [INFO] [stderr] Compiling png v0.17.13 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling approx v0.5.1 [INFO] [stderr] Compiling web-time v0.2.4 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling zvariant_derive v3.15.2 [INFO] [stderr] Compiling webbrowser v1.0.1 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling bytemuck_derive v1.7.0 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling serde_derive v1.0.205 [INFO] [stderr] Compiling enumflags2_derive v0.7.10 [INFO] [stderr] Compiling async-trait v0.1.81 [INFO] [stderr] Compiling async-recursion v1.1.1 [INFO] [stderr] Compiling serde_repr v0.1.19 [INFO] [stderr] Compiling nalgebra-macros v0.2.2 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling bytemuck v1.16.3 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling polling v3.7.2 [INFO] [stderr] Compiling x11rb v0.13.1 [INFO] [stderr] Compiling tiny-skia-path v0.11.4 [INFO] [stderr] Compiling emath v0.28.1 [INFO] [stderr] Compiling safe_arch v0.7.2 [INFO] [stderr] Compiling image v0.25.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling regex v1.10.6 [INFO] [stderr] Compiling calloop v0.12.4 [INFO] [stderr] Compiling calloop v0.13.0 [INFO] [stderr] Compiling wide v0.7.26 [INFO] [stderr] Compiling ecolor v0.28.1 [INFO] [stderr] Compiling epaint v0.28.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling tiny-skia v0.11.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling wayland-csd-frame v0.3.0 [INFO] [stderr] Compiling zbus_macros v3.15.2 [INFO] [stderr] Compiling egui v0.28.1 [INFO] [stderr] Compiling simba v0.9.0 [INFO] [stderr] Compiling wayland-protocols v0.31.2 [INFO] [stderr] Compiling wayland-cursor v0.31.5 [INFO] [stderr] Compiling calloop-wayland-source v0.2.0 [INFO] [stderr] Compiling wayland-protocols v0.32.3 [INFO] [stderr] Compiling calloop-wayland-source v0.3.0 [INFO] [stderr] Compiling arboard v3.4.0 [INFO] [stderr] Compiling enumflags2 v0.7.10 [INFO] [stderr] Compiling zvariant v3.15.2 [INFO] [stderr] Compiling wayland-protocols-wlr v0.2.0 [INFO] [stderr] Compiling wayland-protocols-plasma v0.2.0 [INFO] [stderr] Compiling wayland-protocols-wlr v0.3.3 [INFO] [stderr] Compiling egui_glow v0.28.1 [INFO] [stderr] Compiling zbus_names v2.6.1 [INFO] [stderr] Compiling zbus v3.15.2 [INFO] [stderr] Compiling nalgebra v0.33.0 [INFO] [stderr] Compiling smithay-client-toolkit v0.19.2 [INFO] [stderr] Compiling sctk-adwaita v0.8.3 [INFO] [stderr] Compiling smithay-clipboard v0.7.2 [INFO] [stderr] Compiling atspi-common v0.3.0 [INFO] [stderr] Compiling atspi-proxies v0.3.0 [INFO] [stderr] Compiling atspi-connection v0.3.0 [INFO] [stderr] Compiling atspi v0.19.0 [INFO] [stderr] Compiling accesskit_unix v0.6.2 [INFO] [stderr] Compiling accesskit_winit v0.16.1 [INFO] [stderr] Compiling egui-winit v0.28.1 [INFO] [stderr] Compiling eframe v0.28.1 [INFO] [stderr] Compiling rusty_circuit v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ElementType` [INFO] [stdout] --> src/circuit_solver.rs:2:29 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::{CircuitElement, ElementType, Node}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/components/capacitor.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{BTreeMap, HashMap}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::Values` [INFO] [stdout] --> src/components/capacitor.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::Values; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rect` [INFO] [stdout] --> src/components/capacitor.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use eframe::egui::{Pos2, Rect, Stroke, Vec2}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/components/dc_voltage_source.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{BTreeMap, HashMap}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::Values` [INFO] [stdout] --> src/components/dc_voltage_source.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::Values; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rect` [INFO] [stdout] --> src/components/dc_voltage_source.rs:4:33 [INFO] [stdout] | [INFO] [stdout] 4 | use eframe::egui::{Frame, Pos2, Rect, Stroke, Vec2}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/components/resistor.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{BTreeMap, HashMap}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::Values` [INFO] [stdout] --> src/components/resistor.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::Values; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ui` [INFO] [stdout] --> src/components/resistor.rs:4:54 [INFO] [stdout] | [INFO] [stdout] 4 | use eframe::egui::{Frame, Pos2, Rect, Shape, Stroke, Ui, Vec2}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `eframe::egui::debug_text::print` [INFO] [stdout] --> src/components/resistor.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use eframe::egui::debug_text::print; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/components/wire.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{BTreeMap, HashMap}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::Values` [INFO] [stdout] --> src/components/wire.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::Values; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rect` [INFO] [stdout] --> src/components/wire.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use eframe::egui::{Pos2, Rect, Stroke, Vec2}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `eframe::egui::accesskit::NodeClassSet` [INFO] [stdout] --> src/components/wire.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use eframe::egui::accesskit::NodeClassSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/components/current_source.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{BTreeMap, HashMap}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::Values` [INFO] [stdout] --> src/components/current_source.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::Values; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rect` [INFO] [stdout] --> src/components/current_source.rs:4:35 [INFO] [stdout] | [INFO] [stdout] 4 | use eframe::egui::{Color32, Pos2, Rect, Stroke, Vec2}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/components/circuit_switch.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{BTreeMap, HashMap}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::Values` [INFO] [stdout] --> src/components/circuit_switch.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::Values; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/components/ground.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{BTreeMap, HashMap}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::Values` [INFO] [stdout] --> src/components/ground.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::Values; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rect` [INFO] [stdout] --> src/components/ground.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use eframe::egui::{Pos2, Rect, Stroke, Vec2}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::Values` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::collections::hash_map::Values; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::num::FpCategory::Zero` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::num::FpCategory::Zero; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WindowBuilder` [INFO] [stdout] --> src/main.rs:15:20 [INFO] [stdout] | [INFO] [stdout] 15 | use eframe::{egui, WindowBuilder}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WidgetText` [INFO] [stdout] --> src/main.rs:16:53 [INFO] [stdout] | [INFO] [stdout] 16 | use eframe::egui::{FontFamily, Key, Rgba, RichText, WidgetText}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Shape` [INFO] [stdout] --> src/main.rs:18:37 [INFO] [stdout] | [INFO] [stdout] 18 | use eframe::epaint::{Color32, Pos2, Shape, Stroke}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element` [INFO] [stdout] --> src/circuit_solver.rs:84:30 [INFO] [stdout] | [INFO] [stdout] 84 | elements.retain(|id, element| { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nodes` [INFO] [stdout] --> src/components/capacitor.rs:20:112 [INFO] [stdout] | [INFO] [stdout] 20 | ...: Pos2, screen_size: Vec2, nodes: &HashMap<(i32, i32), Node>) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nodes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nodes` [INFO] [stdout] --> src/components/dc_voltage_source.rs:25:112 [INFO] [stdout] | [INFO] [stdout] 25 | ...: Pos2, screen_size: Vec2, nodes: &HashMap<(i32, i32), Node>) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nodes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vector` [INFO] [stdout] --> src/components/resistor.rs:84:55 [INFO] [stdout] | [INFO] [stdout] 84 | fn stamp_matrix(&self, matrix: &mut DMatrix, vector: &mut DVector, nodes: &Vec) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_vector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `grid_step` [INFO] [stdout] --> src/components/wire.rs:22:59 [INFO] [stdout] | [INFO] [stdout] 22 | ...i::Ui, stroke: Stroke, grid_step: f32, screen_pos: Pos2, screen_size: Vec2, nodes: &HashMap<(i32, i32), Node>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_grid_step` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nodes` [INFO] [stdout] --> src/components/wire.rs:22:112 [INFO] [stdout] | [INFO] [stdout] 22 | ...: Pos2, screen_size: Vec2, nodes: &HashMap<(i32, i32), Node>) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nodes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nodes` [INFO] [stdout] --> src/components/current_source.rs:23:112 [INFO] [stdout] | [INFO] [stdout] 23 | ...: Pos2, screen_size: Vec2, nodes: &HashMap<(i32, i32), Node>) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nodes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `normal` [INFO] [stdout] --> src/components/current_source.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let normal = Vec2::new(screen_size.y, -screen_size.x) / screen_size.length(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_normal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `matrix` [INFO] [stdout] --> src/components/current_source.rs:68:28 [INFO] [stdout] | [INFO] [stdout] 68 | fn stamp_matrix(&self, matrix: &mut DMatrix, vector: &mut DVector, nodes: &Vec) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nodes` [INFO] [stdout] --> src/components/circuit_switch.rs:22:112 [INFO] [stdout] | [INFO] [stdout] 22 | ...: Pos2, screen_size: Vec2, nodes: &HashMap<(i32, i32), Node>) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nodes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nodes` [INFO] [stdout] --> src/components/ground.rs:23:112 [INFO] [stdout] | [INFO] [stdout] 23 | ...: Pos2, screen_size: Vec2, nodes: &HashMap<(i32, i32), Node>) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nodes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vector` [INFO] [stdout] --> src/components/ground.rs:68:55 [INFO] [stdout] | [INFO] [stdout] 68 | fn stamp_matrix(&self, matrix: &mut DMatrix, vector: &mut DVector, nodes: &Vec) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_vector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `matrix` [INFO] [stdout] --> src/main.rs:53:28 [INFO] [stdout] | [INFO] [stdout] 53 | fn stamp_matrix(&self, matrix: &mut DMatrix, vector: &mut DVector, nodes: &Vec) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vector` [INFO] [stdout] --> src/main.rs:53:55 [INFO] [stdout] | [INFO] [stdout] 53 | fn stamp_matrix(&self, matrix: &mut DMatrix, vector: &mut DVector, nodes: &Vec) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_vector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nodes` [INFO] [stdout] --> src/main.rs:53:82 [INFO] [stdout] | [INFO] [stdout] 53 | fn stamp_matrix(&self, matrix: &mut DMatrix, vector: &mut DVector, nodes: &Vec) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nodes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/main.rs:55:36 [INFO] [stdout] | [INFO] [stdout] 55 | fn set_voltage_node(&mut self, node: u32) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/main.rs:62:31 [INFO] [stdout] | [INFO] [stdout] 62 | fn draw_window(&mut self, ctx: &egui::Context) -> Option { None } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cc` [INFO] [stdout] --> src/main.rs:93:19 [INFO] [stdout] | [INFO] [stdout] 93 | Box::new(|cc| { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:288:21 [INFO] [stdout] | [INFO] [stdout] 288 | let mut element = self.current_element.as_deref_mut().unwrap(); [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:326:17 [INFO] [stdout] | [INFO] [stdout] 326 | let mut matrix_size = nodes.len() + voltage_nodes as usize; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input_state` [INFO] [stdout] --> src/main.rs:164:23 [INFO] [stdout] | [INFO] [stdout] 164 | ui.input(|input_state| {}); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_input_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rect` [INFO] [stdout] --> src/main.rs:199:18 [INFO] [stdout] | [INFO] [stdout] 199 | let (rect, response) = [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `normal` [INFO] [stdout] --> src/main.rs:255:25 [INFO] [stdout] | [INFO] [stdout] 255 | let normal = Vec2::new(normalized.y, -normalized.x); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_normal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `center` [INFO] [stdout] --> src/main.rs:265:21 [INFO] [stdout] | [INFO] [stdout] 265 | let center = screen_pos + screen_size / 2.0; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_center` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/main.rs:318:18 [INFO] [stdout] | [INFO] [stdout] 318 | for (id, element) in elements.iter_mut() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_admittance`, `get_id`, and `get_type` are never used [INFO] [stdout] --> src/main.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 35 | trait CircuitElement: ElementClone + std::fmt::Debug { [INFO] [stdout] | -------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 42 | fn get_admittance(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn get_id(&self) -> u32; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 46 | fn get_type(&self) -> ElementType; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/components/capacitor.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Capacitor { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Capacitor` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/components/wire.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Wire { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Wire` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/components/current_source.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct CurrentSource { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `CurrentSource` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/components/circuit_switch.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Switch { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Switch` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `voltage_node` are never read [INFO] [stdout] --> src/components/ground.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Ground { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] 13 | nodes: Vec, [INFO] [stdout] 14 | voltage_node: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ground` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 03s [INFO] running `Command { std: "docker" "inspect" "d1d6bd6217c4399db6506047c18268796c136ce761dca1205d6ae93d67262172", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d1d6bd6217c4399db6506047c18268796c136ce761dca1205d6ae93d67262172", kill_on_drop: false }` [INFO] [stdout] d1d6bd6217c4399db6506047c18268796c136ce761dca1205d6ae93d67262172 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "test" "--frozen" "--no-run" "--message-format=json" "-Zbuild-dir-new-layout", kill_on_drop: false }` [INFO] [stdout] 54f3b9cb946b2327cb658493cfe047d62dbeee97108f78c42d0063aa0eeffb42 [INFO] running `Command { std: "docker" "start" "-a" "54f3b9cb946b2327cb658493cfe047d62dbeee97108f78c42d0063aa0eeffb42", kill_on_drop: false }` [INFO] [stderr] Compiling rusty_circuit v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ElementType` [INFO] [stdout] --> src/circuit_solver.rs:2:29 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::{CircuitElement, ElementType, Node}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/components/capacitor.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{BTreeMap, HashMap}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::Values` [INFO] [stdout] --> src/components/capacitor.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::Values; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rect` [INFO] [stdout] --> src/components/capacitor.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use eframe::egui::{Pos2, Rect, Stroke, Vec2}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/components/dc_voltage_source.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{BTreeMap, HashMap}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::Values` [INFO] [stdout] --> src/components/dc_voltage_source.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::Values; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rect` [INFO] [stdout] --> src/components/dc_voltage_source.rs:4:33 [INFO] [stdout] | [INFO] [stdout] 4 | use eframe::egui::{Frame, Pos2, Rect, Stroke, Vec2}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/components/resistor.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{BTreeMap, HashMap}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::Values` [INFO] [stdout] --> src/components/resistor.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::Values; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ui` [INFO] [stdout] --> src/components/resistor.rs:4:54 [INFO] [stdout] | [INFO] [stdout] 4 | use eframe::egui::{Frame, Pos2, Rect, Shape, Stroke, Ui, Vec2}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `eframe::egui::debug_text::print` [INFO] [stdout] --> src/components/resistor.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use eframe::egui::debug_text::print; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/components/wire.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{BTreeMap, HashMap}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::Values` [INFO] [stdout] --> src/components/wire.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::Values; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rect` [INFO] [stdout] --> src/components/wire.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use eframe::egui::{Pos2, Rect, Stroke, Vec2}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `eframe::egui::accesskit::NodeClassSet` [INFO] [stdout] --> src/components/wire.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use eframe::egui::accesskit::NodeClassSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/components/current_source.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{BTreeMap, HashMap}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::Values` [INFO] [stdout] --> src/components/current_source.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::Values; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rect` [INFO] [stdout] --> src/components/current_source.rs:4:35 [INFO] [stdout] | [INFO] [stdout] 4 | use eframe::egui::{Color32, Pos2, Rect, Stroke, Vec2}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/components/circuit_switch.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{BTreeMap, HashMap}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::Values` [INFO] [stdout] --> src/components/circuit_switch.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::Values; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/components/ground.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{BTreeMap, HashMap}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::Values` [INFO] [stdout] --> src/components/ground.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::Values; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rect` [INFO] [stdout] --> src/components/ground.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use eframe::egui::{Pos2, Rect, Stroke, Vec2}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::Values` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::collections::hash_map::Values; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::num::FpCategory::Zero` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::num::FpCategory::Zero; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WindowBuilder` [INFO] [stdout] --> src/main.rs:15:20 [INFO] [stdout] | [INFO] [stdout] 15 | use eframe::{egui, WindowBuilder}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WidgetText` [INFO] [stdout] --> src/main.rs:16:53 [INFO] [stdout] | [INFO] [stdout] 16 | use eframe::egui::{FontFamily, Key, Rgba, RichText, WidgetText}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Shape` [INFO] [stdout] --> src/main.rs:18:37 [INFO] [stdout] | [INFO] [stdout] 18 | use eframe::epaint::{Color32, Pos2, Shape, Stroke}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element` [INFO] [stdout] --> src/circuit_solver.rs:84:30 [INFO] [stdout] | [INFO] [stdout] 84 | elements.retain(|id, element| { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nodes` [INFO] [stdout] --> src/components/capacitor.rs:20:112 [INFO] [stdout] | [INFO] [stdout] 20 | ...: Pos2, screen_size: Vec2, nodes: &HashMap<(i32, i32), Node>) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nodes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nodes` [INFO] [stdout] --> src/components/dc_voltage_source.rs:25:112 [INFO] [stdout] | [INFO] [stdout] 25 | ...: Pos2, screen_size: Vec2, nodes: &HashMap<(i32, i32), Node>) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nodes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vector` [INFO] [stdout] --> src/components/resistor.rs:84:55 [INFO] [stdout] | [INFO] [stdout] 84 | fn stamp_matrix(&self, matrix: &mut DMatrix, vector: &mut DVector, nodes: &Vec) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_vector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `grid_step` [INFO] [stdout] --> src/components/wire.rs:22:59 [INFO] [stdout] | [INFO] [stdout] 22 | ...i::Ui, stroke: Stroke, grid_step: f32, screen_pos: Pos2, screen_size: Vec2, nodes: &HashMap<(i32, i32), Node>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_grid_step` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nodes` [INFO] [stdout] --> src/components/wire.rs:22:112 [INFO] [stdout] | [INFO] [stdout] 22 | ...: Pos2, screen_size: Vec2, nodes: &HashMap<(i32, i32), Node>) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nodes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nodes` [INFO] [stdout] --> src/components/current_source.rs:23:112 [INFO] [stdout] | [INFO] [stdout] 23 | ...: Pos2, screen_size: Vec2, nodes: &HashMap<(i32, i32), Node>) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nodes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `normal` [INFO] [stdout] --> src/components/current_source.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let normal = Vec2::new(screen_size.y, -screen_size.x) / screen_size.length(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_normal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `matrix` [INFO] [stdout] --> src/components/current_source.rs:68:28 [INFO] [stdout] | [INFO] [stdout] 68 | fn stamp_matrix(&self, matrix: &mut DMatrix, vector: &mut DVector, nodes: &Vec) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nodes` [INFO] [stdout] --> src/components/circuit_switch.rs:22:112 [INFO] [stdout] | [INFO] [stdout] 22 | ...: Pos2, screen_size: Vec2, nodes: &HashMap<(i32, i32), Node>) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nodes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nodes` [INFO] [stdout] --> src/components/ground.rs:23:112 [INFO] [stdout] | [INFO] [stdout] 23 | ...: Pos2, screen_size: Vec2, nodes: &HashMap<(i32, i32), Node>) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nodes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vector` [INFO] [stdout] --> src/components/ground.rs:68:55 [INFO] [stdout] | [INFO] [stdout] 68 | fn stamp_matrix(&self, matrix: &mut DMatrix, vector: &mut DVector, nodes: &Vec) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_vector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `matrix` [INFO] [stdout] --> src/main.rs:53:28 [INFO] [stdout] | [INFO] [stdout] 53 | fn stamp_matrix(&self, matrix: &mut DMatrix, vector: &mut DVector, nodes: &Vec) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vector` [INFO] [stdout] --> src/main.rs:53:55 [INFO] [stdout] | [INFO] [stdout] 53 | fn stamp_matrix(&self, matrix: &mut DMatrix, vector: &mut DVector, nodes: &Vec) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_vector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nodes` [INFO] [stdout] --> src/main.rs:53:82 [INFO] [stdout] | [INFO] [stdout] 53 | fn stamp_matrix(&self, matrix: &mut DMatrix, vector: &mut DVector, nodes: &Vec) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nodes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/main.rs:55:36 [INFO] [stdout] | [INFO] [stdout] 55 | fn set_voltage_node(&mut self, node: u32) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/main.rs:62:31 [INFO] [stdout] | [INFO] [stdout] 62 | fn draw_window(&mut self, ctx: &egui::Context) -> Option { None } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cc` [INFO] [stdout] --> src/main.rs:93:19 [INFO] [stdout] | [INFO] [stdout] 93 | Box::new(|cc| { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:288:21 [INFO] [stdout] | [INFO] [stdout] 288 | let mut element = self.current_element.as_deref_mut().unwrap(); [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:326:17 [INFO] [stdout] | [INFO] [stdout] 326 | let mut matrix_size = nodes.len() + voltage_nodes as usize; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input_state` [INFO] [stdout] --> src/main.rs:164:23 [INFO] [stdout] | [INFO] [stdout] 164 | ui.input(|input_state| {}); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_input_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rect` [INFO] [stdout] --> src/main.rs:199:18 [INFO] [stdout] | [INFO] [stdout] 199 | let (rect, response) = [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `normal` [INFO] [stdout] --> src/main.rs:255:25 [INFO] [stdout] | [INFO] [stdout] 255 | let normal = Vec2::new(normalized.y, -normalized.x); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_normal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `center` [INFO] [stdout] --> src/main.rs:265:21 [INFO] [stdout] | [INFO] [stdout] 265 | let center = screen_pos + screen_size / 2.0; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_center` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/main.rs:318:18 [INFO] [stdout] | [INFO] [stdout] 318 | for (id, element) in elements.iter_mut() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_admittance`, `get_id`, and `get_type` are never used [INFO] [stdout] --> src/main.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 35 | trait CircuitElement: ElementClone + std::fmt::Debug { [INFO] [stdout] | -------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 42 | fn get_admittance(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn get_id(&self) -> u32; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 46 | fn get_type(&self) -> ElementType; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/components/capacitor.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Capacitor { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Capacitor` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/components/wire.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Wire { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Wire` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/components/current_source.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct CurrentSource { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `CurrentSource` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/components/circuit_switch.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Switch { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Switch` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `voltage_node` are never read [INFO] [stdout] --> src/components/ground.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Ground { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] 13 | nodes: Vec, [INFO] [stdout] 14 | voltage_node: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ground` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.38s [INFO] running `Command { std: "docker" "inspect" "54f3b9cb946b2327cb658493cfe047d62dbeee97108f78c42d0063aa0eeffb42", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "54f3b9cb946b2327cb658493cfe047d62dbeee97108f78c42d0063aa0eeffb42", kill_on_drop: false }` [INFO] [stdout] 54f3b9cb946b2327cb658493cfe047d62dbeee97108f78c42d0063aa0eeffb42 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "test" "--frozen" "-Zbuild-dir-new-layout", kill_on_drop: false }` [INFO] [stdout] 42143f5f5122bcac96a64b0085d0b19af0b74a0fddc24b8ade172efcc4cd598b [INFO] running `Command { std: "docker" "start" "-a" "42143f5f5122bcac96a64b0085d0b19af0b74a0fddc24b8ade172efcc4cd598b", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `ElementType` [INFO] [stderr] --> src/circuit_solver.rs:2:29 [INFO] [stderr] | [INFO] [stderr] 2 | use crate::{CircuitElement, ElementType, Node}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `BTreeMap` [INFO] [stderr] --> src/components/capacitor.rs:1:24 [INFO] [stderr] | [INFO] [stderr] 1 | use std::collections::{BTreeMap, HashMap}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::hash_map::Values` [INFO] [stderr] --> src/components/capacitor.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::collections::hash_map::Values; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Rect` [INFO] [stderr] --> src/components/capacitor.rs:4:26 [INFO] [stderr] | [INFO] [stderr] 4 | use eframe::egui::{Pos2, Rect, Stroke, Vec2}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `BTreeMap` [INFO] [stderr] --> src/components/dc_voltage_source.rs:1:24 [INFO] [stderr] | [INFO] [stderr] 1 | use std::collections::{BTreeMap, HashMap}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::hash_map::Values` [INFO] [stderr] --> src/components/dc_voltage_source.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::collections::hash_map::Values; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Rect` [INFO] [stderr] --> src/components/dc_voltage_source.rs:4:33 [INFO] [stderr] | [INFO] [stderr] 4 | use eframe::egui::{Frame, Pos2, Rect, Stroke, Vec2}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `BTreeMap` [INFO] [stderr] --> src/components/resistor.rs:1:24 [INFO] [stderr] | [INFO] [stderr] 1 | use std::collections::{BTreeMap, HashMap}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::hash_map::Values` [INFO] [stderr] --> src/components/resistor.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::collections::hash_map::Values; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Ui` [INFO] [stderr] --> src/components/resistor.rs:4:54 [INFO] [stderr] | [INFO] [stderr] 4 | use eframe::egui::{Frame, Pos2, Rect, Shape, Stroke, Ui, Vec2}; [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `eframe::egui::debug_text::print` [INFO] [stderr] --> src/components/resistor.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use eframe::egui::debug_text::print; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `BTreeMap` [INFO] [stderr] --> src/components/wire.rs:1:24 [INFO] [stderr] | [INFO] [stderr] 1 | use std::collections::{BTreeMap, HashMap}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::hash_map::Values` [INFO] [stderr] --> src/components/wire.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::collections::hash_map::Values; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Rect` [INFO] [stderr] --> src/components/wire.rs:4:26 [INFO] [stderr] | [INFO] [stderr] 4 | use eframe::egui::{Pos2, Rect, Stroke, Vec2}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `eframe::egui::accesskit::NodeClassSet` [INFO] [stderr] --> src/components/wire.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use eframe::egui::accesskit::NodeClassSet; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `BTreeMap` [INFO] [stderr] --> src/components/current_source.rs:1:24 [INFO] [stderr] | [INFO] [stderr] 1 | use std::collections::{BTreeMap, HashMap}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::hash_map::Values` [INFO] [stderr] --> src/components/current_source.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::collections::hash_map::Values; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Rect` [INFO] [stderr] --> src/components/current_source.rs:4:35 [INFO] [stderr] | [INFO] [stderr] 4 | use eframe::egui::{Color32, Pos2, Rect, Stroke, Vec2}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `BTreeMap` [INFO] [stderr] --> src/components/circuit_switch.rs:1:24 [INFO] [stderr] | [INFO] [stderr] 1 | use std::collections::{BTreeMap, HashMap}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::hash_map::Values` [INFO] [stderr] --> src/components/circuit_switch.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::collections::hash_map::Values; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `BTreeMap` [INFO] [stderr] --> src/components/ground.rs:1:24 [INFO] [stderr] | [INFO] [stderr] 1 | use std::collections::{BTreeMap, HashMap}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::hash_map::Values` [INFO] [stderr] --> src/components/ground.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::collections::hash_map::Values; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Rect` [INFO] [stderr] --> src/components/ground.rs:4:26 [INFO] [stderr] | [INFO] [stderr] 4 | use eframe::egui::{Pos2, Rect, Stroke, Vec2}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::hash_map::Values` [INFO] [stderr] --> src/main.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use std::collections::hash_map::Values; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::num::FpCategory::Zero` [INFO] [stderr] --> src/main.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | use std::num::FpCategory::Zero; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::ops::Add` [INFO] [stderr] --> src/main.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | use std::ops::Add; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `WindowBuilder` [INFO] [stderr] --> src/main.rs:15:20 [INFO] [stderr] | [INFO] [stderr] 15 | use eframe::{egui, WindowBuilder}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `WidgetText` [INFO] [stderr] --> src/main.rs:16:53 [INFO] [stderr] | [INFO] [stderr] 16 | use eframe::egui::{FontFamily, Key, Rgba, RichText, WidgetText}; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Shape` [INFO] [stderr] --> src/main.rs:18:37 [INFO] [stderr] | [INFO] [stderr] 18 | use eframe::epaint::{Color32, Pos2, Shape, Stroke}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `element` [INFO] [stderr] --> src/circuit_solver.rs:84:30 [INFO] [stderr] | [INFO] [stderr] 84 | elements.retain(|id, element| { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `nodes` [INFO] [stderr] --> src/components/capacitor.rs:20:112 [INFO] [stderr] | [INFO] [stderr] 20 | ...: Pos2, screen_size: Vec2, nodes: &HashMap<(i32, i32), Node>) { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nodes` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `nodes` [INFO] [stderr] --> src/components/dc_voltage_source.rs:25:112 [INFO] [stderr] | [INFO] [stderr] 25 | ...: Pos2, screen_size: Vec2, nodes: &HashMap<(i32, i32), Node>) { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nodes` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `vector` [INFO] [stderr] --> src/components/resistor.rs:84:55 [INFO] [stderr] | [INFO] [stderr] 84 | fn stamp_matrix(&self, matrix: &mut DMatrix, vector: &mut DVector, nodes: &Vec) { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_vector` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `grid_step` [INFO] [stderr] --> src/components/wire.rs:22:59 [INFO] [stderr] | [INFO] [stderr] 22 | ...i::Ui, stroke: Stroke, grid_step: f32, screen_pos: Pos2, screen_size: Vec2, nodes: &HashMap<(i32, i32), Node>) { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_grid_step` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `nodes` [INFO] [stderr] --> src/components/wire.rs:22:112 [INFO] [stderr] | [INFO] [stderr] 22 | ...: Pos2, screen_size: Vec2, nodes: &HashMap<(i32, i32), Node>) { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nodes` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `nodes` [INFO] [stderr] --> src/components/current_source.rs:23:112 [INFO] [stderr] | [INFO] [stderr] 23 | ...: Pos2, screen_size: Vec2, nodes: &HashMap<(i32, i32), Node>) { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nodes` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `normal` [INFO] [stderr] --> src/components/current_source.rs:27:13 [INFO] [stderr] | [INFO] [stderr] 27 | let normal = Vec2::new(screen_size.y, -screen_size.x) / screen_size.length(); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_normal` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `matrix` [INFO] [stderr] --> src/components/current_source.rs:68:28 [INFO] [stderr] | [INFO] [stderr] 68 | fn stamp_matrix(&self, matrix: &mut DMatrix, vector: &mut DVector, nodes: &Vec) { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_matrix` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `nodes` [INFO] [stderr] --> src/components/circuit_switch.rs:22:112 [INFO] [stderr] | [INFO] [stderr] 22 | ...: Pos2, screen_size: Vec2, nodes: &HashMap<(i32, i32), Node>) { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nodes` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `nodes` [INFO] [stderr] --> src/components/ground.rs:23:112 [INFO] [stderr] | [INFO] [stderr] 23 | ...: Pos2, screen_size: Vec2, nodes: &HashMap<(i32, i32), Node>) { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nodes` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `vector` [INFO] [stderr] --> src/components/ground.rs:68:55 [INFO] [stderr] | [INFO] [stderr] 68 | fn stamp_matrix(&self, matrix: &mut DMatrix, vector: &mut DVector, nodes: &Vec) { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_vector` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `matrix` [INFO] [stderr] --> src/main.rs:53:28 [INFO] [stderr] | [INFO] [stderr] 53 | fn stamp_matrix(&self, matrix: &mut DMatrix, vector: &mut DVector, nodes: &Vec) {} [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_matrix` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `vector` [INFO] [stderr] --> src/main.rs:53:55 [INFO] [stderr] | [INFO] [stderr] 53 | fn stamp_matrix(&self, matrix: &mut DMatrix, vector: &mut DVector, nodes: &Vec) {} [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_vector` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `nodes` [INFO] [stderr] --> src/main.rs:53:82 [INFO] [stderr] | [INFO] [stderr] 53 | fn stamp_matrix(&self, matrix: &mut DMatrix, vector: &mut DVector, nodes: &Vec) {} [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nodes` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `node` [INFO] [stderr] --> src/main.rs:55:36 [INFO] [stderr] | [INFO] [stderr] 55 | fn set_voltage_node(&mut self, node: u32) {} [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/main.rs:62:31 [INFO] [stderr] | [INFO] [stderr] 62 | fn draw_window(&mut self, ctx: &egui::Context) -> Option { None } [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cc` [INFO] [stderr] --> src/main.rs:93:19 [INFO] [stderr] | [INFO] [stderr] 93 | Box::new(|cc| { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_cc` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:288:21 [INFO] [stderr] | [INFO] [stderr] 288 | let mut element = self.current_element.as_deref_mut().unwrap(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:326:17 [INFO] [stderr] | [INFO] [stderr] 326 | let mut matrix_size = nodes.len() + voltage_nodes as usize; [INFO] [stderr] | ----^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `input_state` [INFO] [stderr] --> src/main.rs:164:23 [INFO] [stderr] | [INFO] [stderr] 164 | ui.input(|input_state| {}); [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_input_state` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rect` [INFO] [stderr] --> src/main.rs:199:18 [INFO] [stderr] | [INFO] [stderr] 199 | let (rect, response) = [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rect` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `normal` [INFO] [stderr] --> src/main.rs:255:25 [INFO] [stderr] | [INFO] [stderr] 255 | let normal = Vec2::new(normalized.y, -normalized.x); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_normal` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `center` [INFO] [stderr] --> src/main.rs:265:21 [INFO] [stderr] | [INFO] [stderr] 265 | let center = screen_pos + screen_size / 2.0; [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_center` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `id` [INFO] [stderr] --> src/main.rs:318:18 [INFO] [stderr] | [INFO] [stderr] 318 | for (id, element) in elements.iter_mut() { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stderr] [INFO] [stderr] warning: methods `get_admittance`, `get_id`, and `get_type` are never used [INFO] [stderr] --> src/main.rs:42:8 [INFO] [stderr] | [INFO] [stderr] 35 | trait CircuitElement: ElementClone + std::fmt::Debug { [INFO] [stderr] | -------------- methods in this trait [INFO] [stderr] ... [INFO] [stderr] 42 | fn get_admittance(&self) -> f64 { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 45 | fn get_id(&self) -> u32; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 46 | fn get_type(&self) -> ElementType; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `id` is never read [INFO] [stderr] --> src/components/capacitor.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 9 | pub struct Capacitor { [INFO] [stderr] | --------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 12 | id: u32, [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] = note: `Capacitor` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `id` is never read [INFO] [stderr] --> src/components/wire.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 10 | pub struct Wire { [INFO] [stderr] | ---- field in this struct [INFO] [stderr] ... [INFO] [stderr] 13 | id: u32, [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] = note: `Wire` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `id` is never read [INFO] [stderr] --> src/components/current_source.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 9 | pub struct CurrentSource { [INFO] [stderr] | ------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 12 | id: u32, [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] = note: `CurrentSource` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `id` is never read [INFO] [stderr] --> src/components/circuit_switch.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 9 | pub struct Switch { [INFO] [stderr] | ------ field in this struct [INFO] [stderr] ... [INFO] [stderr] 12 | id: u32, [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] = note: `Switch` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `id` and `voltage_node` are never read [INFO] [stderr] --> src/components/ground.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 9 | pub struct Ground { [INFO] [stderr] | ------ fields in this struct [INFO] [stderr] ... [INFO] [stderr] 12 | id: u32, [INFO] [stderr] | ^^ [INFO] [stderr] 13 | nodes: Vec, [INFO] [stderr] 14 | voltage_node: u32, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Ground` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: `rusty_circuit` (bin "rusty_circuit" test) generated 60 warnings (run `cargo fix --bin "rusty_circuit" -p rusty_circuit --tests` to apply 54 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.35s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/build/rusty_circuit/35293755d29dd931/deps/rusty_circuit-35293755d29dd931) [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" "42143f5f5122bcac96a64b0085d0b19af0b74a0fddc24b8ade172efcc4cd598b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "42143f5f5122bcac96a64b0085d0b19af0b74a0fddc24b8ade172efcc4cd598b", kill_on_drop: false }` [INFO] [stdout] 42143f5f5122bcac96a64b0085d0b19af0b74a0fddc24b8ade172efcc4cd598b