[INFO] fetching crate cosmol_viewer_core 0.1.4... [INFO] checking cosmol_viewer_core-0.1.4 against master#c8551d3c63c51f290cf1dc9dc4714249ea849fd1 for pr-148946 [INFO] extracting crate cosmol_viewer_core 0.1.4 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate cosmol_viewer_core 0.1.4 [INFO] finished tweaking crates.io crate cosmol_viewer_core 0.1.4 [INFO] tweaked toml for crates.io crate cosmol_viewer_core 0.1.4 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate cosmol_viewer_core 0.1.4 on toolchain c8551d3c63c51f290cf1dc9dc4714249ea849fd1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c8551d3c63c51f290cf1dc9dc4714249ea849fd1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate cosmol_viewer_core 0.1.4 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" "+c8551d3c63c51f290cf1dc9dc4714249ea849fd1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded emath v0.33.0 [INFO] [stderr] Downloaded atspi-connection v0.9.0 [INFO] [stderr] Downloaded zbus-lockstep v0.5.1 [INFO] [stderr] Downloaded zbus_xml v5.0.2 [INFO] [stderr] Downloaded atspi-proxies v0.9.0 [INFO] [stderr] Downloaded zbus-lockstep-macros v0.5.1 [INFO] [stderr] Downloaded avif-serialize v0.8.5 [INFO] [stderr] Downloaded accesskit_unix v0.17.1 [INFO] [stderr] Downloaded egui-winit v0.33.0 [INFO] [stderr] Downloaded egui_glow v0.33.0 [INFO] [stderr] Downloaded mime_guess2 v2.3.1 [INFO] [stderr] Downloaded atspi-common v0.9.0 [INFO] [stderr] Downloaded eframe v0.33.0 [INFO] [stderr] Downloaded egui v0.33.0 [INFO] [stderr] Downloaded zune-jpeg v0.4.19 [INFO] [stderr] Downloaded atspi v0.25.0 [INFO] [stderr] Downloaded naga v27.0.3 [INFO] [stderr] Downloaded ecolor v0.33.0 [INFO] [stderr] Downloaded epaint v0.33.0 [INFO] [stderr] Downloaded epaint_default_fonts v0.33.0 [INFO] [stderr] Downloaded egui-wgpu v0.33.0 [INFO] [stderr] Downloaded egui_extras v0.33.0 [INFO] [stderr] Downloaded wgpu-core v27.0.3 [INFO] [stderr] Downloaded wgpu-hal v27.0.3 [INFO] [stderr] Downloaded accesskit_atspi_common v0.14.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c8551d3c63c51f290cf1dc9dc4714249ea849fd1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 651c778bb7ee3fbde6d5601201a0b38ef48efd95047605b07a16c5ea6451e407 [INFO] running `Command { std: "docker" "start" "-a" "651c778bb7ee3fbde6d5601201a0b38ef48efd95047605b07a16c5ea6451e407", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "651c778bb7ee3fbde6d5601201a0b38ef48efd95047605b07a16c5ea6451e407", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "651c778bb7ee3fbde6d5601201a0b38ef48efd95047605b07a16c5ea6451e407", kill_on_drop: false }` [INFO] [stdout] 651c778bb7ee3fbde6d5601201a0b38ef48efd95047605b07a16c5ea6451e407 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c8551d3c63c51f290cf1dc9dc4714249ea849fd1" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 15f1a962a6c9a7c3d3e087a6178da6417a28e85dde812a1c4b0943db5b2f40b1 [INFO] running `Command { std: "docker" "start" "-a" "15f1a962a6c9a7c3d3e087a6178da6417a28e85dde812a1c4b0943db5b2f40b1", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Checking libloading v0.8.8 [INFO] [stderr] Checking linux-raw-sys v0.9.4 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Checking linux-raw-sys v0.4.15 [INFO] [stderr] Compiling wayland-sys v0.31.6 [INFO] [stderr] Checking event-listener v5.4.0 [INFO] [stderr] Compiling wayland-backend v0.3.10 [INFO] [stderr] Checking futures-lite v2.6.0 [INFO] [stderr] Compiling quick-xml v0.37.5 [INFO] [stderr] Checking winnow v0.7.12 [INFO] [stderr] Compiling wayland-client v0.31.10 [INFO] [stderr] Checking owned_ttf_parser v0.25.0 [INFO] [stderr] Checking ab_glyph_rasterizer v0.1.9 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.104 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Checking hashbrown v0.15.4 [INFO] [stderr] Checking maybe-rayon v0.1.1 [INFO] [stderr] Checking ab_glyph v0.2.32 [INFO] [stderr] Checking dlib v0.5.2 [INFO] [stderr] Checking flate2 v1.1.2 [INFO] [stderr] Checking event-listener-strategy v0.5.4 [INFO] [stderr] Compiling winit v0.30.12 [INFO] [stderr] Checking async-lock v3.4.0 [INFO] [stderr] Checking async-channel v2.5.0 [INFO] [stderr] Checking async-broadcast v0.7.2 [INFO] [stderr] Checking half v2.6.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking syn v2.0.104 [INFO] [stderr] Checking epaint_default_fonts v0.33.0 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Checking zune-jpeg v0.4.19 [INFO] [stderr] Checking async-executor v1.13.2 [INFO] [stderr] Checking blocking v1.6.2 [INFO] [stderr] Compiling glutin_glx_sys v0.6.1 [INFO] [stderr] Compiling glutin_egl_sys v0.7.1 [INFO] [stderr] Checking accesskit_consumer v0.30.1 [INFO] [stderr] Checking xkbcommon-dl v0.4.2 [INFO] [stderr] Compiling wayland-scanner v0.31.6 [INFO] [stderr] Compiling simd_helpers v0.1.0 [INFO] [stderr] Checking avif-serialize v0.8.5 [INFO] [stderr] Checking pxfm v0.1.24 [INFO] [stderr] Checking image-webp v0.2.3 [INFO] [stderr] Checking exr v1.73.0 [INFO] [stderr] Checking png v0.18.0 [INFO] [stderr] Compiling wasm-bindgen v0.2.104 [INFO] [stderr] Compiling phf v0.11.3 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Compiling glutin v0.32.3 [INFO] [stderr] Compiling glutin-winit v0.5.0 [INFO] [stderr] Compiling mime_guess2 v2.3.1 [INFO] [stderr] Checking glow v0.16.0 [INFO] [stderr] Compiling document-features v0.2.11 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Checking nix v0.30.1 [INFO] [stderr] Checking memmap2 v0.9.7 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking x11-dl v2.21.0 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking glam v0.30.8 [INFO] [stderr] Checking serde_json v1.0.145 [INFO] [stderr] Checking moxcms v0.7.5 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.104 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling enumflags2_derive v0.7.12 [INFO] [stderr] Compiling bytemuck_derive v1.10.2 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling profiling-procmacros v1.0.17 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Checking profiling v1.0.17 [INFO] [stderr] Compiling serde_repr v0.1.20 [INFO] [stderr] Compiling equator-macro v0.4.2 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling arg_enum_proc_macro v0.3.4 [INFO] [stderr] Checking x11rb v0.13.1 [INFO] [stderr] Compiling fax_derive v0.2.0 [INFO] [stderr] Checking equator v0.4.2 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Checking bytemuck v1.24.0 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.104 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking aligned-vec v0.6.4 [INFO] [stderr] Checking wayland-csd-frame v0.3.0 [INFO] [stderr] Compiling enum-map-derive v0.17.0 [INFO] [stderr] Checking tiny-skia-path v0.11.4 [INFO] [stderr] Checking polling v3.8.0 [INFO] [stderr] Checking v_frame v0.3.9 [INFO] [stderr] Checking emath v0.33.0 [INFO] [stderr] Checking fax v0.2.6 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking qoi v0.4.1 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking av1-grain v0.2.4 [INFO] [stderr] Checking async-io v2.4.1 [INFO] [stderr] Checking calloop v0.13.0 [INFO] [stderr] Checking ecolor v0.33.0 [INFO] [stderr] Checking enum-map v2.7.3 [INFO] [stderr] Checking tiff v0.10.3 [INFO] [stderr] Checking zerovec v0.11.2 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking epaint v0.33.0 [INFO] [stderr] Checking rav1e v0.7.1 [INFO] [stderr] Checking tiny-skia v0.11.4 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking async-signal v0.2.11 [INFO] [stderr] Checking async-process v2.3.1 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.104 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Checking egui v0.33.0 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking wayland-protocols v0.32.8 [INFO] [stderr] Checking calloop-wayland-source v0.3.0 [INFO] [stderr] Checking wayland-cursor v0.31.10 [INFO] [stderr] Checking enumflags2 v0.7.12 [INFO] [stderr] Checking zvariant_utils v3.2.0 [INFO] [stderr] Checking quick-xml v0.36.2 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking js-sys v0.3.81 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Compiling zvariant_derive v5.6.0 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Compiling zvariant v5.6.0 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking webbrowser v1.0.5 [INFO] [stderr] Checking wasm-bindgen-futures v0.4.54 [INFO] [stderr] Checking egui_glow v0.33.0 [INFO] [stderr] Checking egui_extras v0.33.0 [INFO] [stderr] Checking zbus_names v4.2.0 [INFO] [stderr] Checking ravif v0.11.20 [INFO] [stderr] Checking zbus_xml v5.0.2 [INFO] [stderr] Checking image v0.25.8 [INFO] [stderr] Checking wayland-protocols-wlr v0.3.8 [INFO] [stderr] Checking wayland-protocols-plasma v0.3.8 [INFO] [stderr] Checking zbus-lockstep v0.5.1 [INFO] [stderr] Compiling zbus_macros v5.9.0 [INFO] [stderr] Compiling zbus-lockstep-macros v0.5.1 [INFO] [stderr] Checking smithay-client-toolkit v0.19.2 [INFO] [stderr] Checking sctk-adwaita v0.10.1 [INFO] [stderr] Checking smithay-clipboard v0.7.2 [INFO] [stderr] Checking zbus v5.9.0 [INFO] [stderr] Checking arboard v3.6.1 [INFO] [stderr] Checking atspi-common v0.9.0 [INFO] [stderr] Checking atspi-proxies v0.9.0 [INFO] [stderr] Checking accesskit_atspi_common v0.14.1 [INFO] [stderr] Checking atspi-connection v0.9.0 [INFO] [stderr] Checking atspi v0.25.0 [INFO] [stderr] Checking accesskit_unix v0.17.1 [INFO] [stderr] Checking accesskit_winit v0.29.1 [INFO] [stderr] Checking egui-winit v0.33.0 [INFO] [stderr] Checking eframe v0.33.0 [INFO] [stderr] Checking cosmol_viewer_core v0.1.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Instance` and `SphereInstance` [INFO] [stdout] --> src/utils.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | scene::{Instance, InstanceGroups, Scene, SphereInstance}, [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 imports: `Instance` and `SphereInstance` [INFO] [stdout] --> src/utils.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | scene::{Instance, InstanceGroups, Scene, SphereInstance}, [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: `Frame` [INFO] [stdout] --> src/lib.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | Frame, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `InstanceGroups`, `Instance`, `IntoInstanceGroups`, and `Scene` [INFO] [stdout] --> src/shapes/sphere.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | scene::{Instance, InstanceGroups, Scene, SphereInstance}, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] 6 | utils::{Interaction, Interpolatable, IntoInstanceGroups, MeshData, VisualShape, VisualStyle}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Frame` [INFO] [stdout] --> src/lib.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | Frame, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SphereInstance` [INFO] [stdout] --> src/shapes/molecules.rs:7:29 [INFO] [stdout] | [INFO] [stdout] 7 | scene::{InstanceGroups, SphereInstance}, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `InstanceData` and `ShapeKind` [INFO] [stdout] --> src/scene.rs:6:40 [INFO] [stdout] | [INFO] [stdout] 6 | shader::CameraState, utils::{self, InstanceData, Interpolatable, IntoInstanceGroups, ShapeKind, ToMesh}, Shape [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `InstanceGroups`, `Instance`, `IntoInstanceGroups`, and `Scene` [INFO] [stdout] --> src/shapes/sphere.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | scene::{Instance, InstanceGroups, Scene, SphereInstance}, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] 6 | utils::{Interaction, Interpolatable, IntoInstanceGroups, MeshData, VisualShape, VisualStyle}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SphereInstance` [INFO] [stdout] --> src/shapes/molecules.rs:7:29 [INFO] [stdout] | [INFO] [stdout] 7 | scene::{InstanceGroups, SphereInstance}, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `InstanceData` and `ShapeKind` [INFO] [stdout] --> src/scene.rs:6:40 [INFO] [stdout] | [INFO] [stdout] 6 | shader::CameraState, utils::{self, InstanceData, Interpolatable, IntoInstanceGroups, ShapeKind, ToMesh}, Shape [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/shapes/molecules.rs:233:9 [INFO] [stdout] | [INFO] [stdout] 231 | return MeshData::default(); [INFO] [stdout] | -------------------------- any code following this expression is unreachable [INFO] [stdout] 232 | [INFO] [stdout] 233 | let mut vertices = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/shapes/molecules.rs:233:9 [INFO] [stdout] | [INFO] [stdout] 231 | return MeshData::default(); [INFO] [stdout] | -------------------------- any code following this expression is unreachable [INFO] [stdout] 232 | [INFO] [stdout] 233 | let mut vertices = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scale` [INFO] [stdout] --> src/shapes/sphere.rs:80:27 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn to_mesh(&self, scale: f32) -> MeshData { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scale` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scale` [INFO] [stdout] --> src/shapes/molecules.rs:230:27 [INFO] [stdout] | [INFO] [stdout] 230 | pub fn to_mesh(&self, scale: f32) -> MeshData { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scale` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vertices` [INFO] [stdout] --> src/shapes/molecules.rs:233:13 [INFO] [stdout] | [INFO] [stdout] 233 | let mut vertices = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vertices` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `normals` [INFO] [stdout] --> src/shapes/molecules.rs:234:13 [INFO] [stdout] | [INFO] [stdout] 234 | let mut normals = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_normals` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `indices` [INFO] [stdout] --> src/shapes/molecules.rs:235:13 [INFO] [stdout] | [INFO] [stdout] 235 | let mut indices = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_indices` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `colors` [INFO] [stdout] --> src/shapes/molecules.rs:236:13 [INFO] [stdout] | [INFO] [stdout] 236 | let mut colors = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index_offset` [INFO] [stdout] --> src/shapes/molecules.rs:238:13 [INFO] [stdout] | [INFO] [stdout] 238 | let mut index_offset = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_index_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/shapes/molecules.rs:241:14 [INFO] [stdout] | [INFO] [stdout] 241 | for (i, pos) in self.atoms.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/shapes/molecules.rs:241:17 [INFO] [stdout] | [INFO] [stdout] 241 | for (i, pos) in self.atoms.iter().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `radius` [INFO] [stdout] --> src/shapes/molecules.rs:242:17 [INFO] [stdout] | [INFO] [stdout] 242 | let radius = self [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_radius` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/shapes/molecules.rs:248:17 [INFO] [stdout] | [INFO] [stdout] 248 | let color = self [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sphere` [INFO] [stdout] --> src/shapes/molecules.rs:253:17 [INFO] [stdout] | [INFO] [stdout] 253 | let mut sphere = Sphere::new(*pos, radius); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sphere` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mesh` [INFO] [stdout] --> src/shapes/molecules.rs:257:17 [INFO] [stdout] | [INFO] [stdout] 257 | let mesh = sphere.to_mesh(1.0); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mesh` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/shapes/molecules.rs:260:17 [INFO] [stdout] | [INFO] [stdout] 260 | for v in mesh.vertices { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/shapes/molecules.rs:263:17 [INFO] [stdout] | [INFO] [stdout] 263 | for n in mesh.normals { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scale` [INFO] [stdout] --> src/shapes/sphere.rs:80:27 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn to_mesh(&self, scale: f32) -> MeshData { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scale` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/shapes/molecules.rs:266:17 [INFO] [stdout] | [INFO] [stdout] 266 | for c in mesh.colors.unwrap() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/shapes/molecules.rs:269:17 [INFO] [stdout] | [INFO] [stdout] 269 | for idx in mesh.indices { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bond` [INFO] [stdout] --> src/shapes/molecules.rs:277:18 [INFO] [stdout] | [INFO] [stdout] 277 | for (_i, bond) in self.bonds.iter().enumerate() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bond` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bond` [INFO] [stdout] --> src/shapes/molecules.rs:278:22 [INFO] [stdout] | [INFO] [stdout] 278 | for (_i, bond) in self.bonds.iter().enumerate() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bond` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/shapes/molecules.rs:279:22 [INFO] [stdout] | [INFO] [stdout] 279 | let [a, b] = *bond; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/shapes/molecules.rs:279:25 [INFO] [stdout] | [INFO] [stdout] 279 | let [a, b] = *bond; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos_a` [INFO] [stdout] --> src/shapes/molecules.rs:280:21 [INFO] [stdout] | [INFO] [stdout] 280 | let pos_a = self.atoms[a as usize]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pos_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos_b` [INFO] [stdout] --> src/shapes/molecules.rs:281:21 [INFO] [stdout] | [INFO] [stdout] 281 | let pos_b = self.atoms[b as usize]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pos_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color_a` [INFO] [stdout] --> src/shapes/molecules.rs:284:21 [INFO] [stdout] | [INFO] [stdout] 284 | let color_a = match self [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_color_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/shapes/molecules.rs:290:21 [INFO] [stdout] | [INFO] [stdout] 290 | other => other.color(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color_b` [INFO] [stdout] --> src/shapes/molecules.rs:293:21 [INFO] [stdout] | [INFO] [stdout] 293 | let color_b = match self [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_color_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/shapes/molecules.rs:299:21 [INFO] [stdout] | [INFO] [stdout] 299 | other => other.color(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mid` [INFO] [stdout] --> src/shapes/molecules.rs:303:21 [INFO] [stdout] | [INFO] [stdout] 303 | let mid = [ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_mid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stick_a` [INFO] [stdout] --> src/shapes/molecules.rs:310:21 [INFO] [stdout] | [INFO] [stdout] 310 | let stick_a = Stick::new(pos_a, mid, 0.15) [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stick_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mesh_a` [INFO] [stdout] --> src/shapes/molecules.rs:313:21 [INFO] [stdout] | [INFO] [stdout] 313 | let mesh_a = stick_a.to_mesh(1.0); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_mesh_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/shapes/molecules.rs:314:21 [INFO] [stdout] | [INFO] [stdout] 314 | for v in mesh_a.vertices { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/shapes/molecules.rs:317:21 [INFO] [stdout] | [INFO] [stdout] 317 | for n in mesh_a.normals { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/shapes/molecules.rs:320:21 [INFO] [stdout] | [INFO] [stdout] 320 | for c in mesh_a.colors.unwrap() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/shapes/molecules.rs:323:21 [INFO] [stdout] | [INFO] [stdout] 323 | for idx in mesh_a.indices { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stick_b` [INFO] [stdout] --> src/shapes/molecules.rs:329:21 [INFO] [stdout] | [INFO] [stdout] 329 | let stick_b = Stick::new(pos_b, mid, 0.15) [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stick_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mesh_b` [INFO] [stdout] --> src/shapes/molecules.rs:332:21 [INFO] [stdout] | [INFO] [stdout] 332 | let mesh_b = stick_b.to_mesh(1.0); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_mesh_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/shapes/molecules.rs:333:21 [INFO] [stdout] | [INFO] [stdout] 333 | for v in mesh_b.vertices { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/shapes/molecules.rs:336:21 [INFO] [stdout] | [INFO] [stdout] 336 | for n in mesh_b.normals { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/shapes/molecules.rs:339:21 [INFO] [stdout] | [INFO] [stdout] 339 | for c in mesh_b.colors.unwrap() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/shapes/molecules.rs:342:21 [INFO] [stdout] | [INFO] [stdout] 342 | for idx in mesh_b.indices { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/shapes/molecules.rs:403:18 [INFO] [stdout] | [INFO] [stdout] 403 | for (j, other_bond) in self.bonds.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/shapes/molecules.rs:426:22 [INFO] [stdout] | [INFO] [stdout] 426 | for (j, other_bond) in self.bonds.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event_loop_builder` [INFO] [stdout] --> src/lib.rs:172:32 [INFO] [stdout] | [INFO] [stdout] 172 | Some(Box::new(|event_loop_builder| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_event_loop_builder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event_loop_builder` [INFO] [stdout] --> src/lib.rs:291:32 [INFO] [stdout] | [INFO] [stdout] 291 | Some(Box::new(|event_loop_builder| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_event_loop_builder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `gl` is never read [INFO] [stdout] --> src/lib.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct App { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 35 | canvas: Canvas, [INFO] [stdout] 36 | gl: Option>, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `UpdateStick` is never used [INFO] [stdout] --> src/shapes/stick.rs:201:11 [INFO] [stdout] | [INFO] [stdout] 201 | pub trait UpdateStick { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scale` [INFO] [stdout] --> src/shapes/molecules.rs:230:27 [INFO] [stdout] | [INFO] [stdout] 230 | pub fn to_mesh(&self, scale: f32) -> MeshData { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scale` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vertices` [INFO] [stdout] --> src/shapes/molecules.rs:233:13 [INFO] [stdout] | [INFO] [stdout] 233 | let mut vertices = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vertices` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `normals` [INFO] [stdout] --> src/shapes/molecules.rs:234:13 [INFO] [stdout] | [INFO] [stdout] 234 | let mut normals = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_normals` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `indices` [INFO] [stdout] --> src/shapes/molecules.rs:235:13 [INFO] [stdout] | [INFO] [stdout] 235 | let mut indices = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_indices` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `colors` [INFO] [stdout] --> src/shapes/molecules.rs:236:13 [INFO] [stdout] | [INFO] [stdout] 236 | let mut colors = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index_offset` [INFO] [stdout] --> src/shapes/molecules.rs:238:13 [INFO] [stdout] | [INFO] [stdout] 238 | let mut index_offset = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_index_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/shapes/molecules.rs:241:14 [INFO] [stdout] | [INFO] [stdout] 241 | for (i, pos) in self.atoms.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/shapes/molecules.rs:241:17 [INFO] [stdout] | [INFO] [stdout] 241 | for (i, pos) in self.atoms.iter().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `radius` [INFO] [stdout] --> src/shapes/molecules.rs:242:17 [INFO] [stdout] | [INFO] [stdout] 242 | let radius = self [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_radius` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/shapes/molecules.rs:248:17 [INFO] [stdout] | [INFO] [stdout] 248 | let color = self [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sphere` [INFO] [stdout] --> src/shapes/molecules.rs:253:17 [INFO] [stdout] | [INFO] [stdout] 253 | let mut sphere = Sphere::new(*pos, radius); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sphere` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mesh` [INFO] [stdout] --> src/shapes/molecules.rs:257:17 [INFO] [stdout] | [INFO] [stdout] 257 | let mesh = sphere.to_mesh(1.0); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mesh` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/shapes/molecules.rs:260:17 [INFO] [stdout] | [INFO] [stdout] 260 | for v in mesh.vertices { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/shapes/molecules.rs:263:17 [INFO] [stdout] | [INFO] [stdout] 263 | for n in mesh.normals { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/shapes/molecules.rs:266:17 [INFO] [stdout] | [INFO] [stdout] 266 | for c in mesh.colors.unwrap() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/shapes/molecules.rs:269:17 [INFO] [stdout] | [INFO] [stdout] 269 | for idx in mesh.indices { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bond` [INFO] [stdout] --> src/shapes/molecules.rs:277:18 [INFO] [stdout] | [INFO] [stdout] 277 | for (_i, bond) in self.bonds.iter().enumerate() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bond` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bond` [INFO] [stdout] --> src/shapes/molecules.rs:278:22 [INFO] [stdout] | [INFO] [stdout] 278 | for (_i, bond) in self.bonds.iter().enumerate() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bond` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/shapes/molecules.rs:279:22 [INFO] [stdout] | [INFO] [stdout] 279 | let [a, b] = *bond; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/shapes/molecules.rs:279:25 [INFO] [stdout] | [INFO] [stdout] 279 | let [a, b] = *bond; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos_a` [INFO] [stdout] --> src/shapes/molecules.rs:280:21 [INFO] [stdout] | [INFO] [stdout] 280 | let pos_a = self.atoms[a as usize]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pos_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos_b` [INFO] [stdout] --> src/shapes/molecules.rs:281:21 [INFO] [stdout] | [INFO] [stdout] 281 | let pos_b = self.atoms[b as usize]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pos_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color_a` [INFO] [stdout] --> src/shapes/molecules.rs:284:21 [INFO] [stdout] | [INFO] [stdout] 284 | let color_a = match self [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_color_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/shapes/molecules.rs:290:21 [INFO] [stdout] | [INFO] [stdout] 290 | other => other.color(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color_b` [INFO] [stdout] --> src/shapes/molecules.rs:293:21 [INFO] [stdout] | [INFO] [stdout] 293 | let color_b = match self [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_color_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/shapes/molecules.rs:299:21 [INFO] [stdout] | [INFO] [stdout] 299 | other => other.color(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mid` [INFO] [stdout] --> src/shapes/molecules.rs:303:21 [INFO] [stdout] | [INFO] [stdout] 303 | let mid = [ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_mid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stick_a` [INFO] [stdout] --> src/shapes/molecules.rs:310:21 [INFO] [stdout] | [INFO] [stdout] 310 | let stick_a = Stick::new(pos_a, mid, 0.15) [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stick_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mesh_a` [INFO] [stdout] --> src/shapes/molecules.rs:313:21 [INFO] [stdout] | [INFO] [stdout] 313 | let mesh_a = stick_a.to_mesh(1.0); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_mesh_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/shapes/molecules.rs:314:21 [INFO] [stdout] | [INFO] [stdout] 314 | for v in mesh_a.vertices { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/shapes/molecules.rs:317:21 [INFO] [stdout] | [INFO] [stdout] 317 | for n in mesh_a.normals { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/shapes/molecules.rs:320:21 [INFO] [stdout] | [INFO] [stdout] 320 | for c in mesh_a.colors.unwrap() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/shapes/molecules.rs:323:21 [INFO] [stdout] | [INFO] [stdout] 323 | for idx in mesh_a.indices { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stick_b` [INFO] [stdout] --> src/shapes/molecules.rs:329:21 [INFO] [stdout] | [INFO] [stdout] 329 | let stick_b = Stick::new(pos_b, mid, 0.15) [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stick_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mesh_b` [INFO] [stdout] --> src/shapes/molecules.rs:332:21 [INFO] [stdout] | [INFO] [stdout] 332 | let mesh_b = stick_b.to_mesh(1.0); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_mesh_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/shapes/molecules.rs:333:21 [INFO] [stdout] | [INFO] [stdout] 333 | for v in mesh_b.vertices { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/shapes/molecules.rs:336:21 [INFO] [stdout] | [INFO] [stdout] 336 | for n in mesh_b.normals { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/shapes/molecules.rs:339:21 [INFO] [stdout] | [INFO] [stdout] 339 | for c in mesh_b.colors.unwrap() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/shapes/molecules.rs:342:21 [INFO] [stdout] | [INFO] [stdout] 342 | for idx in mesh_b.indices { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/shapes/molecules.rs:403:18 [INFO] [stdout] | [INFO] [stdout] 403 | for (j, other_bond) in self.bonds.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/shapes/molecules.rs:426:22 [INFO] [stdout] | [INFO] [stdout] 426 | for (j, other_bond) in self.bonds.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event_loop_builder` [INFO] [stdout] --> src/lib.rs:172:32 [INFO] [stdout] | [INFO] [stdout] 172 | Some(Box::new(|event_loop_builder| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_event_loop_builder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event_loop_builder` [INFO] [stdout] --> src/lib.rs:291:32 [INFO] [stdout] | [INFO] [stdout] 291 | Some(Box::new(|event_loop_builder| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_event_loop_builder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `gl` is never read [INFO] [stdout] --> src/lib.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct App { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 35 | canvas: Canvas, [INFO] [stdout] 36 | gl: Option>, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `UpdateStick` is never used [INFO] [stdout] --> src/shapes/stick.rs:201:11 [INFO] [stdout] | [INFO] [stdout] 201 | pub trait UpdateStick { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 02s [INFO] running `Command { std: "docker" "inspect" "15f1a962a6c9a7c3d3e087a6178da6417a28e85dde812a1c4b0943db5b2f40b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "15f1a962a6c9a7c3d3e087a6178da6417a28e85dde812a1c4b0943db5b2f40b1", kill_on_drop: false }` [INFO] [stdout] 15f1a962a6c9a7c3d3e087a6178da6417a28e85dde812a1c4b0943db5b2f40b1