[INFO] updating cached repository SfietKonstantin/qt-binding-generator [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/SfietKonstantin/qt-binding-generator [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/SfietKonstantin/qt-binding-generator" "work/ex/clippy-test-run/sources/stable/gh/SfietKonstantin/qt-binding-generator"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/SfietKonstantin/qt-binding-generator'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/SfietKonstantin/qt-binding-generator" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/SfietKonstantin/qt-binding-generator"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/SfietKonstantin/qt-binding-generator'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 1618d4d7712dc04878c2fb74111021a20c10e6fd [INFO] sha for GitHub repo SfietKonstantin/qt-binding-generator: 1618d4d7712dc04878c2fb74111021a20c10e6fd [INFO] validating manifest of SfietKonstantin/qt-binding-generator 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 SfietKonstantin/qt-binding-generator 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 SfietKonstantin/qt-binding-generator [INFO] finished frobbing SfietKonstantin/qt-binding-generator [INFO] frobbed toml for SfietKonstantin/qt-binding-generator written to work/ex/clippy-test-run/sources/stable/gh/SfietKonstantin/qt-binding-generator/Cargo.toml [INFO] started frobbing SfietKonstantin/qt-binding-generator [INFO] finished frobbing SfietKonstantin/qt-binding-generator [INFO] frobbed toml for SfietKonstantin/qt-binding-generator written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/SfietKonstantin/qt-binding-generator/Cargo.toml [INFO] crate SfietKonstantin/qt-binding-generator 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 SfietKonstantin/qt-binding-generator against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-6/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/gh/SfietKonstantin/qt-binding-generator:/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] 1b36bb085da3f1bddacf37b40bdccdd1d1f54b51ea24179e06221d4da9ffee9b [INFO] running `"docker" "start" "-a" "1b36bb085da3f1bddacf37b40bdccdd1d1f54b51ea24179e06221d4da9ffee9b"` [INFO] [stderr] Checking qt-binding-generator v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/gen/cpp/source/helper/complex_type_helper.rs:10:64 [INFO] [stderr] | [INFO] [stderr] 10 | pub(super) fn gen_qstring_helper(write: &mut W, properties: &Vec<&Property>) -> Result<()> [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: change this to: `&[&Property]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::ptr_arg)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: called `is_some()` after searching an `Iterator` with find. This is more succinctly expressed by calling `any()`. [INFO] [stderr] --> src/gen/cpp/source/helper/complex_type_helper.rs:14:23 [INFO] [stderr] | [INFO] [stderr] 14 | let has_qstring = properties [INFO] [stderr] | _______________________^ [INFO] [stderr] 15 | | .iter() [INFO] [stderr] 16 | | .find(|property| property.variable_type().cpp_type_kind().is_qstring()) [INFO] [stderr] 17 | | .is_some(); [INFO] [stderr] | |__________________^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::search_is_some)] on by default [INFO] [stderr] = note: replace `find(|property| property.variable_type().cpp_type_kind().is_qstring()).is_some()` with `any(|property| property.variable_type().cpp_type_kind().is_qstring())` [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#search_is_some [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/gen/cpp/source/helper/complex_type_helper.rs:33:67 [INFO] [stderr] | [INFO] [stderr] 33 | pub(super) fn gen_qbytearray_helper(write: &mut W, properties: &Vec<&Property>) -> Result<()> [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: change this to: `&[&Property]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: called `is_some()` after searching an `Iterator` with find. This is more succinctly expressed by calling `any()`. [INFO] [stderr] --> src/gen/cpp/source/helper/complex_type_helper.rs:37:23 [INFO] [stderr] | [INFO] [stderr] 37 | let has_qstring = properties [INFO] [stderr] | _______________________^ [INFO] [stderr] 38 | | .iter() [INFO] [stderr] 39 | | .find(|property| property.variable_type().cpp_type_kind().is_qbytearray()) [INFO] [stderr] 40 | | .is_some(); [INFO] [stderr] | |__________________^ [INFO] [stderr] | [INFO] [stderr] = note: replace `find(|property| property.variable_type().cpp_type_kind().is_qbytearray()).is_some()` with `any(|property| property.variable_type().cpp_type_kind().is_qbytearray())` [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#search_is_some [INFO] [stderr] [INFO] [stderr] error: handle written amount returned or use `Write::write_all` instead [INFO] [stderr] --> src/gen/core/map.rs:42:9 [INFO] [stderr] | [INFO] [stderr] 42 | write.write(item.as_bytes())?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::unused_io_amount)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_io_amount [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/gen/cpp/source/helper/complex_type_helper.rs:10:64 [INFO] [stderr] | [INFO] [stderr] 10 | pub(super) fn gen_qstring_helper(write: &mut W, properties: &Vec<&Property>) -> Result<()> [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: change this to: `&[&Property]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::ptr_arg)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: called `is_some()` after searching an `Iterator` with find. This is more succinctly expressed by calling `any()`. [INFO] [stderr] --> src/gen/cpp/source/helper/complex_type_helper.rs:14:23 [INFO] [stderr] | [INFO] [stderr] 14 | let has_qstring = properties [INFO] [stderr] | _______________________^ [INFO] [stderr] 15 | | .iter() [INFO] [stderr] 16 | | .find(|property| property.variable_type().cpp_type_kind().is_qstring()) [INFO] [stderr] 17 | | .is_some(); [INFO] [stderr] | |__________________^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::search_is_some)] on by default [INFO] [stderr] = note: replace `find(|property| property.variable_type().cpp_type_kind().is_qstring()).is_some()` with `any(|property| property.variable_type().cpp_type_kind().is_qstring())` [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#search_is_some [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/gen/cpp/source/helper/complex_type_helper.rs:33:67 [INFO] [stderr] | [INFO] [stderr] 33 | pub(super) fn gen_qbytearray_helper(write: &mut W, properties: &Vec<&Property>) -> Result<()> [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: change this to: `&[&Property]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: called `is_some()` after searching an `Iterator` with find. This is more succinctly expressed by calling `any()`. [INFO] [stderr] --> src/gen/cpp/source/helper/complex_type_helper.rs:37:23 [INFO] [stderr] | [INFO] [stderr] 37 | let has_qstring = properties [INFO] [stderr] | _______________________^ [INFO] [stderr] 38 | | .iter() [INFO] [stderr] 39 | | .find(|property| property.variable_type().cpp_type_kind().is_qbytearray()) [INFO] [stderr] 40 | | .is_some(); [INFO] [stderr] | |__________________^ [INFO] [stderr] | [INFO] [stderr] = note: replace `find(|property| property.variable_type().cpp_type_kind().is_qbytearray()).is_some()` with `any(|property| property.variable_type().cpp_type_kind().is_qbytearray())` [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#search_is_some [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] error: Could not compile `qt-binding-generator`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `"docker" "inspect" "1b36bb085da3f1bddacf37b40bdccdd1d1f54b51ea24179e06221d4da9ffee9b"` [INFO] running `"docker" "rm" "-f" "1b36bb085da3f1bddacf37b40bdccdd1d1f54b51ea24179e06221d4da9ffee9b"` [INFO] [stdout] 1b36bb085da3f1bddacf37b40bdccdd1d1f54b51ea24179e06221d4da9ffee9b