[INFO] crate rust_qt_binding_generator 0.2.0 is already in cache [INFO] extracting crate rust_qt_binding_generator 0.2.0 into work/ex/clippy-test-run/sources/stable/reg/rust_qt_binding_generator/0.2.0 [INFO] extracting crate rust_qt_binding_generator 0.2.0 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/rust_qt_binding_generator/0.2.0 [INFO] validating manifest of rust_qt_binding_generator-0.2.0 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 rust_qt_binding_generator-0.2.0 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 rust_qt_binding_generator-0.2.0 [INFO] finished frobbing rust_qt_binding_generator-0.2.0 [INFO] frobbed toml for rust_qt_binding_generator-0.2.0 written to work/ex/clippy-test-run/sources/stable/reg/rust_qt_binding_generator/0.2.0/Cargo.toml [INFO] started frobbing rust_qt_binding_generator-0.2.0 [INFO] finished frobbing rust_qt_binding_generator-0.2.0 [INFO] frobbed toml for rust_qt_binding_generator-0.2.0 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/rust_qt_binding_generator/0.2.0/Cargo.toml [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [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 rust_qt_binding_generator-0.2.0 against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-0/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/reg/rust_qt_binding_generator/0.2.0:/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] f6caac8cf98fdd7d0cbaf7f485112613b4eb73937e8b270d85fbdbf466f3df28 [INFO] running `"docker" "start" "-a" "f6caac8cf98fdd7d0cbaf7f485112613b4eb73937e8b270d85fbdbf466f3df28"` [INFO] [stderr] Checking serde-xml-rs v0.2.1 [INFO] [stderr] Checking cc v1.0.28 [INFO] [stderr] Checking rust_qt_binding_generator v0.2.0 (/opt/crater/workdir) [INFO] [stderr] warning: use of `expect` followed by a function call [INFO] [stderr] --> src/build.rs:24:38 [INFO] [stderr] | [INFO] [stderr] 24 | let bytes = ::std::fs::read(qrc).expect(&format!("Could not read {}", qrc.display())); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|_| panic!("Could not read {}", qrc.display()))` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::expect_fun_call)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call [INFO] [stderr] [INFO] [stderr] warning: use of `expect` followed by a function call [INFO] [stderr] --> src/build.rs:25:29 [INFO] [stderr] | [INFO] [stderr] 25 | deserialize(&bytes[..]).expect(&format!("could not parse {}", qrc.display())) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|_| panic!("could not parse {}", qrc.display()))` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call [INFO] [stderr] [INFO] [stderr] error: handle written amount returned or use `Write::write_all` instead [INFO] [stderr] --> src/build.rs:54:13 [INFO] [stderr] | [INFO] [stderr] 54 | / io::stderr().write(&output.stderr).expect( [INFO] [stderr] 55 | | "Could not write to stderr.", [INFO] [stderr] 56 | | ); [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: the function has a cyclomatic complexity of 29 [INFO] [stderr] --> src/cpp.rs:370:1 [INFO] [stderr] | [INFO] [stderr] 370 | / fn write_cpp_object(w: &mut Vec, o: &Object, conf: &Config) -> Result<()> { [INFO] [stderr] 371 | | let lcname = snake_case(&o.name); [INFO] [stderr] 372 | | writeln!( [INFO] [stderr] 373 | | w, [INFO] [stderr] ... | [INFO] [stderr] 602 | | Ok(()) [INFO] [stderr] 603 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cyclomatic_complexity)] on by default [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: use of `expect` followed by a function call [INFO] [stderr] --> src/build.rs:24:38 [INFO] [stderr] | [INFO] [stderr] 24 | let bytes = ::std::fs::read(qrc).expect(&format!("Could not read {}", qrc.display())); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|_| panic!("Could not read {}", qrc.display()))` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::expect_fun_call)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call [INFO] [stderr] [INFO] [stderr] warning: use of `expect` followed by a function call [INFO] [stderr] --> src/build.rs:25:29 [INFO] [stderr] | [INFO] [stderr] 25 | deserialize(&bytes[..]).expect(&format!("could not parse {}", qrc.display())) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|_| panic!("could not parse {}", qrc.display()))` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 30 [INFO] [stderr] --> src/cpp.rs:785:1 [INFO] [stderr] | [INFO] [stderr] 785 | / fn write_cpp_model(w: &mut Vec, o: &Object) -> Result<()> { [INFO] [stderr] 786 | | let lcname = snake_case(&o.name); [INFO] [stderr] 787 | | let (index_decl, index) = if o.object_type == ObjectType::Tree { [INFO] [stderr] 788 | | (", quintptr", ", index.internalId()") [INFO] [stderr] ... | [INFO] [stderr] 1191 | | Ok(()) [INFO] [stderr] 1192 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] error: handle written amount returned or use `Write::write_all` instead [INFO] [stderr] --> src/build.rs:54:13 [INFO] [stderr] | [INFO] [stderr] 54 | / io::stderr().write(&output.stderr).expect( [INFO] [stderr] 55 | | "Could not write to stderr.", [INFO] [stderr] 56 | | ); [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: the function has a cyclomatic complexity of 62 [INFO] [stderr] --> src/rust.rs:290:1 [INFO] [stderr] | [INFO] [stderr] 290 | / fn write_rust_interface_object(r: &mut Vec, o: &Object, conf: &Config) -> Result<()> { [INFO] [stderr] 291 | | let lcname = snake_case(&o.name); [INFO] [stderr] 292 | | writeln!( [INFO] [stderr] 293 | | r, [INFO] [stderr] ... | [INFO] [stderr] 1103 | | Ok(()) [INFO] [stderr] 1104 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 29 [INFO] [stderr] --> src/cpp.rs:370:1 [INFO] [stderr] | [INFO] [stderr] 370 | / fn write_cpp_object(w: &mut Vec, o: &Object, conf: &Config) -> Result<()> { [INFO] [stderr] 371 | | let lcname = snake_case(&o.name); [INFO] [stderr] 372 | | writeln!( [INFO] [stderr] 373 | | w, [INFO] [stderr] ... | [INFO] [stderr] 602 | | Ok(()) [INFO] [stderr] 603 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cyclomatic_complexity)] on by default [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 30 [INFO] [stderr] --> src/cpp.rs:785:1 [INFO] [stderr] | [INFO] [stderr] 785 | / fn write_cpp_model(w: &mut Vec, o: &Object) -> Result<()> { [INFO] [stderr] 786 | | let lcname = snake_case(&o.name); [INFO] [stderr] 787 | | let (index_decl, index) = if o.object_type == ObjectType::Tree { [INFO] [stderr] 788 | | (", quintptr", ", index.internalId()") [INFO] [stderr] ... | [INFO] [stderr] 1191 | | Ok(()) [INFO] [stderr] 1192 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 30 [INFO] [stderr] --> src/rust.rs:1285:1 [INFO] [stderr] | [INFO] [stderr] 1285 | / fn write_rust_implementation_object(r: &mut Vec, o: &Object) -> Result<()> { [INFO] [stderr] 1286 | | if o.object_type != ObjectType::Object { [INFO] [stderr] 1287 | | writeln!(r, "#[derive(Default, Clone)]")?; [INFO] [stderr] 1288 | | writeln!(r, "struct {}Item {{", o.name)?; [INFO] [stderr] ... | [INFO] [stderr] 1495 | | writeln!(r, "}}") [INFO] [stderr] 1496 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 62 [INFO] [stderr] --> src/rust.rs:290:1 [INFO] [stderr] | [INFO] [stderr] 290 | / fn write_rust_interface_object(r: &mut Vec, o: &Object, conf: &Config) -> Result<()> { [INFO] [stderr] 291 | | let lcname = snake_case(&o.name); [INFO] [stderr] 292 | | writeln!( [INFO] [stderr] 293 | | r, [INFO] [stderr] ... | [INFO] [stderr] 1103 | | Ok(()) [INFO] [stderr] 1104 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] error: Could not compile `rust_qt_binding_generator`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: the function has a cyclomatic complexity of 30 [INFO] [stderr] --> src/rust.rs:1285:1 [INFO] [stderr] | [INFO] [stderr] 1285 | / fn write_rust_implementation_object(r: &mut Vec, o: &Object) -> Result<()> { [INFO] [stderr] 1286 | | if o.object_type != ObjectType::Object { [INFO] [stderr] 1287 | | writeln!(r, "#[derive(Default, Clone)]")?; [INFO] [stderr] 1288 | | writeln!(r, "struct {}Item {{", o.name)?; [INFO] [stderr] ... | [INFO] [stderr] 1495 | | writeln!(r, "}}") [INFO] [stderr] 1496 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] error: Could not compile `rust_qt_binding_generator`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "f6caac8cf98fdd7d0cbaf7f485112613b4eb73937e8b270d85fbdbf466f3df28"` [INFO] running `"docker" "rm" "-f" "f6caac8cf98fdd7d0cbaf7f485112613b4eb73937e8b270d85fbdbf466f3df28"` [INFO] [stdout] f6caac8cf98fdd7d0cbaf7f485112613b4eb73937e8b270d85fbdbf466f3df28