[INFO] cloning repository https://github.com/zenpoy/pendulum [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zenpoy/pendulum" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzenpoy%2Fpendulum", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzenpoy%2Fpendulum'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4a1b52d3fed9ca6d11d3fb07c3f5cacb8af16b3c [INFO] checking zenpoy/pendulum against try#4797991aa2efb6d658150f10425b3f3b5d10eceb for pr-143193 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzenpoy%2Fpendulum" "/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/zenpoy/pendulum [INFO] finished tweaking git repo https://github.com/zenpoy/pendulum [INFO] tweaked toml for git repo https://github.com/zenpoy/pendulum written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/zenpoy/pendulum on toolchain 4797991aa2efb6d658150f10425b3f3b5d10eceb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4797991aa2efb6d658150f10425b3f3b5d10eceb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/zenpoy/pendulum 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" "+4797991aa2efb6d658150f10425b3f3b5d10eceb" "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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+4797991aa2efb6d658150f10425b3f3b5d10eceb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 112f8c7dea50d7a578d03d17e39315f68f2eb7e5987be0f6dff39ac8cc295371 [INFO] running `Command { std: "docker" "start" "-a" "112f8c7dea50d7a578d03d17e39315f68f2eb7e5987be0f6dff39ac8cc295371", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "112f8c7dea50d7a578d03d17e39315f68f2eb7e5987be0f6dff39ac8cc295371", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "112f8c7dea50d7a578d03d17e39315f68f2eb7e5987be0f6dff39ac8cc295371", kill_on_drop: false }` [INFO] [stdout] 112f8c7dea50d7a578d03d17e39315f68f2eb7e5987be0f6dff39ac8cc295371 [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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+4797991aa2efb6d658150f10425b3f3b5d10eceb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7ef8f95c979721350eaf0376c68af44301f4837f2c5abab7525811eaa8a4d146 [INFO] running `Command { std: "docker" "start" "-a" "7ef8f95c979721350eaf0376c68af44301f4837f2c5abab7525811eaa8a4d146", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.53 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling xml-rs v0.8.3 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Checking libloading v0.6.6 [INFO] [stderr] Compiling nix v0.14.1 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling const_fn v0.4.3 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking dlib v0.4.2 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking lazycell v1.3.0 [INFO] [stderr] Checking wayland-sys v0.23.6 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking adler32 v1.2.0 [INFO] [stderr] Compiling rayon-core v1.9.0 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Checking linked-hash-map v0.5.3 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.1 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling memoffset v0.6.1 [INFO] [stderr] Checking stb_truetype v0.3.1 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Checking downcast-rs v1.2.0 [INFO] [stderr] Checking smallvec v1.5.1 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.36 [INFO] [stderr] Checking raw-window-handle v0.3.3 [INFO] [stderr] Compiling x11 v2.18.2 [INFO] [stderr] Checking walkdir v2.3.1 [INFO] [stderr] Compiling rayon v1.5.0 [INFO] [stderr] Checking gfx-hal v0.5.3 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking xdg v2.2.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Checking crossbeam-epoch v0.9.1 [INFO] [stderr] Checking crossbeam-channel v0.5.0 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Checking ordered-float v1.1.0 [INFO] [stderr] Checking line_drawing v0.7.0 [INFO] [stderr] Compiling rand_pcg v0.2.1 [INFO] [stderr] Checking crossbeam-deque v0.8.0 [INFO] [stderr] Compiling xcb v0.9.0 [INFO] [stderr] Checking parking_lot_core v0.7.2 [INFO] [stderr] Checking memmap v0.7.0 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Compiling wayland-scanner v0.23.6 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Checking lock_api v0.3.4 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking atom v0.3.6 [INFO] [stderr] Compiling siphasher v0.3.3 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Checking rusttype v0.8.3 [INFO] [stderr] Checking parking_lot v0.10.2 [INFO] [stderr] Compiling phf_shared v0.8.0 [INFO] [stderr] Checking euclid v0.20.14 [INFO] [stderr] Checking hibitset v0.6.3 [INFO] [stderr] Checking rusttype v0.7.9 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Checking mio-extras v2.0.6 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Checking andrew v0.2.1 [INFO] [stderr] Checking ash v0.31.0 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Checking fixedbitset v0.1.9 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Compiling proc-macro-nested v0.1.6 [INFO] [stderr] Checking petgraph v0.4.13 [INFO] [stderr] Checking wayland-commons v0.23.6 [INFO] [stderr] Checking calloop v0.4.4 [INFO] [stderr] Checking lyon_geom v0.15.3 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling phf_generator v0.8.0 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Checking futures-sink v0.3.8 [INFO] [stderr] Checking futures-core v0.3.8 [INFO] [stderr] Checking once_cell v1.5.2 [INFO] [stderr] Checking piston-float v0.3.0 [INFO] [stderr] Checking copyless v0.1.5 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking piston-viewport v0.5.0 [INFO] [stderr] Checking futures-channel v0.3.8 [INFO] [stderr] Compiling phf_codegen v0.8.0 [INFO] [stderr] Checking futures-task v0.3.8 [INFO] [stderr] Checking sid v0.6.1 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Checking deflate v0.7.20 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Checking inflate v0.3.4 [INFO] [stderr] Checking instant v0.1.9 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking weezl v0.1.3 [INFO] [stderr] Checking adler v0.2.3 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-io v0.3.8 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Compiling wayland-client v0.23.6 [INFO] [stderr] Compiling wayland-protocols v0.23.6 [INFO] [stderr] Checking gif v0.9.2 [INFO] [stderr] Checking png v0.11.0 [INFO] [stderr] Checking enum_primitive v0.1.1 [INFO] [stderr] Checking lyon_path v0.15.2 [INFO] [stderr] Compiling palette v0.5.0 [INFO] [stderr] Checking daggy v0.5.0 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking deflate v0.8.6 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking miniz_oxide v0.3.7 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Compiling cgmath v0.17.0 [INFO] [stderr] Compiling serde_json v1.0.60 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking lyon_tessellation v0.15.9 [INFO] [stderr] Checking lyon_algorithms v0.15.1 [INFO] [stderr] Checking num v0.2.1 [INFO] [stderr] Checking phf v0.8.0 [INFO] [stderr] Checking gif v0.11.1 [INFO] [stderr] Checking rand v0.5.6 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking bytemuck v1.4.1 [INFO] [stderr] Checking lyon v0.15.9 [INFO] [stderr] Checking png v0.16.7 [INFO] [stderr] Checking daggy v0.6.0 [INFO] [stderr] Checking pennereq v0.3.1 [INFO] [stderr] Checking conrod_winit v0.70.0 [INFO] [stderr] Checking find_folder v0.3.0 [INFO] [stderr] Checking notosans v0.1.0 [INFO] [stderr] Checking gfx-descriptor v0.1.0 [INFO] [stderr] Checking gfx-backend-empty v0.5.2 [INFO] [stderr] Checking gfx-memory v0.1.3 [INFO] [stderr] Checking jpeg-decoder v0.1.20 [INFO] [stderr] Checking tiff v0.6.0 [INFO] [stderr] Checking image v0.18.0 [INFO] [stderr] Compiling synstructure v0.12.4 [INFO] [stderr] Checking image v0.23.12 [INFO] [stderr] Checking noise v0.6.0 [INFO] [stderr] Compiling peek-poke-derive v0.2.1 [INFO] [stderr] Compiling pin-project-internal v1.0.2 [INFO] [stderr] Compiling futures-macro v0.3.8 [INFO] [stderr] Compiling conrod_derive v0.70.0 [INFO] [stderr] Compiling palette_derive v0.5.0 [INFO] [stderr] Checking peek-poke v0.2.0 [INFO] [stderr] Checking wgpu-types v0.5.1 [INFO] [stderr] Checking pin-project v1.0.2 [INFO] [stderr] Checking futures-util v0.3.8 [INFO] [stderr] Checking gfx-backend-vulkan v0.5.11 [INFO] [stderr] Checking wgpu-core v0.5.6 [INFO] [stderr] Checking wgpu-native v0.5.1 [INFO] [stderr] Checking futures-executor v0.3.8 [INFO] [stderr] Checking wgpu v0.5.2 [INFO] [stderr] Checking futures v0.3.8 [INFO] [stderr] Checking x11-clipboard v0.5.1 [INFO] [stderr] Checking pistoncore-input v0.24.0 [INFO] [stderr] Checking toml v0.5.7 [INFO] [stderr] Checking smithay-client-toolkit v0.6.6 [INFO] [stderr] Checking smithay-clipboard v0.4.0 [INFO] [stderr] Checking winit v0.22.2 [INFO] [stderr] Checking copypasta v0.6.3 [INFO] [stderr] Checking conrod_core v0.70.0 [INFO] [stderr] Checking conrod_wgpu v0.70.0 [INFO] [stderr] Checking nannou v0.15.0 [INFO] [stderr] Checking pendulum v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `t` is never read [INFO] [stdout] --> src/main.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 25 | struct Bulb { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 26 | color: rgb::Srgb, [INFO] [stdout] 27 | t: f32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:126:18 [INFO] [stdout] | [INFO] [stdout] 126 | for value in slider(_model.speed as f32, 0.1, 10.0) [INFO] [stdout] | __________________^ [INFO] [stdout] 127 | | .top_left_with_margin(20.0) [INFO] [stdout] 128 | | .label("Speed") [INFO] [stdout] 129 | | .set(_model.ids.speed, ui) [INFO] [stdout] | |__________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 126 - for value in slider(_model.speed as f32, 0.1, 10.0) [INFO] [stdout] 126 + while let Some(value) = slider(_model.speed as f32, 0.1, 10.0) [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 126 - for value in slider(_model.speed as f32, 0.1, 10.0) [INFO] [stdout] 126 + if let Some(value) = slider(_model.speed as f32, 0.1, 10.0) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:134:18 [INFO] [stdout] | [INFO] [stdout] 134 | for value in slider(_model.spread as f32, 0.1, 10.0) [INFO] [stdout] | __________________^ [INFO] [stdout] 135 | | .down(10.0) [INFO] [stdout] 136 | | .label("Spread") [INFO] [stdout] 137 | | .set(_model.ids.spread, ui) [INFO] [stdout] | |___________________________________^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 134 - for value in slider(_model.spread as f32, 0.1, 10.0) [INFO] [stdout] 134 + while let Some(value) = slider(_model.spread as f32, 0.1, 10.0) [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 134 - for value in slider(_model.spread as f32, 0.1, 10.0) [INFO] [stdout] 134 + if let Some(value) = slider(_model.spread as f32, 0.1, 10.0) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:142:18 [INFO] [stdout] | [INFO] [stdout] 142 | for value in slider(_model.scale as f32, 100.0, 2000.0) [INFO] [stdout] | __________________^ [INFO] [stdout] 143 | | .down(10.0) [INFO] [stdout] 144 | | .label("Scale") [INFO] [stdout] 145 | | .set(_model.ids.scale, ui) [INFO] [stdout] | |__________________________________^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 142 - for value in slider(_model.scale as f32, 100.0, 2000.0) [INFO] [stdout] 142 + while let Some(value) = slider(_model.scale as f32, 100.0, 2000.0) [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 142 - for value in slider(_model.scale as f32, 100.0, 2000.0) [INFO] [stdout] 142 + if let Some(value) = slider(_model.scale as f32, 100.0, 2000.0) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:150:18 [INFO] [stdout] | [INFO] [stdout] 150 | for value in slider(_model.theta, -PI, PI) [INFO] [stdout] | __________________^ [INFO] [stdout] 151 | | .down(10.0) [INFO] [stdout] 152 | | .label("Theta") [INFO] [stdout] 153 | | .set(_model.ids.theta, ui) [INFO] [stdout] | |__________________________________^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 150 - for value in slider(_model.theta, -PI, PI) [INFO] [stdout] 150 + while let Some(value) = slider(_model.theta, -PI, PI) [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 150 - for value in slider(_model.theta, -PI, PI) [INFO] [stdout] 150 + if let Some(value) = slider(_model.theta, -PI, PI) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:158:18 [INFO] [stdout] | [INFO] [stdout] 158 | for value in slider(_model.size as f32, 5.0, 100.0) [INFO] [stdout] | __________________^ [INFO] [stdout] 159 | | .down(10.0) [INFO] [stdout] 160 | | .label("Size") [INFO] [stdout] 161 | | .set(_model.ids.size, ui) [INFO] [stdout] | |_________________________________^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 158 - for value in slider(_model.size as f32, 5.0, 100.0) [INFO] [stdout] 158 + while let Some(value) = slider(_model.size as f32, 5.0, 100.0) [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 158 - for value in slider(_model.size as f32, 5.0, 100.0) [INFO] [stdout] 158 + if let Some(value) = slider(_model.size as f32, 5.0, 100.0) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:166:18 [INFO] [stdout] | [INFO] [stdout] 166 | for value in slider(_model.rate as f32, 1.0, 360.0) [INFO] [stdout] | __________________^ [INFO] [stdout] 167 | | .down(10.0) [INFO] [stdout] 168 | | .label("Rate") [INFO] [stdout] 169 | | .set(_model.ids.rate, ui) [INFO] [stdout] | |_________________________________^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 166 - for value in slider(_model.rate as f32, 1.0, 360.0) [INFO] [stdout] 166 + while let Some(value) = slider(_model.rate as f32, 1.0, 360.0) [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 166 - for value in slider(_model.rate as f32, 1.0, 360.0) [INFO] [stdout] 166 + if let Some(value) = slider(_model.rate as f32, 1.0, 360.0) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:187:19 [INFO] [stdout] | [INFO] [stdout] 187 | for (x, y) in widget::XYPad::new( [INFO] [stdout] | ___________________^ [INFO] [stdout] 188 | | _model.position.x, [INFO] [stdout] 189 | | -1000.0, [INFO] [stdout] 190 | | 1000.0, [INFO] [stdout] ... | [INFO] [stdout] 201 | | .border(0.0) [INFO] [stdout] 202 | | .set(_model.ids.position, ui) [INFO] [stdout] | |_________________________________^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 187 - for (x, y) in widget::XYPad::new( [INFO] [stdout] 187 + while let Some((x, y)) = widget::XYPad::new( [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 187 - for (x, y) in widget::XYPad::new( [INFO] [stdout] 187 + if let Some((x, y)) = widget::XYPad::new( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `t` is never read [INFO] [stdout] --> src/main.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 25 | struct Bulb { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 26 | color: rgb::Srgb, [INFO] [stdout] 27 | t: f32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:126:18 [INFO] [stdout] | [INFO] [stdout] 126 | for value in slider(_model.speed as f32, 0.1, 10.0) [INFO] [stdout] | __________________^ [INFO] [stdout] 127 | | .top_left_with_margin(20.0) [INFO] [stdout] 128 | | .label("Speed") [INFO] [stdout] 129 | | .set(_model.ids.speed, ui) [INFO] [stdout] | |__________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 126 - for value in slider(_model.speed as f32, 0.1, 10.0) [INFO] [stdout] 126 + while let Some(value) = slider(_model.speed as f32, 0.1, 10.0) [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 126 - for value in slider(_model.speed as f32, 0.1, 10.0) [INFO] [stdout] 126 + if let Some(value) = slider(_model.speed as f32, 0.1, 10.0) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:134:18 [INFO] [stdout] | [INFO] [stdout] 134 | for value in slider(_model.spread as f32, 0.1, 10.0) [INFO] [stdout] | __________________^ [INFO] [stdout] 135 | | .down(10.0) [INFO] [stdout] 136 | | .label("Spread") [INFO] [stdout] 137 | | .set(_model.ids.spread, ui) [INFO] [stdout] | |___________________________________^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 134 - for value in slider(_model.spread as f32, 0.1, 10.0) [INFO] [stdout] 134 + while let Some(value) = slider(_model.spread as f32, 0.1, 10.0) [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 134 - for value in slider(_model.spread as f32, 0.1, 10.0) [INFO] [stdout] 134 + if let Some(value) = slider(_model.spread as f32, 0.1, 10.0) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:142:18 [INFO] [stdout] | [INFO] [stdout] 142 | for value in slider(_model.scale as f32, 100.0, 2000.0) [INFO] [stdout] | __________________^ [INFO] [stdout] 143 | | .down(10.0) [INFO] [stdout] 144 | | .label("Scale") [INFO] [stdout] 145 | | .set(_model.ids.scale, ui) [INFO] [stdout] | |__________________________________^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 142 - for value in slider(_model.scale as f32, 100.0, 2000.0) [INFO] [stdout] 142 + while let Some(value) = slider(_model.scale as f32, 100.0, 2000.0) [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 142 - for value in slider(_model.scale as f32, 100.0, 2000.0) [INFO] [stdout] 142 + if let Some(value) = slider(_model.scale as f32, 100.0, 2000.0) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:150:18 [INFO] [stdout] | [INFO] [stdout] 150 | for value in slider(_model.theta, -PI, PI) [INFO] [stdout] | __________________^ [INFO] [stdout] 151 | | .down(10.0) [INFO] [stdout] 152 | | .label("Theta") [INFO] [stdout] 153 | | .set(_model.ids.theta, ui) [INFO] [stdout] | |__________________________________^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 150 - for value in slider(_model.theta, -PI, PI) [INFO] [stdout] 150 + while let Some(value) = slider(_model.theta, -PI, PI) [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 150 - for value in slider(_model.theta, -PI, PI) [INFO] [stdout] 150 + if let Some(value) = slider(_model.theta, -PI, PI) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:158:18 [INFO] [stdout] | [INFO] [stdout] 158 | for value in slider(_model.size as f32, 5.0, 100.0) [INFO] [stdout] | __________________^ [INFO] [stdout] 159 | | .down(10.0) [INFO] [stdout] 160 | | .label("Size") [INFO] [stdout] 161 | | .set(_model.ids.size, ui) [INFO] [stdout] | |_________________________________^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 158 - for value in slider(_model.size as f32, 5.0, 100.0) [INFO] [stdout] 158 + while let Some(value) = slider(_model.size as f32, 5.0, 100.0) [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 158 - for value in slider(_model.size as f32, 5.0, 100.0) [INFO] [stdout] 158 + if let Some(value) = slider(_model.size as f32, 5.0, 100.0) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:166:18 [INFO] [stdout] | [INFO] [stdout] 166 | for value in slider(_model.rate as f32, 1.0, 360.0) [INFO] [stdout] | __________________^ [INFO] [stdout] 167 | | .down(10.0) [INFO] [stdout] 168 | | .label("Rate") [INFO] [stdout] 169 | | .set(_model.ids.rate, ui) [INFO] [stdout] | |_________________________________^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 166 - for value in slider(_model.rate as f32, 1.0, 360.0) [INFO] [stdout] 166 + while let Some(value) = slider(_model.rate as f32, 1.0, 360.0) [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 166 - for value in slider(_model.rate as f32, 1.0, 360.0) [INFO] [stdout] 166 + if let Some(value) = slider(_model.rate as f32, 1.0, 360.0) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:187:19 [INFO] [stdout] | [INFO] [stdout] 187 | for (x, y) in widget::XYPad::new( [INFO] [stdout] | ___________________^ [INFO] [stdout] 188 | | _model.position.x, [INFO] [stdout] 189 | | -1000.0, [INFO] [stdout] 190 | | 1000.0, [INFO] [stdout] ... | [INFO] [stdout] 201 | | .border(0.0) [INFO] [stdout] 202 | | .set(_model.ids.position, ui) [INFO] [stdout] | |_________________________________^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 187 - for (x, y) in widget::XYPad::new( [INFO] [stdout] 187 + while let Some((x, y)) = widget::XYPad::new( [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 187 - for (x, y) in widget::XYPad::new( [INFO] [stdout] 187 + if let Some((x, y)) = widget::XYPad::new( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 48.47s [INFO] running `Command { std: "docker" "inspect" "7ef8f95c979721350eaf0376c68af44301f4837f2c5abab7525811eaa8a4d146", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7ef8f95c979721350eaf0376c68af44301f4837f2c5abab7525811eaa8a4d146", kill_on_drop: false }` [INFO] [stdout] 7ef8f95c979721350eaf0376c68af44301f4837f2c5abab7525811eaa8a4d146