[INFO] updating cached repository antonycourtney/hello-glutin [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/antonycourtney/hello-glutin [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/antonycourtney/hello-glutin" "work/ex/clippy-test-run/sources/stable/gh/antonycourtney/hello-glutin"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/antonycourtney/hello-glutin'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/antonycourtney/hello-glutin" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/antonycourtney/hello-glutin"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/antonycourtney/hello-glutin'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 98cd127a432e764d25ae2d51ad4f34e5f95a94e6 [INFO] sha for GitHub repo antonycourtney/hello-glutin: 98cd127a432e764d25ae2d51ad4f34e5f95a94e6 [INFO] validating manifest of antonycourtney/hello-glutin 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 antonycourtney/hello-glutin 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 antonycourtney/hello-glutin [INFO] finished frobbing antonycourtney/hello-glutin [INFO] frobbed toml for antonycourtney/hello-glutin written to work/ex/clippy-test-run/sources/stable/gh/antonycourtney/hello-glutin/Cargo.toml [INFO] started frobbing antonycourtney/hello-glutin [INFO] finished frobbing antonycourtney/hello-glutin [INFO] frobbed toml for antonycourtney/hello-glutin written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/antonycourtney/hello-glutin/Cargo.toml [INFO] crate antonycourtney/hello-glutin 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 antonycourtney/hello-glutin against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-5/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/gh/antonycourtney/hello-glutin:/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] b83356c0908069510e0ffa708e3c8ad3e264ac45e0cbbaa938d808fa4547a41c [INFO] running `"docker" "start" "-a" "b83356c0908069510e0ffa708e3c8ad3e264ac45e0cbbaa938d808fa4547a41c"` [INFO] [stderr] Compiling log v0.4.1 [INFO] [stderr] Checking winit v0.11.2 [INFO] [stderr] Compiling gl_generator v0.9.0 [INFO] [stderr] Compiling glutin v0.13.1 [INFO] [stderr] Compiling gl v0.10.0 [INFO] [stderr] Checking hello_glutin v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/support/mod.rs:75:16 [INFO] [stderr] | [INFO] [stderr] 75 | const VS_SRC: &'static [u8] = b" [INFO] [stderr] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::const_static_lifetime)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/support/mod.rs:90:16 [INFO] [stderr] | [INFO] [stderr] 90 | const FS_SRC: &'static [u8] = b" [INFO] [stderr] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: unused import: `glutin::GlRequest` [INFO] [stderr] --> src/main.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use glutin::GlRequest; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `glutin::Api` [INFO] [stderr] --> src/main.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use glutin::Api; [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/main.rs:24:9 [INFO] [stderr] | [INFO] [stderr] 24 | / match event { [INFO] [stderr] 25 | | glutin::Event::WindowEvent { event, .. } => match event { [INFO] [stderr] 26 | | glutin::WindowEvent::Closed => return glutin::ControlFlow::Break, [INFO] [stderr] 27 | | glutin::WindowEvent::Resized(w, h) => gl_window.resize(w, h), [INFO] [stderr] ... | [INFO] [stderr] 30 | | _ => () [INFO] [stderr] 31 | | } [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] 24 | if let glutin::Event::WindowEvent { event, .. } = event { match event { [INFO] [stderr] 25 | glutin::WindowEvent::Closed => return glutin::ControlFlow::Break, [INFO] [stderr] 26 | glutin::WindowEvent::Resized(w, h) => gl_window.resize(w, h), [INFO] [stderr] 27 | _ => (), [INFO] [stderr] 28 | } } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/support/mod.rs:75:16 [INFO] [stderr] | [INFO] [stderr] 75 | const VS_SRC: &'static [u8] = b" [INFO] [stderr] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::const_static_lifetime)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/support/mod.rs:90:16 [INFO] [stderr] | [INFO] [stderr] 90 | const FS_SRC: &'static [u8] = b" [INFO] [stderr] | -^^^^^^^----- help: consider removing `'static`: `&[u8]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: unused import: `glutin::GlRequest` [INFO] [stderr] --> src/main.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use glutin::GlRequest; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `glutin::Api` [INFO] [stderr] --> src/main.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use glutin::Api; [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/main.rs:24:9 [INFO] [stderr] | [INFO] [stderr] 24 | / match event { [INFO] [stderr] 25 | | glutin::Event::WindowEvent { event, .. } => match event { [INFO] [stderr] 26 | | glutin::WindowEvent::Closed => return glutin::ControlFlow::Break, [INFO] [stderr] 27 | | glutin::WindowEvent::Resized(w, h) => gl_window.resize(w, h), [INFO] [stderr] ... | [INFO] [stderr] 30 | | _ => () [INFO] [stderr] 31 | | } [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] 24 | if let glutin::Event::WindowEvent { event, .. } = event { match event { [INFO] [stderr] 25 | glutin::WindowEvent::Closed => return glutin::ControlFlow::Break, [INFO] [stderr] 26 | glutin::WindowEvent::Resized(w, h) => gl_window.resize(w, h), [INFO] [stderr] 27 | _ => (), [INFO] [stderr] 28 | } } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 17.24s [INFO] running `"docker" "inspect" "b83356c0908069510e0ffa708e3c8ad3e264ac45e0cbbaa938d808fa4547a41c"` [INFO] running `"docker" "rm" "-f" "b83356c0908069510e0ffa708e3c8ad3e264ac45e0cbbaa938d808fa4547a41c"` [INFO] [stdout] b83356c0908069510e0ffa708e3c8ad3e264ac45e0cbbaa938d808fa4547a41c