[INFO] crate mumble-link 0.1.0 is already in cache [INFO] extracting crate mumble-link 0.1.0 into work/ex/clippy-test-run/sources/stable/reg/mumble-link/0.1.0 [INFO] extracting crate mumble-link 0.1.0 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/mumble-link/0.1.0 [INFO] validating manifest of mumble-link-0.1.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 mumble-link-0.1.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 mumble-link-0.1.0 [INFO] finished frobbing mumble-link-0.1.0 [INFO] frobbed toml for mumble-link-0.1.0 written to work/ex/clippy-test-run/sources/stable/reg/mumble-link/0.1.0/Cargo.toml [INFO] started frobbing mumble-link-0.1.0 [INFO] finished frobbing mumble-link-0.1.0 [INFO] frobbed toml for mumble-link-0.1.0 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/mumble-link/0.1.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 mumble-link-0.1.0 against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-3/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/reg/mumble-link/0.1.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] b46e9b611b70d84db596c8dcbfbe1c19a4e71268b24774e028929c26b927f70b [INFO] running `"docker" "start" "-a" "b46e9b611b70d84db596c8dcbfbe1c19a4e71268b24774e028929c26b927f70b"` [INFO] [stderr] Checking mumble-link v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/unix.rs:53:17 [INFO] [stderr] | [INFO] [stderr] 53 | fd: fd, [INFO] [stderr] | ^^^^^^ help: replace it with: `fd` [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/unix.rs:54:17 [INFO] [stderr] | [INFO] [stderr] 54 | ptr: ptr, [INFO] [stderr] | ^^^^^^^^ help: replace it with: `ptr` [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/unix.rs:53:17 [INFO] [stderr] | [INFO] [stderr] 53 | fd: fd, [INFO] [stderr] | ^^^^^^ help: replace it with: `fd` [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/unix.rs:54:17 [INFO] [stderr] | [INFO] [stderr] 54 | ptr: ptr, [INFO] [stderr] | ^^^^^^^^ help: replace it with: `ptr` [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: unused macro definition [INFO] [stderr] --> src/lib.rs:14:1 [INFO] [stderr] | [INFO] [stderr] 14 | / macro_rules! wide { [INFO] [stderr] 15 | | ($($ch:ident)*) => { [INFO] [stderr] 16 | | [$(stringify!($ch).as_bytes()[0] as ::libc::wchar_t,)* 0] [INFO] [stderr] 17 | | } [INFO] [stderr] 18 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_macros)] on by default [INFO] [stderr] [INFO] [stderr] warning: use of `unwrap_or` followed by a function call [INFO] [stderr] --> src/unix.rs:17:49 [INFO] [stderr] | [INFO] [stderr] 17 | let zero = src.iter().position(|&c| c == 0).unwrap_or(src.len()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| src.len())` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::or_fun_call)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> examples/simple.rs:90:13 [INFO] [stderr] | [INFO] [stderr] 90 | tick_len: tick_len, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `tick_len` [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: use of `unwrap_or` followed by a function call [INFO] [stderr] --> src/unix.rs:17:49 [INFO] [stderr] | [INFO] [stderr] 17 | let zero = src.iter().position(|&c| c == 0).unwrap_or(src.len()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| src.len())` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::or_fun_call)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call [INFO] [stderr] [INFO] [stderr] warning: casting u8 to i32 may become silently lossy if types change [INFO] [stderr] --> src/lib.rs:16:12 [INFO] [stderr] | [INFO] [stderr] 16 | [$(stringify!($ch).as_bytes()[0] as ::libc::wchar_t,)* 0] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `i32::from(stringify!($ch).as_bytes()[0])` [INFO] [stderr] ... [INFO] [stderr] 354 | let wide = wide!(M u m b l e L i n k); [INFO] [stderr] | -------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cast_lossless)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to i32 may become silently lossy if types change [INFO] [stderr] --> src/lib.rs:16:12 [INFO] [stderr] | [INFO] [stderr] 16 | [$(stringify!($ch).as_bytes()[0] as ::libc::wchar_t,)* 0] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `i32::from(stringify!($ch).as_bytes()[0])` [INFO] [stderr] ... [INFO] [stderr] 354 | let wide = wide!(M u m b l e L i n k); [INFO] [stderr] | -------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to i32 may become silently lossy if types change [INFO] [stderr] --> src/lib.rs:356:20 [INFO] [stderr] | [INFO] [stderr] 356 | assert_eq!(b as wchar_t, wide[i]); [INFO] [stderr] | ^^^^^^^^^^^^ help: try: `i32::from(b)` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to i32 may become silently lossy if types change [INFO] [stderr] --> src/lib.rs:16:12 [INFO] [stderr] | [INFO] [stderr] 16 | [$(stringify!($ch).as_bytes()[0] as ::libc::wchar_t,)* 0] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `i32::from(stringify!($ch).as_bytes()[0])` [INFO] [stderr] ... [INFO] [stderr] 362 | assert_eq!(&wide[..7], wide!(F o o B a r)); [INFO] [stderr] | ------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to i32 may become silently lossy if types change [INFO] [stderr] --> src/lib.rs:16:12 [INFO] [stderr] | [INFO] [stderr] 16 | [$(stringify!($ch).as_bytes()[0] as ::libc::wchar_t,)* 0] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `i32::from(stringify!($ch).as_bytes()[0])` [INFO] [stderr] ... [INFO] [stderr] 367 | assert_eq!(&wide[..], wide!(A B)); [INFO] [stderr] | ---------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to i32 may become silently lossy if types change [INFO] [stderr] --> src/lib.rs:16:12 [INFO] [stderr] | [INFO] [stderr] 16 | [$(stringify!($ch).as_bytes()[0] as ::libc::wchar_t,)* 0] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `i32::from(stringify!($ch).as_bytes()[0])` [INFO] [stderr] ... [INFO] [stderr] 370 | assert_eq!("BarFoo", imp::read(&wide!(B a r F o o))); [INFO] [stderr] | ------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.52s [INFO] running `"docker" "inspect" "b46e9b611b70d84db596c8dcbfbe1c19a4e71268b24774e028929c26b927f70b"` [INFO] running `"docker" "rm" "-f" "b46e9b611b70d84db596c8dcbfbe1c19a4e71268b24774e028929c26b927f70b"` [INFO] [stdout] b46e9b611b70d84db596c8dcbfbe1c19a4e71268b24774e028929c26b927f70b