[INFO] fetching crate raylib_interactive 0.1.6... [INFO] building raylib_interactive-0.1.6 against try#4987e9d4227139400384ab59296ffee3b0fb1183 for pr-146237-2 [INFO] extracting crate raylib_interactive 0.1.6 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate raylib_interactive 0.1.6 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate raylib_interactive 0.1.6 [INFO] tweaked toml for crates.io crate raylib_interactive 0.1.6 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate raylib_interactive 0.1.6 on toolchain 4987e9d4227139400384ab59296ffee3b0fb1183 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate raylib_interactive 0.1.6 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" "+4987e9d4227139400384ab59296ffee3b0fb1183" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7d8f44695ff9719e77edfd1751b2823b0ac0f8f03e6968991b3f4f4d94a77711 [INFO] running `Command { std: "docker" "start" "-a" "7d8f44695ff9719e77edfd1751b2823b0ac0f8f03e6968991b3f4f4d94a77711", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7d8f44695ff9719e77edfd1751b2823b0ac0f8f03e6968991b3f4f4d94a77711", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d8f44695ff9719e77edfd1751b2823b0ac0f8f03e6968991b3f4f4d94a77711", kill_on_drop: false }` [INFO] [stdout] 7d8f44695ff9719e77edfd1751b2823b0ac0f8f03e6968991b3f4f4d94a77711 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f060795e2fcd678439013f5905fdb3614627f7067673fabb9d608540a2c35f9f [INFO] running `Command { std: "docker" "start" "-a" "f060795e2fcd678439013f5905fdb3614627f7067673fabb9d608540a2c35f9f", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling glob v0.3.2 [INFO] [stderr] Compiling prettyplease v0.2.35 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling libloading v0.8.8 [INFO] [stderr] Compiling bindgen v0.70.1 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling cmake v0.1.54 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling png v0.17.16 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling bytemuck v1.23.1 [INFO] [stderr] Compiling x11rb-protocol v0.13.1 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling image v0.25.6 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling seq-macro v0.3.6 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling x11rb v0.13.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling arboard v3.6.0 [INFO] [stderr] Compiling raylib-sys v5.5.1 [INFO] [stderr] Compiling raylib v5.5.1 [INFO] [stderr] Compiling raylib_interactive v0.1.6 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `raylib::prelude::*` [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use raylib::prelude::*; [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 variable: `width` [INFO] [stdout] --> src/textfield.rs:522:17 [INFO] [stdout] | [INFO] [stdout] 522 | let mut width = 0.0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_width` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/textfield.rs:522:13 [INFO] [stdout] | [INFO] [stdout] 522 | let mut width = 0.0; [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 `found_cursor` is assigned to, but never used [INFO] [stdout] --> src/textfield.rs:543:17 [INFO] [stdout] | [INFO] [stdout] 543 | let mut found_cursor = false; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_found_cursor` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cursor_x` is assigned to, but never used [INFO] [stdout] --> src/textfield.rs:544:17 [INFO] [stdout] | [INFO] [stdout] 544 | let mut cursor_x = 0.0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_cursor_x` instead [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `PADDING` [INFO] [stdout] | [INFO] [stdout] 544 - let mut cursor_x = 0.0; [INFO] [stdout] 544 + let mut PADDING = 0.0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `found_cursor` is never read [INFO] [stdout] --> src/textfield.rs:554:17 [INFO] [stdout] | [INFO] [stdout] 554 | found_cursor = true; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `cursor_x` is never read [INFO] [stdout] --> src/textfield.rs:555:17 [INFO] [stdout] | [INFO] [stdout] 555 | cursor_x = w; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_end` [INFO] [stdout] --> src/textfield.rs:573:21 [INFO] [stdout] | [INFO] [stdout] 573 | let mut temp_end = temp_start; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text_x` [INFO] [stdout] --> src/button.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 140 | let text_x = self.bounds.x + (self.bounds.width - text_width as f32) / 2.0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 140 | let _text_x = self.bounds.x + (self.bounds.width - text_width as f32) / 2.0; [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `PADDING` [INFO] [stdout] | [INFO] [stdout] 140 - let text_x = self.bounds.x + (self.bounds.width - text_width as f32) / 2.0; [INFO] [stdout] 140 + let PADDING = self.bounds.x + (self.bounds.width - text_width as f32) / 2.0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/textfield.rs:541:13 [INFO] [stdout] | [INFO] [stdout] 541 | let mut start = self.scroll_offset; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/textfield.rs:573:17 [INFO] [stdout] | [INFO] [stdout] 573 | let mut temp_end = temp_start; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ch` [INFO] [stdout] --> src/textfield.rs:614:25 [INFO] [stdout] | [INFO] [stdout] 614 | for (i, ch) in text_slice.char_indices() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `was_active` [INFO] [stdout] --> src/textfield.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | let was_active = self.is_active; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_was_active` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `acc_width` [INFO] [stdout] --> src/textfield.rs:122:25 [INFO] [stdout] | [INFO] [stdout] 122 | let mut acc_width = 0.0; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_acc_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `clear_selection` [INFO] [stdout] --> src/textfield.rs:270:21 [INFO] [stdout] | [INFO] [stdout] 270 | let mut clear_selection = || { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_clear_selection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/textfield.rs:338:42 [INFO] [stdout] | [INFO] [stdout] 338 | ... for (i, (pos, ch)) in chars.iter().enumerate().rev() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/textfield.rs:367:42 [INFO] [stdout] | [INFO] [stdout] 367 | ... for (i, (pos, ch)) in chars.iter().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/textfield.rs:122:21 [INFO] [stdout] | [INFO] [stdout] 122 | let mut acc_width = 0.0; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/textfield.rs:270:17 [INFO] [stdout] | [INFO] [stdout] 270 | let mut clear_selection = || { [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/textfield.rs:335:37 [INFO] [stdout] | [INFO] [stdout] 335 | ... let mut idx = self.cursor_position; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 37s [INFO] running `Command { std: "docker" "inspect" "f060795e2fcd678439013f5905fdb3614627f7067673fabb9d608540a2c35f9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f060795e2fcd678439013f5905fdb3614627f7067673fabb9d608540a2c35f9f", kill_on_drop: false }` [INFO] [stdout] f060795e2fcd678439013f5905fdb3614627f7067673fabb9d608540a2c35f9f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1a810e5161170189ebc2ff4c487c3612a943464de9be81b6051cd9f06779c54d [INFO] running `Command { std: "docker" "start" "-a" "1a810e5161170189ebc2ff4c487c3612a943464de9be81b6051cd9f06779c54d", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `raylib::prelude::*` [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use raylib::prelude::*; [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 variable: `width` [INFO] [stdout] --> src/textfield.rs:522:17 [INFO] [stdout] | [INFO] [stdout] 522 | let mut width = 0.0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_width` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/textfield.rs:522:13 [INFO] [stdout] | [INFO] [stdout] 522 | let mut width = 0.0; [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 `found_cursor` is assigned to, but never used [INFO] [stdout] --> src/textfield.rs:543:17 [INFO] [stdout] | [INFO] [stdout] 543 | let mut found_cursor = false; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_found_cursor` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cursor_x` is assigned to, but never used [INFO] [stdout] --> src/textfield.rs:544:17 [INFO] [stdout] | [INFO] [stdout] 544 | let mut cursor_x = 0.0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_cursor_x` instead [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `PADDING` [INFO] [stdout] | [INFO] [stdout] 544 - let mut cursor_x = 0.0; [INFO] [stdout] 544 + let mut PADDING = 0.0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `found_cursor` is never read [INFO] [stdout] --> src/textfield.rs:554:17 [INFO] [stdout] | [INFO] [stdout] 554 | found_cursor = true; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `cursor_x` is never read [INFO] [stdout] --> src/textfield.rs:555:17 [INFO] [stdout] | [INFO] [stdout] 555 | cursor_x = w; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_end` [INFO] [stdout] --> src/textfield.rs:573:21 [INFO] [stdout] | [INFO] [stdout] 573 | let mut temp_end = temp_start; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text_x` [INFO] [stdout] --> src/button.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 140 | let text_x = self.bounds.x + (self.bounds.width - text_width as f32) / 2.0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 140 | let _text_x = self.bounds.x + (self.bounds.width - text_width as f32) / 2.0; [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `PADDING` [INFO] [stdout] | [INFO] [stdout] 140 - let text_x = self.bounds.x + (self.bounds.width - text_width as f32) / 2.0; [INFO] [stdout] 140 + let PADDING = self.bounds.x + (self.bounds.width - text_width as f32) / 2.0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/textfield.rs:541:13 [INFO] [stdout] | [INFO] [stdout] 541 | let mut start = self.scroll_offset; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/textfield.rs:573:17 [INFO] [stdout] | [INFO] [stdout] 573 | let mut temp_end = temp_start; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ch` [INFO] [stdout] --> src/textfield.rs:614:25 [INFO] [stdout] | [INFO] [stdout] 614 | for (i, ch) in text_slice.char_indices() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `was_active` [INFO] [stdout] --> src/textfield.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | let was_active = self.is_active; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_was_active` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `acc_width` [INFO] [stdout] --> src/textfield.rs:122:25 [INFO] [stdout] | [INFO] [stdout] 122 | let mut acc_width = 0.0; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_acc_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `clear_selection` [INFO] [stdout] --> src/textfield.rs:270:21 [INFO] [stdout] | [INFO] [stdout] 270 | let mut clear_selection = || { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_clear_selection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/textfield.rs:338:42 [INFO] [stdout] | [INFO] [stdout] 338 | ... for (i, (pos, ch)) in chars.iter().enumerate().rev() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/textfield.rs:367:42 [INFO] [stdout] | [INFO] [stdout] 367 | ... for (i, (pos, ch)) in chars.iter().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/textfield.rs:122:21 [INFO] [stdout] | [INFO] [stdout] 122 | let mut acc_width = 0.0; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/textfield.rs:270:17 [INFO] [stdout] | [INFO] [stdout] 270 | let mut clear_selection = || { [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/textfield.rs:335:37 [INFO] [stdout] | [INFO] [stdout] 335 | ... let mut idx = self.cursor_position; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling raylib_interactive v0.1.6 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Style` [INFO] [stdout] --> examples/dropdown_test.rs:2:44 [INFO] [stdout] | [INFO] [stdout] 2 | use raylib_interactive::{Button, Dropdown, Style, presets, update_all, draw_all}; [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: `Style` [INFO] [stdout] --> examples/test_runner.rs:2:65 [INFO] [stdout] | [INFO] [stdout] 2 | use raylib_interactive::{Button, TextField, Checkbox, Dropdown, Style, presets, TestResults, run_all_tests, update_all, draw_all}; [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: `raylib::prelude::*` [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use raylib::prelude::*; [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 variable: `text_x` [INFO] [stdout] --> src/button.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 140 | let text_x = self.bounds.x + (self.bounds.width - text_width as f32) / 2.0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 140 | let _text_x = self.bounds.x + (self.bounds.width - text_width as f32) / 2.0; [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `PADDING` [INFO] [stdout] | [INFO] [stdout] 140 - let text_x = self.bounds.x + (self.bounds.width - text_width as f32) / 2.0; [INFO] [stdout] 140 + let PADDING = self.bounds.x + (self.bounds.width - text_width as f32) / 2.0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `width` [INFO] [stdout] --> src/textfield.rs:522:17 [INFO] [stdout] | [INFO] [stdout] 522 | let mut width = 0.0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/textfield.rs:522:13 [INFO] [stdout] | [INFO] [stdout] 522 | let mut width = 0.0; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `was_active` [INFO] [stdout] --> src/textfield.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | let was_active = self.is_active; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_was_active` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `acc_width` [INFO] [stdout] --> src/textfield.rs:122:25 [INFO] [stdout] | [INFO] [stdout] 122 | let mut acc_width = 0.0; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_acc_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `clear_selection` [INFO] [stdout] --> src/textfield.rs:270:21 [INFO] [stdout] | [INFO] [stdout] 270 | let mut clear_selection = || { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_clear_selection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/textfield.rs:338:42 [INFO] [stdout] | [INFO] [stdout] 338 | ... for (i, (pos, ch)) in chars.iter().enumerate().rev() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/textfield.rs:367:42 [INFO] [stdout] | [INFO] [stdout] 367 | ... for (i, (pos, ch)) in chars.iter().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `found_cursor` is assigned to, but never used [INFO] [stdout] --> src/textfield.rs:543:17 [INFO] [stdout] | [INFO] [stdout] 543 | let mut found_cursor = false; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_found_cursor` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cursor_x` is assigned to, but never used [INFO] [stdout] --> src/textfield.rs:544:17 [INFO] [stdout] | [INFO] [stdout] 544 | let mut cursor_x = 0.0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_cursor_x` instead [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `PADDING` [INFO] [stdout] | [INFO] [stdout] 544 - let mut cursor_x = 0.0; [INFO] [stdout] 544 + let mut PADDING = 0.0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `found_cursor` is never read [INFO] [stdout] --> src/textfield.rs:554:17 [INFO] [stdout] | [INFO] [stdout] 554 | found_cursor = true; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `cursor_x` is never read [INFO] [stdout] --> src/textfield.rs:555:17 [INFO] [stdout] | [INFO] [stdout] 555 | cursor_x = w; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_end` [INFO] [stdout] --> src/textfield.rs:573:21 [INFO] [stdout] | [INFO] [stdout] 573 | let mut temp_end = temp_start; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/textfield.rs:541:13 [INFO] [stdout] | [INFO] [stdout] 541 | let mut start = self.scroll_offset; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/textfield.rs:573:17 [INFO] [stdout] | [INFO] [stdout] 573 | let mut temp_end = temp_start; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ch` [INFO] [stdout] --> src/textfield.rs:614:25 [INFO] [stdout] | [INFO] [stdout] 614 | for (i, ch) in text_slice.char_indices() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/textfield.rs:122:21 [INFO] [stdout] | [INFO] [stdout] 122 | let mut acc_width = 0.0; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/textfield.rs:270:17 [INFO] [stdout] | [INFO] [stdout] 270 | let mut clear_selection = || { [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/textfield.rs:335:37 [INFO] [stdout] | [INFO] [stdout] 335 | ... let mut idx = self.cursor_position; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.61s [INFO] running `Command { std: "docker" "inspect" "1a810e5161170189ebc2ff4c487c3612a943464de9be81b6051cd9f06779c54d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a810e5161170189ebc2ff4c487c3612a943464de9be81b6051cd9f06779c54d", kill_on_drop: false }` [INFO] [stdout] 1a810e5161170189ebc2ff4c487c3612a943464de9be81b6051cd9f06779c54d