[INFO] crate xproto 1.1.4 is already in cache [INFO] extracting crate xproto 1.1.4 into work/ex/clippy-test-run/sources/stable/reg/xproto/1.1.4 [INFO] extracting crate xproto 1.1.4 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/xproto/1.1.4 [INFO] validating manifest of xproto-1.1.4 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 xproto-1.1.4 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 xproto-1.1.4 [INFO] finished frobbing xproto-1.1.4 [INFO] frobbed toml for xproto-1.1.4 written to work/ex/clippy-test-run/sources/stable/reg/xproto/1.1.4/Cargo.toml [INFO] started frobbing xproto-1.1.4 [INFO] finished frobbing xproto-1.1.4 [INFO] frobbed toml for xproto-1.1.4 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/xproto/1.1.4/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 xproto-1.1.4 against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-1/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/reg/xproto/1.1.4:/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] 25fe88f24949bb514aab97d47d43ac9a276f5f24cbc51cae866dd06f898a5c36 [INFO] running `"docker" "start" "-a" "25fe88f24949bb514aab97d47d43ac9a276f5f24cbc51cae866dd06f898a5c36"` [INFO] [stderr] Checking uuid v0.6.5 [INFO] [stderr] Compiling syn v0.15.26 [INFO] [stderr] Checking flate2 v1.0.6 [INFO] [stderr] Checking protocol v1.0.3 [INFO] [stderr] Compiling protocol-derive v1.0.3 [INFO] [stderr] Checking xproto v1.1.4 (/opt/crater/workdir) [INFO] [stderr] warning: defining a method called `as_ref` on this type; consider implementing the `std::convert::AsRef` trait or choosing a less ambiguous name [INFO] [stderr] --> src/bindings.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | / pub unsafe fn as_ref(&self) -> &T { [INFO] [stderr] 13 | | ::std::mem::transmute(self) [INFO] [stderr] 14 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::should_implement_trait)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait [INFO] [stderr] [INFO] [stderr] warning: transmute from a reference to a reference [INFO] [stderr] --> src/bindings.rs:13:9 [INFO] [stderr] | [INFO] [stderr] 13 | ::std::mem::transmute(self) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&*(self as *const bindings::__BindgenUnionField as *const T)` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::transmute_ptr_to_ptr)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#transmute_ptr_to_ptr [INFO] [stderr] [INFO] [stderr] warning: defining a method called `as_mut` on this type; consider implementing the `std::convert::AsMut` trait or choosing a less ambiguous name [INFO] [stderr] --> src/bindings.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | / pub unsafe fn as_mut(&mut self) -> &mut T { [INFO] [stderr] 17 | | ::std::mem::transmute(self) [INFO] [stderr] 18 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait [INFO] [stderr] [INFO] [stderr] warning: transmute from a reference to a reference [INFO] [stderr] --> src/bindings.rs:17:9 [INFO] [stderr] | [INFO] [stderr] 17 | ::std::mem::transmute(self) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&mut *(self as *mut bindings::__BindgenUnionField as *mut T)` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#transmute_ptr_to_ptr [INFO] [stderr] [INFO] [stderr] warning: defining a method called `as_ref` on this type; consider implementing the `std::convert::AsRef` trait or choosing a less ambiguous name [INFO] [stderr] --> src/bindings.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | / pub unsafe fn as_ref(&self) -> &T { [INFO] [stderr] 13 | | ::std::mem::transmute(self) [INFO] [stderr] 14 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::should_implement_trait)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait [INFO] [stderr] [INFO] [stderr] warning: transmute from a reference to a reference [INFO] [stderr] --> src/bindings.rs:13:9 [INFO] [stderr] | [INFO] [stderr] 13 | ::std::mem::transmute(self) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&*(self as *const bindings::__BindgenUnionField as *const T)` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::transmute_ptr_to_ptr)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#transmute_ptr_to_ptr [INFO] [stderr] [INFO] [stderr] warning: defining a method called `as_mut` on this type; consider implementing the `std::convert::AsMut` trait or choosing a less ambiguous name [INFO] [stderr] --> src/bindings.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | / pub unsafe fn as_mut(&mut self) -> &mut T { [INFO] [stderr] 17 | | ::std::mem::transmute(self) [INFO] [stderr] 18 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait [INFO] [stderr] [INFO] [stderr] warning: transmute from a reference to a reference [INFO] [stderr] --> src/bindings.rs:17:9 [INFO] [stderr] | [INFO] [stderr] 17 | ::std::mem::transmute(self) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&mut *(self as *mut bindings::__BindgenUnionField as *mut T)` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#transmute_ptr_to_ptr [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 29 [INFO] [stderr] --> src/bindings.rs:11311:1 [INFO] [stderr] | [INFO] [stderr] 11311 | / fn bindgen_test_layout__xEvent__bindgen_ty_1() { [INFO] [stderr] 11312 | | assert_eq!( [INFO] [stderr] 11313 | | ::std::mem::size_of::<_xEvent__bindgen_ty_1>(), [INFO] [stderr] 11314 | | 32usize, [INFO] [stderr] ... | [INFO] [stderr] 11615 | | ); [INFO] [stderr] 11616 | | } [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 41 [INFO] [stderr] --> src/bindings.rs:11874:1 [INFO] [stderr] | [INFO] [stderr] 11874 | / fn bindgen_test_layout_xReply() { [INFO] [stderr] 11875 | | assert_eq!( [INFO] [stderr] 11876 | | ::std::mem::size_of::(), [INFO] [stderr] 11877 | | 32usize, [INFO] [stderr] ... | [INFO] [stderr] 12264 | | ); [INFO] [stderr] 12265 | | } [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] Finished dev [unoptimized + debuginfo] target(s) in 35.92s [INFO] running `"docker" "inspect" "25fe88f24949bb514aab97d47d43ac9a276f5f24cbc51cae866dd06f898a5c36"` [INFO] running `"docker" "rm" "-f" "25fe88f24949bb514aab97d47d43ac9a276f5f24cbc51cae866dd06f898a5c36"` [INFO] [stdout] 25fe88f24949bb514aab97d47d43ac9a276f5f24cbc51cae866dd06f898a5c36