[INFO] crate crossbeam-epoch 0.6.1 is already in cache [INFO] extracting crate crossbeam-epoch 0.6.1 into work/ex/clippy-test-run/sources/stable/reg/crossbeam-epoch/0.6.1 [INFO] extracting crate crossbeam-epoch 0.6.1 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/crossbeam-epoch/0.6.1 [INFO] validating manifest of crossbeam-epoch-0.6.1 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 crossbeam-epoch-0.6.1 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 crossbeam-epoch-0.6.1 [INFO] finished frobbing crossbeam-epoch-0.6.1 [INFO] frobbed toml for crossbeam-epoch-0.6.1 written to work/ex/clippy-test-run/sources/stable/reg/crossbeam-epoch/0.6.1/Cargo.toml [INFO] started frobbing crossbeam-epoch-0.6.1 [INFO] finished frobbing crossbeam-epoch-0.6.1 [INFO] frobbed toml for crossbeam-epoch-0.6.1 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/crossbeam-epoch/0.6.1/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 crossbeam-epoch-0.6.1 against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-0/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/reg/crossbeam-epoch/0.6.1:/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] 520fb2257aead2e8e1a3bd653836a68a4416f7ceb7a0f279168513a7a592396d [INFO] running `"docker" "start" "-a" "520fb2257aead2e8e1a3bd653836a68a4416f7ceb7a0f279168513a7a592396d"` [INFO] [stderr] Checking crossbeam-epoch v0.6.1 (/opt/crater/workdir) [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/atomic.rs:610:13 [INFO] [stderr] | [INFO] [stderr] 610 | data: data, [INFO] [stderr] | ^^^^^^^^^^ help: replace it with: `data` [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/atomic.rs:841:13 [INFO] [stderr] | [INFO] [stderr] 841 | data: data, [INFO] [stderr] | ^^^^^^^^^^ help: replace it with: `data` [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/deferred.rs:48:21 [INFO] [stderr] | [INFO] [stderr] 48 | call: call::, [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: replace it with: `call` [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/deferred.rs:63:21 [INFO] [stderr] | [INFO] [stderr] 63 | call: call::, [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: replace it with: `call` [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/atomic.rs:610:13 [INFO] [stderr] | [INFO] [stderr] 610 | data: data, [INFO] [stderr] | ^^^^^^^^^^ help: replace it with: `data` [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/atomic.rs:841:13 [INFO] [stderr] | [INFO] [stderr] 841 | data: data, [INFO] [stderr] | ^^^^^^^^^^ help: replace it with: `data` [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/deferred.rs:48:21 [INFO] [stderr] | [INFO] [stderr] 48 | call: call::, [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: replace it with: `call` [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/deferred.rs:63:21 [INFO] [stderr] | [INFO] [stderr] 63 | call: call::, [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: replace it with: `call` [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: long literal lacking separators [INFO] [stderr] --> src/sync/queue.rs:235:29 [INFO] [stderr] | [INFO] [stderr] 235 | const CONC_COUNT: i64 = 1000000; [INFO] [stderr] | ^^^^^^^ help: consider: `1_000_000` [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: this lifetime isn't used in the function definition [INFO] [stderr] --> src/atomic.rs:255:18 [INFO] [stderr] | [INFO] [stderr] 255 | pub fn store<'g, P: Pointer>(&self, new: P, ord: Ordering) { [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::extra_unused_lifetimes)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [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/atomic.rs:665:5 [INFO] [stderr] | [INFO] [stderr] 665 | / pub fn into_shared<'g>(self, _: &'g Guard) -> Shared<'g, T> { [INFO] [stderr] 666 | | unsafe { Shared::from_usize(self.into_usize()) } [INFO] [stderr] 667 | | } [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: this argument is passed by reference, but would be more efficient if passed by value [INFO] [stderr] --> src/atomic.rs:879:20 [INFO] [stderr] | [INFO] [stderr] 879 | pub fn is_null(&self) -> bool { [INFO] [stderr] | ^^^^^ help: consider passing by value instead: `self` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::trivially_copy_pass_by_ref)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref [INFO] [stderr] [INFO] [stderr] warning: this argument is passed by reference, but would be more efficient if passed by value [INFO] [stderr] --> src/atomic.rs:899:19 [INFO] [stderr] | [INFO] [stderr] 899 | pub fn as_raw(&self) -> *const T { [INFO] [stderr] | ^^^^^ help: consider passing by value instead: `self` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref [INFO] [stderr] [INFO] [stderr] warning: defining a method called `deref` on this type; consider implementing the `std::ops::Deref` trait or choosing a less ambiguous name [INFO] [stderr] --> src/atomic.rs:935:5 [INFO] [stderr] | [INFO] [stderr] 935 | / pub unsafe fn deref(&self) -> &'g T { [INFO] [stderr] 936 | | &*self.as_raw() [INFO] [stderr] 937 | | } [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: this argument is passed by reference, but would be more efficient if passed by value [INFO] [stderr] --> src/atomic.rs:935:25 [INFO] [stderr] | [INFO] [stderr] 935 | pub unsafe fn deref(&self) -> &'g T { [INFO] [stderr] | ^^^^^ help: consider passing by value instead: `self` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref [INFO] [stderr] [INFO] [stderr] warning: this argument is passed by reference, but would be more efficient if passed by value [INFO] [stderr] --> src/atomic.rs:970:26 [INFO] [stderr] | [INFO] [stderr] 970 | pub unsafe fn as_ref(&self) -> Option<&'g T> { [INFO] [stderr] | ^^^^^ help: consider passing by value instead: `self` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref [INFO] [stderr] [INFO] [stderr] warning: Comparing with null is better expressed by the .is_null() method [INFO] [stderr] --> src/atomic.rs:1000:13 [INFO] [stderr] | [INFO] [stderr] 1000 | self.as_raw() != ptr::null(), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cmp_null)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cmp_null [INFO] [stderr] [INFO] [stderr] warning: this argument is passed by reference, but would be more efficient if passed by value [INFO] [stderr] --> src/atomic.rs:1019:16 [INFO] [stderr] | [INFO] [stderr] 1019 | pub fn tag(&self) -> usize { [INFO] [stderr] | ^^^^^ help: consider passing by value instead: `self` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref [INFO] [stderr] [INFO] [stderr] warning: this argument is passed by reference, but would be more efficient if passed by value [INFO] [stderr] --> src/atomic.rs:1042:21 [INFO] [stderr] | [INFO] [stderr] 1042 | pub fn with_tag(&self, tag: usize) -> Shared<'g, T> { [INFO] [stderr] | ^^^^^ help: consider passing by value instead: `self` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref [INFO] [stderr] [INFO] [stderr] warning: you should consider adding a `Default` implementation for `collector::Collector` [INFO] [stderr] --> src/collector.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | / pub fn new() -> Self { [INFO] [stderr] 32 | | Collector { [INFO] [stderr] 33 | | global: Arc::new(Global::new()), [INFO] [stderr] 34 | | } [INFO] [stderr] 35 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::new_without_default)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 29 | impl Default for collector::Collector { [INFO] [stderr] 30 | fn default() -> Self { [INFO] [stderr] 31 | Self::new() [INFO] [stderr] 32 | } [INFO] [stderr] 33 | } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error: casting from `*mut u8` to a more-strictly-aligned pointer (`*mut std::boxed::Box`) [INFO] [stderr] --> src/deferred.rs:58:47 [INFO] [stderr] | [INFO] [stderr] 58 | let b: Box = ptr::read(raw as *mut Box); [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: aborting due to previous error [INFO] [stderr] [INFO] [stderr] error: Could not compile `crossbeam-epoch`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0597]: `i` does not live long enough [INFO] [stderr] --> src/sync/queue.rs:349:38 [INFO] [stderr] | [INFO] [stderr] 349 | scope.spawn(|_| recv(i, &q)); [INFO] [stderr] | --- ^ borrowed value does not live long enough [INFO] [stderr] | | [INFO] [stderr] | capture occurs here [INFO] [stderr] 350 | } [INFO] [stderr] | - borrowed value only lives until here [INFO] [stderr] ... [INFO] [stderr] 357 | }).unwrap(); [INFO] [stderr] | - borrowed value needs to live until here [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0597`. [INFO] [stderr] error: Could not compile `crossbeam-epoch`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "520fb2257aead2e8e1a3bd653836a68a4416f7ceb7a0f279168513a7a592396d"` [INFO] running `"docker" "rm" "-f" "520fb2257aead2e8e1a3bd653836a68a4416f7ceb7a0f279168513a7a592396d"` [INFO] [stdout] 520fb2257aead2e8e1a3bd653836a68a4416f7ceb7a0f279168513a7a592396d