[INFO] crate cpp_new 0.1.0 is already in cache [INFO] extracting crate cpp_new 0.1.0 into work/ex/clippy-test-run/sources/stable/reg/cpp_new/0.1.0 [INFO] extracting crate cpp_new 0.1.0 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/cpp_new/0.1.0 [INFO] validating manifest of cpp_new-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 cpp_new-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 cpp_new-0.1.0 [INFO] finished frobbing cpp_new-0.1.0 [INFO] frobbed toml for cpp_new-0.1.0 written to work/ex/clippy-test-run/sources/stable/reg/cpp_new/0.1.0/Cargo.toml [INFO] started frobbing cpp_new-0.1.0 [INFO] finished frobbing cpp_new-0.1.0 [INFO] frobbed toml for cpp_new-0.1.0 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/cpp_new/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 cpp_new-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-6/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/reg/cpp_new/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] bed5bedc79067981f2c2b4557d3fd82f10cb07d5fa7fde8322bee3f0dcc799e8 [INFO] running `"docker" "start" "-a" "bed5bedc79067981f2c2b4557d3fd82f10cb07d5fa7fde8322bee3f0dcc799e8"` [INFO] [stderr] Compiling cpp_new v0.1.0 (/opt/crater/workdir) [INFO] [stderr] Compiling cpp_new_simple_cpp_lib v0.1.0 [INFO] [stderr] warning: src/new.cpp:17:6: warning: the program should also define 'void operator delete(void*, std::size_t)' [-Wsized-deallocation] [INFO] [stderr] warning: void operator delete(void* const payload) throw() { [INFO] [stderr] warning: ^~~~~~~~ [INFO] [stderr] warning: src/new.cpp:21:6: warning: the program should also define 'void operator delete [](void*, std::size_t)' [-Wsized-deallocation] [INFO] [stderr] warning: void operator delete[](void* const payload) throw() { [INFO] [stderr] warning: ^~~~~~~~ [INFO] [stderr] warning: use of `offset` with a `usize` casted to an `isize` [INFO] [stderr] --> src/lib.rs:30:21 [INFO] [stderr] | [INFO] [stderr] 30 | allocation.offset(new_alignment as isize); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `allocation.add(new_alignment)` [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] error: casting from `*mut u8` to a more-strictly-aligned pointer (`*mut std::alloc::Layout`) [INFO] [stderr] --> src/lib.rs:32:21 [INFO] [stderr] | [INFO] [stderr] 32 | result_allocation.offset(-(offset as isize)) as *mut Layout; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::cast_ptr_alignment)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_ptr_alignment [INFO] [stderr] [INFO] [stderr] error: casting from `*mut u8` to a more-strictly-aligned pointer (`*const std::alloc::Layout`) [INFO] [stderr] --> src/lib.rs:49:13 [INFO] [stderr] | [INFO] [stderr] 49 | result_allocation.offset(-(offset as isize)) as *const Layout; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_ptr_alignment [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors [INFO] [stderr] [INFO] [stderr] The following warnings were emitted during compilation: [INFO] [stderr] [INFO] [stderr] warning: src/new.cpp:17:6: warning: the program should also define 'void operator delete(void*, std::size_t)' [-Wsized-deallocation] [INFO] [stderr] warning: void operator delete(void* const payload) throw() { [INFO] [stderr] warning: ^~~~~~~~ [INFO] [stderr] warning: src/new.cpp:21:6: warning: the program should also define 'void operator delete [](void*, std::size_t)' [-Wsized-deallocation] [INFO] [stderr] warning: void operator delete[](void* const payload) throw() { [INFO] [stderr] warning: ^~~~~~~~ [INFO] [stderr] [INFO] [stderr] error: Could not compile `cpp_new`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: use of `offset` with a `usize` casted to an `isize` [INFO] [stderr] --> src/lib.rs:30:21 [INFO] [stderr] | [INFO] [stderr] 30 | allocation.offset(new_alignment as isize); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `allocation.add(new_alignment)` [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] error: casting from `*mut u8` to a more-strictly-aligned pointer (`*mut std::alloc::Layout`) [INFO] [stderr] --> src/lib.rs:32:21 [INFO] [stderr] | [INFO] [stderr] 32 | result_allocation.offset(-(offset as isize)) as *mut Layout; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::cast_ptr_alignment)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_ptr_alignment [INFO] [stderr] [INFO] [stderr] error: casting from `*mut u8` to a more-strictly-aligned pointer (`*const std::alloc::Layout`) [INFO] [stderr] --> src/lib.rs:49:13 [INFO] [stderr] | [INFO] [stderr] 49 | result_allocation.offset(-(offset as isize)) as *const Layout; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_ptr_alignment [INFO] [stderr] [INFO] [stderr] warning: use of a blacklisted/placeholder name `foo` [INFO] [stderr] --> src/lib.rs:67:13 [INFO] [stderr] | [INFO] [stderr] 67 | let foo = safe_create_foo(); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::blacklisted_name)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#blacklisted_name [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/lib.rs:70:9 [INFO] [stderr] | [INFO] [stderr] 70 | assert_eq!(foo.f, 42.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::float_cmp)] on by default [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/lib.rs:70:9 [INFO] [stderr] | [INFO] [stderr] 70 | assert_eq!(foo.f, 42.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of a blacklisted/placeholder name `foo` [INFO] [stderr] --> src/lib.rs:80:13 [INFO] [stderr] | [INFO] [stderr] 80 | for foo in foos.iter() { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#blacklisted_name [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/lib.rs:82:13 [INFO] [stderr] | [INFO] [stderr] 82 | assert_eq!(foo.f, 42.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/lib.rs:82:13 [INFO] [stderr] | [INFO] [stderr] 82 | assert_eq!(foo.f, 42.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: aborting due to 4 previous errors [INFO] [stderr] [INFO] [stderr] The following warnings were emitted during compilation: [INFO] [stderr] [INFO] [stderr] warning: src/new.cpp:17:6: warning: the program should also define 'void operator delete(void*, std::size_t)' [-Wsized-deallocation] [INFO] [stderr] warning: void operator delete(void* const payload) throw() { [INFO] [stderr] warning: ^~~~~~~~ [INFO] [stderr] warning: src/new.cpp:21:6: warning: the program should also define 'void operator delete [](void*, std::size_t)' [-Wsized-deallocation] [INFO] [stderr] warning: void operator delete[](void* const payload) throw() { [INFO] [stderr] warning: ^~~~~~~~ [INFO] [stderr] [INFO] [stderr] error: Could not compile `cpp_new`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "bed5bedc79067981f2c2b4557d3fd82f10cb07d5fa7fde8322bee3f0dcc799e8"` [INFO] running `"docker" "rm" "-f" "bed5bedc79067981f2c2b4557d3fd82f10cb07d5fa7fde8322bee3f0dcc799e8"` [INFO] [stdout] bed5bedc79067981f2c2b4557d3fd82f10cb07d5fa7fde8322bee3f0dcc799e8