[INFO] crate fast_fmt 0.1.3 is already in cache [INFO] extracting crate fast_fmt 0.1.3 into work/ex/clippy-test-run/sources/stable/reg/fast_fmt/0.1.3 [INFO] extracting crate fast_fmt 0.1.3 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/fast_fmt/0.1.3 [INFO] validating manifest of fast_fmt-0.1.3 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 fast_fmt-0.1.3 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 fast_fmt-0.1.3 [INFO] finished frobbing fast_fmt-0.1.3 [INFO] frobbed toml for fast_fmt-0.1.3 written to work/ex/clippy-test-run/sources/stable/reg/fast_fmt/0.1.3/Cargo.toml [INFO] started frobbing fast_fmt-0.1.3 [INFO] finished frobbing fast_fmt-0.1.3 [INFO] frobbed toml for fast_fmt-0.1.3 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/fast_fmt/0.1.3/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 fast_fmt-0.1.3 against stable+rustflags=-Dclippy::into_iter_on_array for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-3/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/fast_fmt/0.1.3:/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 -Dclippy::into_iter_on_array" "-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] 052d5c6bd64b3846f6139b9ac0c3cad09e67d608bde7c8ca82e917d80b66f4cf [INFO] running `"docker" "start" "-a" "052d5c6bd64b3846f6139b9ac0c3cad09e67d608bde7c8ca82e917d80b66f4cf"` [INFO] [stderr] Checking numtoa v0.0.7 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking fast_fmt v0.1.3 (/opt/crater/workdir) [INFO] [stderr] warning: use of `offset` with a `usize` casted to an `isize` [INFO] [stderr] --> src/int_impls.rs:26:35 [INFO] [stderr] | [INFO] [stderr] 26 | let ptr = buffer.as_ptr().offset(start as isize); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `buffer.as_ptr().add(start)` [INFO] [stderr] ... [INFO] [stderr] 42 | / impls! { [INFO] [stderr] 43 | | (i8, 4), [INFO] [stderr] 44 | | (i16, 6), [INFO] [stderr] 45 | | (i32, 11), [INFO] [stderr] ... | [INFO] [stderr] 50 | | (u64, 20), [INFO] [stderr] 51 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::ptr_offset_with_cast)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast [INFO] [stderr] [INFO] [stderr] warning: use of `offset` with a `usize` casted to an `isize` [INFO] [stderr] --> src/int_impls.rs:26:35 [INFO] [stderr] | [INFO] [stderr] 26 | let ptr = buffer.as_ptr().offset(start as isize); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `buffer.as_ptr().add(start)` [INFO] [stderr] ... [INFO] [stderr] 42 | / impls! { [INFO] [stderr] 43 | | (i8, 4), [INFO] [stderr] 44 | | (i16, 6), [INFO] [stderr] 45 | | (i32, 11), [INFO] [stderr] ... | [INFO] [stderr] 50 | | (u64, 20), [INFO] [stderr] 51 | | } [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#ptr_offset_with_cast [INFO] [stderr] [INFO] [stderr] warning: use of `offset` with a `usize` casted to an `isize` [INFO] [stderr] --> src/int_impls.rs:26:35 [INFO] [stderr] | [INFO] [stderr] 26 | let ptr = buffer.as_ptr().offset(start as isize); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `buffer.as_ptr().add(start)` [INFO] [stderr] ... [INFO] [stderr] 42 | / impls! { [INFO] [stderr] 43 | | (i8, 4), [INFO] [stderr] 44 | | (i16, 6), [INFO] [stderr] 45 | | (i32, 11), [INFO] [stderr] ... | [INFO] [stderr] 50 | | (u64, 20), [INFO] [stderr] 51 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::ptr_offset_with_cast)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast [INFO] [stderr] [INFO] [stderr] warning: use of `offset` with a `usize` casted to an `isize` [INFO] [stderr] --> src/int_impls.rs:26:35 [INFO] [stderr] | [INFO] [stderr] 26 | let ptr = buffer.as_ptr().offset(start as isize); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `buffer.as_ptr().add(start)` [INFO] [stderr] ... [INFO] [stderr] 42 | / impls! { [INFO] [stderr] 43 | | (i8, 4), [INFO] [stderr] 44 | | (i16, 6), [INFO] [stderr] 45 | | (i32, 11), [INFO] [stderr] ... | [INFO] [stderr] 50 | | (u64, 20), [INFO] [stderr] 51 | | } [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#ptr_offset_with_cast [INFO] [stderr] [INFO] [stderr] warning: The function/method `::Write::uses_size_hint` doesn't need a mutable reference [INFO] [stderr] --> src/lib.rs:392:25 [INFO] [stderr] | [INFO] [stderr] 392 | fwrite!(&mut buf, "Hello world!").unwrap(); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::unnecessary_mut_passed)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on a string literal [INFO] [stderr] --> src/lib.rs:394:37 [INFO] [stderr] | [INFO] [stderr] 394 | assert_eq!(&buf[0..12], "HELLO WORLD!".as_bytes()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b"HELLO WORLD!"` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::string_lit_as_bytes)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] warning: The function/method `::Write::uses_size_hint` doesn't need a mutable reference [INFO] [stderr] --> src/lib.rs:401:25 [INFO] [stderr] | [INFO] [stderr] 401 | fwrite!(&mut buf, "Hello", " world!".transformed(Upper)).unwrap(); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on a string literal [INFO] [stderr] --> src/lib.rs:403:37 [INFO] [stderr] | [INFO] [stderr] 403 | assert_eq!(&buf[0..12], "Hello WORLD!".as_bytes()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b"Hello WORLD!"` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.19s [INFO] running `"docker" "inspect" "052d5c6bd64b3846f6139b9ac0c3cad09e67d608bde7c8ca82e917d80b66f4cf"` [INFO] running `"docker" "rm" "-f" "052d5c6bd64b3846f6139b9ac0c3cad09e67d608bde7c8ca82e917d80b66f4cf"` [INFO] [stdout] 052d5c6bd64b3846f6139b9ac0c3cad09e67d608bde7c8ca82e917d80b66f4cf