[INFO] crate generator 0.6.10 is already in cache [INFO] extracting crate generator 0.6.10 into work/ex/clippy-test-run/sources/stable/reg/generator/0.6.10 [INFO] extracting crate generator 0.6.10 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/generator/0.6.10 [INFO] validating manifest of generator-0.6.10 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 generator-0.6.10 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 generator-0.6.10 [INFO] finished frobbing generator-0.6.10 [INFO] frobbed toml for generator-0.6.10 written to work/ex/clippy-test-run/sources/stable/reg/generator/0.6.10/Cargo.toml [INFO] started frobbing generator-0.6.10 [INFO] finished frobbing generator-0.6.10 [INFO] frobbed toml for generator-0.6.10 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/generator/0.6.10/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 generator-0.6.10 against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-5/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/reg/generator/0.6.10:/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] 391181a6e56d86234004034b119a052c7c9642d6aa73da2bb28797c7059890ce [INFO] running `"docker" "start" "-a" "391181a6e56d86234004034b119a052c7c9642d6aa73da2bb28797c7059890ce"` [INFO] [stderr] Compiling generator v0.6.10 (/opt/crater/workdir) [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/rt.rs:159:24 [INFO] [stderr] | [INFO] [stderr] 159 | ContextStack { root: root } [INFO] [stderr] | ^^^^^^^^^^ help: replace it with: `root` [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/scope.rs:23:13 [INFO] [stderr] | [INFO] [stderr] 23 | para: para, [INFO] [stderr] | ^^^^^^^^^^ help: replace it with: `para` [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/scope.rs:24:13 [INFO] [stderr] | [INFO] [stderr] 24 | ret: ret, [INFO] [stderr] | ^^^^^^^^ help: replace it with: `ret` [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] error: redundant field names in struct initialization [INFO] [stderr] --> src/rt.rs:159:24 [INFO] [stderr] | [INFO] [stderr] 159 | ContextStack { root: root } [INFO] [stderr] | ^^^^^^^^^^ help: replace it with: `root` [INFO] [stderr] | [INFO] [stderr] note: lint level defined here [INFO] [stderr] --> src/lib.rs:11:24 [INFO] [stderr] | [INFO] [stderr] 11 | #![cfg_attr(test, deny(warnings))] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] = note: #[deny(clippy::redundant_field_names)] implied by #[deny(warnings)] [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] error: redundant field names in struct initialization [INFO] [stderr] --> src/scope.rs:23:13 [INFO] [stderr] | [INFO] [stderr] 23 | para: para, [INFO] [stderr] | ^^^^^^^^^^ help: replace it with: `para` [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] error: redundant field names in struct initialization [INFO] [stderr] --> src/scope.rs:24:13 [INFO] [stderr] | [INFO] [stderr] 24 | ret: ret, [INFO] [stderr] | ^^^^^^^^ help: replace it with: `ret` [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: lint name `boxed_local` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore [INFO] [stderr] --> src/gen_impl.rs:26:48 [INFO] [stderr] | [INFO] [stderr] 26 | #[cfg_attr(feature = "cargo-clippy", allow(boxed_local))] [INFO] [stderr] | ^^^^^^^^^^^ help: change it to: `clippy::boxed_local` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(renamed_and_removed_lints)] on by default [INFO] [stderr] [INFO] [stderr] warning: lint name `boxed_local` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore [INFO] [stderr] --> src/gen_impl.rs:26:48 [INFO] [stderr] | [INFO] [stderr] 26 | #[cfg_attr(feature = "cargo-clippy", allow(boxed_local))] [INFO] [stderr] | ^^^^^^^^^^^ help: change it to: `clippy::boxed_local` [INFO] [stderr] [INFO] [stderr] warning: methods called `new` usually return `Self` [INFO] [stderr] --> src/gen_impl.rs:68:5 [INFO] [stderr] | [INFO] [stderr] 68 | / pub fn new<'a, T: Any, F>(f: F) -> Generator<'a, A, T> [INFO] [stderr] 69 | | where [INFO] [stderr] 70 | | F: FnOnce() -> T + 'a, [INFO] [stderr] 71 | | { [INFO] [stderr] 72 | | Self::new_opt(DEFAULT_STACK_SIZE, f) [INFO] [stderr] 73 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::new_ret_no_self)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self [INFO] [stderr] [INFO] [stderr] warning: The function/method `::swap` doesn't need a mutable reference [INFO] [stderr] --> src/gen_impl.rs:184:31 [INFO] [stderr] | [INFO] [stderr] 184 | RegContext::swap(cur, &mut top.regs); [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: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/gen_impl.rs:383:9 [INFO] [stderr] | [INFO] [stderr] 383 | / match cause.downcast_ref::() { [INFO] [stderr] 384 | | // this is not an error at all, ignore it [INFO] [stderr] 385 | | Some(_e @ &Error::Cancel) => return, [INFO] [stderr] 386 | | _ => {} [INFO] [stderr] 387 | | } [INFO] [stderr] | |_________^ help: try this: `if let Some(_e @ &Error::Cancel) = cause.downcast_ref::() { return }` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::single_match)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] error: lint name `boxed_local` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore [INFO] [stderr] --> src/gen_impl.rs:26:48 [INFO] [stderr] | [INFO] [stderr] 26 | #[cfg_attr(feature = "cargo-clippy", allow(boxed_local))] [INFO] [stderr] | ^^^^^^^^^^^ help: change it to: `clippy::boxed_local` [INFO] [stderr] | [INFO] [stderr] note: lint level defined here [INFO] [stderr] --> src/lib.rs:11:24 [INFO] [stderr] | [INFO] [stderr] 11 | #![cfg_attr(test, deny(warnings))] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] = note: #[deny(renamed_and_removed_lints)] implied by #[deny(warnings)] [INFO] [stderr] [INFO] [stderr] warning: local variable doesn't need to be boxed here [INFO] [stderr] --> src/scope.rs:79:34 [INFO] [stderr] | [INFO] [stderr] 79 | pub fn yield_from(&mut self, mut g: Box>) -> Option { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::boxed_local)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#boxed_local [INFO] [stderr] [INFO] [stderr] warning: use of `offset` with a `usize` casted to an `isize` [INFO] [stderr] --> src/stack.rs:81:18 [INFO] [stderr] | [INFO] [stderr] 81 | unsafe { self.buf.ptr().offset(self.buf.cap() as isize) as *mut usize } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.buf.ptr().add(self.buf.cap())` [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: lint name `boxed_local` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore [INFO] [stderr] --> src/gen_impl.rs:26:48 [INFO] [stderr] | [INFO] [stderr] 26 | #[cfg_attr(feature = "cargo-clippy", allow(boxed_local))] [INFO] [stderr] | ^^^^^^^^^^^ help: change it to: `clippy::boxed_local` [INFO] [stderr] [INFO] [stderr] warning: local variable doesn't need to be boxed here [INFO] [stderr] --> src/yield_.rs:100:35 [INFO] [stderr] | [INFO] [stderr] 100 | pub fn yield_from(mut g: Generator) -> Option { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#boxed_local [INFO] [stderr] [INFO] [stderr] error: aborting due to 5 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `generator`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `"docker" "inspect" "391181a6e56d86234004034b119a052c7c9642d6aa73da2bb28797c7059890ce"` [INFO] running `"docker" "rm" "-f" "391181a6e56d86234004034b119a052c7c9642d6aa73da2bb28797c7059890ce"` [INFO] [stdout] 391181a6e56d86234004034b119a052c7c9642d6aa73da2bb28797c7059890ce