[INFO] updating cached repository J-F-Liu/learn-opengl [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/J-F-Liu/learn-opengl [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/J-F-Liu/learn-opengl" "work/ex/clippy-test-run/sources/stable/gh/J-F-Liu/learn-opengl"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/J-F-Liu/learn-opengl'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/J-F-Liu/learn-opengl" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/J-F-Liu/learn-opengl"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/J-F-Liu/learn-opengl'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 671135841b39a1a02ca3cac8c1dd155d0f0459c8 [INFO] sha for GitHub repo J-F-Liu/learn-opengl: 671135841b39a1a02ca3cac8c1dd155d0f0459c8 [INFO] validating manifest of J-F-Liu/learn-opengl on toolchain stable [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of J-F-Liu/learn-opengl on toolchain stable+rustflags=-Dclippy::into_iter_on_array [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing J-F-Liu/learn-opengl [INFO] finished frobbing J-F-Liu/learn-opengl [INFO] frobbed toml for J-F-Liu/learn-opengl written to work/ex/clippy-test-run/sources/stable/gh/J-F-Liu/learn-opengl/Cargo.toml [INFO] started frobbing J-F-Liu/learn-opengl [INFO] finished frobbing J-F-Liu/learn-opengl [INFO] frobbed toml for J-F-Liu/learn-opengl written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/J-F-Liu/learn-opengl/Cargo.toml [INFO] crate J-F-Liu/learn-opengl has a lockfile. skipping [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] linting J-F-Liu/learn-opengl against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-4/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/gh/J-F-Liu/learn-opengl:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+stable" "clippy" "--frozen" "--all" "--all-targets"` [INFO] [stdout] b9363568f8c2a770245edabb6cc66dfd4fca054c3cb56bde48c97382f143c618 [INFO] running `"docker" "start" "-a" "b9363568f8c2a770245edabb6cc66dfd4fca054c3cb56bde48c97382f143c618"` [INFO] [stderr] Checking tobj v0.1.6 [INFO] [stderr] Compiling backtrace-sys v0.1.15 [INFO] [stderr] Compiling glium v0.17.1 [INFO] [stderr] Checking backtrace v0.3.3 [INFO] [stderr] Checking opengl v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/bin/teapot.rs:49:25 [INFO] [stderr] | [INFO] [stderr] 49 | normal: normal, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `normal` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::redundant_field_names)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/bin/teapot.rs:50:25 [INFO] [stderr] | [INFO] [stderr] 50 | color_diffuse: color_diffuse, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `color_diffuse` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/bin/teapot.rs:51:25 [INFO] [stderr] | [INFO] [stderr] 51 | color_specular: color_specular, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `color_specular` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/bin/teapot.rs:49:25 [INFO] [stderr] | [INFO] [stderr] 49 | normal: normal, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `normal` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::redundant_field_names)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/bin/teapot.rs:50:25 [INFO] [stderr] | [INFO] [stderr] 50 | color_diffuse: color_diffuse, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `color_diffuse` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/bin/teapot.rs:51:25 [INFO] [stderr] | [INFO] [stderr] 51 | color_specular: color_specular, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `color_specular` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact. [INFO] [stderr] --> src/bin/teapot.rs:21:1 [INFO] [stderr] | [INFO] [stderr] 21 | implement_vertex!(Vertex, position, normal, color_diffuse, color_specular); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::forget_copy)] on by default [INFO] [stderr] note: argument has type Vertex [INFO] [stderr] --> src/bin/teapot.rs:21:1 [INFO] [stderr] | [INFO] [stderr] 21 | implement_vertex!(Vertex, position, normal, color_diffuse, color_specular); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#forget_copy [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact. [INFO] [stderr] --> src/bin/teapot.rs:21:1 [INFO] [stderr] | [INFO] [stderr] 21 | implement_vertex!(Vertex, position, normal, color_diffuse, color_specular); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: argument has type Vertex [INFO] [stderr] --> src/bin/teapot.rs:21:1 [INFO] [stderr] | [INFO] [stderr] 21 | implement_vertex!(Vertex, position, normal, color_diffuse, color_specular); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#forget_copy [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/bin/teapot.rs:153:13 [INFO] [stderr] | [INFO] [stderr] 153 | / match event { [INFO] [stderr] 154 | | Event::WindowEvent { event, .. } => match event { [INFO] [stderr] 155 | | WindowEvent::Closed => closed = true, [INFO] [stderr] 156 | | _ => () [INFO] [stderr] 157 | | }, [INFO] [stderr] 158 | | _ => (), [INFO] [stderr] 159 | | } [INFO] [stderr] | |_____________^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::single_match)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 153 | if let Event::WindowEvent { event, .. } = event { match event { [INFO] [stderr] 154 | WindowEvent::Closed => closed = true, [INFO] [stderr] 155 | _ => () [INFO] [stderr] 156 | } } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/bin/teapot.rs:154:53 [INFO] [stderr] | [INFO] [stderr] 154 | Event::WindowEvent { event, .. } => match event { [INFO] [stderr] | _____________________________________________________^ [INFO] [stderr] 155 | | WindowEvent::Closed => closed = true, [INFO] [stderr] 156 | | _ => () [INFO] [stderr] 157 | | }, [INFO] [stderr] | |_________________^ help: try this: `if let WindowEvent::Closed = event { closed = true }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `opengl`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact. [INFO] [stderr] --> src/bin/teapot.rs:21:1 [INFO] [stderr] | [INFO] [stderr] 21 | implement_vertex!(Vertex, position, normal, color_diffuse, color_specular); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::forget_copy)] on by default [INFO] [stderr] note: argument has type Vertex [INFO] [stderr] --> src/bin/teapot.rs:21:1 [INFO] [stderr] | [INFO] [stderr] 21 | implement_vertex!(Vertex, position, normal, color_diffuse, color_specular); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#forget_copy [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact. [INFO] [stderr] --> src/bin/teapot.rs:21:1 [INFO] [stderr] | [INFO] [stderr] 21 | implement_vertex!(Vertex, position, normal, color_diffuse, color_specular); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: argument has type Vertex [INFO] [stderr] --> src/bin/teapot.rs:21:1 [INFO] [stderr] | [INFO] [stderr] 21 | implement_vertex!(Vertex, position, normal, color_diffuse, color_specular); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#forget_copy [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/bin/teapot.rs:153:13 [INFO] [stderr] | [INFO] [stderr] 153 | / match event { [INFO] [stderr] 154 | | Event::WindowEvent { event, .. } => match event { [INFO] [stderr] 155 | | WindowEvent::Closed => closed = true, [INFO] [stderr] 156 | | _ => () [INFO] [stderr] 157 | | }, [INFO] [stderr] 158 | | _ => (), [INFO] [stderr] 159 | | } [INFO] [stderr] | |_____________^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::single_match)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 153 | if let Event::WindowEvent { event, .. } = event { match event { [INFO] [stderr] 154 | WindowEvent::Closed => closed = true, [INFO] [stderr] 155 | _ => () [INFO] [stderr] 156 | } } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/bin/teapot.rs:154:53 [INFO] [stderr] | [INFO] [stderr] 154 | Event::WindowEvent { event, .. } => match event { [INFO] [stderr] | _____________________________________________________^ [INFO] [stderr] 155 | | WindowEvent::Closed => closed = true, [INFO] [stderr] 156 | | _ => () [INFO] [stderr] 157 | | }, [INFO] [stderr] | |_________________^ help: try this: `if let WindowEvent::Closed = event { closed = true }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `opengl`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact. [INFO] [stderr] --> src/bin/triangle.rs:16:1 [INFO] [stderr] | [INFO] [stderr] 16 | implement_vertex!(Vertex, position, color, tex_coords); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::forget_copy)] on by default [INFO] [stderr] note: argument has type Vertex [INFO] [stderr] --> src/bin/triangle.rs:16:1 [INFO] [stderr] | [INFO] [stderr] 16 | implement_vertex!(Vertex, position, color, tex_coords); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#forget_copy [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact. [INFO] [stderr] --> src/bin/triangle.rs:16:1 [INFO] [stderr] | [INFO] [stderr] 16 | implement_vertex!(Vertex, position, color, tex_coords); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: argument has type Vertex [INFO] [stderr] --> src/bin/triangle.rs:16:1 [INFO] [stderr] | [INFO] [stderr] 16 | implement_vertex!(Vertex, position, color, tex_coords); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#forget_copy [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/bin/triangle.rs:106:13 [INFO] [stderr] | [INFO] [stderr] 106 | / match event { [INFO] [stderr] 107 | | Event::WindowEvent { event, .. } => match event { [INFO] [stderr] 108 | | WindowEvent::Closed => closed = true, [INFO] [stderr] 109 | | _ => () [INFO] [stderr] 110 | | }, [INFO] [stderr] 111 | | _ => (), [INFO] [stderr] 112 | | } [INFO] [stderr] | |_____________^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::single_match)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 106 | if let Event::WindowEvent { event, .. } = event { match event { [INFO] [stderr] 107 | WindowEvent::Closed => closed = true, [INFO] [stderr] 108 | _ => () [INFO] [stderr] 109 | } } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/bin/triangle.rs:107:53 [INFO] [stderr] | [INFO] [stderr] 107 | Event::WindowEvent { event, .. } => match event { [INFO] [stderr] | _____________________________________________________^ [INFO] [stderr] 108 | | WindowEvent::Closed => closed = true, [INFO] [stderr] 109 | | _ => () [INFO] [stderr] 110 | | }, [INFO] [stderr] | |_________________^ help: try this: `if let WindowEvent::Closed = event { closed = true }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `opengl`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact. [INFO] [stderr] --> src/bin/triangle.rs:16:1 [INFO] [stderr] | [INFO] [stderr] 16 | implement_vertex!(Vertex, position, color, tex_coords); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::forget_copy)] on by default [INFO] [stderr] note: argument has type Vertex [INFO] [stderr] --> src/bin/triangle.rs:16:1 [INFO] [stderr] | [INFO] [stderr] 16 | implement_vertex!(Vertex, position, color, tex_coords); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#forget_copy [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact. [INFO] [stderr] --> src/bin/triangle.rs:16:1 [INFO] [stderr] | [INFO] [stderr] 16 | implement_vertex!(Vertex, position, color, tex_coords); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: argument has type Vertex [INFO] [stderr] --> src/bin/triangle.rs:16:1 [INFO] [stderr] | [INFO] [stderr] 16 | implement_vertex!(Vertex, position, color, tex_coords); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#forget_copy [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/bin/triangle.rs:106:13 [INFO] [stderr] | [INFO] [stderr] 106 | / match event { [INFO] [stderr] 107 | | Event::WindowEvent { event, .. } => match event { [INFO] [stderr] 108 | | WindowEvent::Closed => closed = true, [INFO] [stderr] 109 | | _ => () [INFO] [stderr] 110 | | }, [INFO] [stderr] 111 | | _ => (), [INFO] [stderr] 112 | | } [INFO] [stderr] | |_____________^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::single_match)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 106 | if let Event::WindowEvent { event, .. } = event { match event { [INFO] [stderr] 107 | WindowEvent::Closed => closed = true, [INFO] [stderr] 108 | _ => () [INFO] [stderr] 109 | } } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/bin/triangle.rs:107:53 [INFO] [stderr] | [INFO] [stderr] 107 | Event::WindowEvent { event, .. } => match event { [INFO] [stderr] | _____________________________________________________^ [INFO] [stderr] 108 | | WindowEvent::Closed => closed = true, [INFO] [stderr] 109 | | _ => () [INFO] [stderr] 110 | | }, [INFO] [stderr] | |_________________^ help: try this: `if let WindowEvent::Closed = event { closed = true }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `opengl`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "b9363568f8c2a770245edabb6cc66dfd4fca054c3cb56bde48c97382f143c618"` [INFO] running `"docker" "rm" "-f" "b9363568f8c2a770245edabb6cc66dfd4fca054c3cb56bde48c97382f143c618"` [INFO] [stdout] b9363568f8c2a770245edabb6cc66dfd4fca054c3cb56bde48c97382f143c618