[INFO] updating cached repository lightspeedgraphics/optix-rs [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/lightspeedgraphics/optix-rs [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/lightspeedgraphics/optix-rs" "work/ex/clippy-test-run/sources/stable/gh/lightspeedgraphics/optix-rs"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/lightspeedgraphics/optix-rs'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/lightspeedgraphics/optix-rs" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/lightspeedgraphics/optix-rs"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/lightspeedgraphics/optix-rs'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 13cb2aa3a8b300e1b7ba00ec1694a3f0a897ec67 [INFO] sha for GitHub repo lightspeedgraphics/optix-rs: 13cb2aa3a8b300e1b7ba00ec1694a3f0a897ec67 [INFO] validating manifest of lightspeedgraphics/optix-rs 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 lightspeedgraphics/optix-rs 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 lightspeedgraphics/optix-rs [INFO] finished frobbing lightspeedgraphics/optix-rs [INFO] frobbed toml for lightspeedgraphics/optix-rs written to work/ex/clippy-test-run/sources/stable/gh/lightspeedgraphics/optix-rs/Cargo.toml [INFO] started frobbing lightspeedgraphics/optix-rs [INFO] finished frobbing lightspeedgraphics/optix-rs [INFO] frobbed toml for lightspeedgraphics/optix-rs written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/lightspeedgraphics/optix-rs/Cargo.toml [INFO] crate lightspeedgraphics/optix-rs 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 lightspeedgraphics/optix-rs 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/gh/lightspeedgraphics/optix-rs:/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] 2dd4061f62088c8703048a0095a4da64aef813a0f56ba71d100dcf22cf42ba5f [INFO] running `"docker" "start" "-a" "2dd4061f62088c8703048a0095a4da64aef813a0f56ba71d100dcf22cf42ba5f"` [INFO] [stderr] Checking shared_library v0.1.8 [INFO] [stderr] Checking optix v0.2.0 (/opt/crater/workdir) [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> src/native.rs:126:25 [INFO] [stderr] | [INFO] [stderr] 126 | const LAYERED = 2097152; [INFO] [stderr] | ^^^^^^^ help: consider: `2_097_152` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::unreadable_literal)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> src/native.rs:127:26 [INFO] [stderr] | [INFO] [stderr] 127 | const CUBE_MAP = 4194304; [INFO] [stderr] | ^^^^^^^ help: consider: `4_194_304` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> src/native.rs:152:11 [INFO] [stderr] | [INFO] [stderr] 152 | All = 2147483647, [INFO] [stderr] | ^^^^^^^^^^ help: consider: `2_147_483_647` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> src/native.rs:206:37 [INFO] [stderr] | [INFO] [stderr] 206 | ExperimentalExecutionStrategy = 268435456, [INFO] [stderr] | ^^^^^^^^^ help: consider: `268_435_456` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> src/native.rs:219:29 [INFO] [stderr] | [INFO] [stderr] 219 | AvailableDeviceMemory = 268435456, [INFO] [stderr] | ^^^^^^^^^ help: consider: `268_435_456` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: unneeded unit return type [INFO] [stderr] --> src/wrapper.rs:14:38 [INFO] [stderr] | [INFO] [stderr] 14 | fn panic_error(error: native::Error) -> () { [INFO] [stderr] | ^^^^^ help: remove the `-> ()` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::unused_unit)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> src/native.rs:126:25 [INFO] [stderr] | [INFO] [stderr] 126 | const LAYERED = 2097152; [INFO] [stderr] | ^^^^^^^ help: consider: `2_097_152` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::unreadable_literal)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> src/native.rs:127:26 [INFO] [stderr] | [INFO] [stderr] 127 | const CUBE_MAP = 4194304; [INFO] [stderr] | ^^^^^^^ help: consider: `4_194_304` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> src/native.rs:152:11 [INFO] [stderr] | [INFO] [stderr] 152 | All = 2147483647, [INFO] [stderr] | ^^^^^^^^^^ help: consider: `2_147_483_647` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> src/native.rs:206:37 [INFO] [stderr] | [INFO] [stderr] 206 | ExperimentalExecutionStrategy = 268435456, [INFO] [stderr] | ^^^^^^^^^ help: consider: `268_435_456` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> src/native.rs:219:29 [INFO] [stderr] | [INFO] [stderr] 219 | AvailableDeviceMemory = 268435456, [INFO] [stderr] | ^^^^^^^^^ help: consider: `268_435_456` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: unneeded unit return type [INFO] [stderr] --> src/wrapper.rs:14:38 [INFO] [stderr] | [INFO] [stderr] 14 | fn panic_error(error: native::Error) -> () { [INFO] [stderr] | ^^^^^ help: remove the `-> ()` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::unused_unit)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit [INFO] [stderr] [INFO] [stderr] warning: item `wrapper::MappedMemory<'a>` has a public `len` method but no corresponding `is_empty` method [INFO] [stderr] --> src/wrapper.rs:304:1 [INFO] [stderr] | [INFO] [stderr] 304 | / impl<'a> MappedMemory<'a> { [INFO] [stderr] 305 | | pub fn from_buffer(buffer: &'a Buffer) -> Result { [INFO] [stderr] 306 | | let length = buffer.byte_size()?; [INFO] [stderr] 307 | | let mut ptr = ptr::null_mut(); [INFO] [stderr] ... | [INFO] [stderr] 334 | | } [INFO] [stderr] 335 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::len_without_is_empty)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty [INFO] [stderr] [INFO] [stderr] warning: item `wrapper::MappedMemoryMut<'a>` has a public `len` method but no corresponding `is_empty` method [INFO] [stderr] --> src/wrapper.rs:357:1 [INFO] [stderr] | [INFO] [stderr] 357 | / impl<'a> MappedMemoryMut<'a> { [INFO] [stderr] 358 | | pub fn from_buffer(buffer: &'a Buffer, mode: MappedMemoryMode) -> Result { [INFO] [stderr] 359 | | let length = buffer.byte_size()?; [INFO] [stderr] 360 | | let mut ptr = ptr::null_mut(); [INFO] [stderr] ... | [INFO] [stderr] 395 | | } [INFO] [stderr] 396 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty [INFO] [stderr] [INFO] [stderr] warning: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) [INFO] [stderr] --> src/wrapper.rs:381:5 [INFO] [stderr] | [INFO] [stderr] 381 | / pub fn get<'b>(&'b mut self) -> &'b mut [u8] { [INFO] [stderr] 382 | | self.memory [INFO] [stderr] 383 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_lifetimes)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stderr] [INFO] [stderr] warning: item `wrapper::MappedMemory<'a>` has a public `len` method but no corresponding `is_empty` method [INFO] [stderr] --> src/wrapper.rs:304:1 [INFO] [stderr] | [INFO] [stderr] 304 | / impl<'a> MappedMemory<'a> { [INFO] [stderr] 305 | | pub fn from_buffer(buffer: &'a Buffer) -> Result { [INFO] [stderr] 306 | | let length = buffer.byte_size()?; [INFO] [stderr] 307 | | let mut ptr = ptr::null_mut(); [INFO] [stderr] ... | [INFO] [stderr] 334 | | } [INFO] [stderr] 335 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::len_without_is_empty)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty [INFO] [stderr] [INFO] [stderr] warning: item `wrapper::MappedMemoryMut<'a>` has a public `len` method but no corresponding `is_empty` method [INFO] [stderr] --> src/wrapper.rs:357:1 [INFO] [stderr] | [INFO] [stderr] 357 | / impl<'a> MappedMemoryMut<'a> { [INFO] [stderr] 358 | | pub fn from_buffer(buffer: &'a Buffer, mode: MappedMemoryMode) -> Result { [INFO] [stderr] 359 | | let length = buffer.byte_size()?; [INFO] [stderr] 360 | | let mut ptr = ptr::null_mut(); [INFO] [stderr] ... | [INFO] [stderr] 395 | | } [INFO] [stderr] 396 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty [INFO] [stderr] [INFO] [stderr] warning: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) [INFO] [stderr] --> src/wrapper.rs:381:5 [INFO] [stderr] | [INFO] [stderr] 381 | / pub fn get<'b>(&'b mut self) -> &'b mut [u8] { [INFO] [stderr] 382 | | self.memory [INFO] [stderr] 383 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_lifetimes)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 9.10s [INFO] running `"docker" "inspect" "2dd4061f62088c8703048a0095a4da64aef813a0f56ba71d100dcf22cf42ba5f"` [INFO] running `"docker" "rm" "-f" "2dd4061f62088c8703048a0095a4da64aef813a0f56ba71d100dcf22cf42ba5f"` [INFO] [stdout] 2dd4061f62088c8703048a0095a4da64aef813a0f56ba71d100dcf22cf42ba5f