[INFO] crate screeps-game-api 0.3.0 is already in cache [INFO] extracting crate screeps-game-api 0.3.0 into work/ex/clippy-test-run/sources/stable/reg/screeps-game-api/0.3.0 [INFO] extracting crate screeps-game-api 0.3.0 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/screeps-game-api/0.3.0 [INFO] validating manifest of screeps-game-api-0.3.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 screeps-game-api-0.3.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 screeps-game-api-0.3.0 [INFO] finished frobbing screeps-game-api-0.3.0 [INFO] frobbed toml for screeps-game-api-0.3.0 written to work/ex/clippy-test-run/sources/stable/reg/screeps-game-api/0.3.0/Cargo.toml [INFO] started frobbing screeps-game-api-0.3.0 [INFO] finished frobbing screeps-game-api-0.3.0 [INFO] frobbed toml for screeps-game-api-0.3.0 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/screeps-game-api/0.3.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 screeps-game-api-0.3.0 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/screeps-game-api/0.3.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] fa3a48f3a8321662b1e8d47561789f272c549bdd1df924cf48c8748dca245c2b [INFO] running `"docker" "start" "-a" "fa3a48f3a8321662b1e8d47561789f272c549bdd1df924cf48c8748dca245c2b"` [INFO] [stderr] Compiling stdweb-internal-runtime v0.1.3 [INFO] [stderr] Compiling base-x v0.2.4 [INFO] [stderr] Compiling stdweb v0.4.13 [INFO] [stderr] Compiling stdweb-derive v0.5.1 [INFO] [stderr] Compiling stdweb-internal-macros v0.2.5 [INFO] [stderr] Checking screeps-game-api v0.3.0 (/opt/crater/workdir) [INFO] [stderr] warning: You matched a field with a wildcard pattern. Consider using `..` instead [INFO] [stderr] --> src/objects/impls/room.rs:368:13 [INFO] [stderr] | [INFO] [stderr] 368 | cost_callback: _, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::unneeded_field_pattern)] on by default [INFO] [stderr] = help: Try with `FindOptions { ignore_creeps, ignore_destructible_structures, max_ops, heuristic_weight, serialize, max_rooms, range, plain_cost, swamp_cost, .. }` [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unneeded_field_pattern [INFO] [stderr] [INFO] [stderr] warning: You matched a field with a wildcard pattern. Consider using `..` instead [INFO] [stderr] --> src/pathfinder.rs:210:13 [INFO] [stderr] | [INFO] [stderr] 210 | room_callback: _, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: Try with `SearchOptions { plain_cost, swamp_cost, flee, max_ops, max_rooms, max_cost, heuristic_weight, .. }` [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unneeded_field_pattern [INFO] [stderr] [INFO] [stderr] warning: You matched a field with a wildcard pattern. Consider using `..` instead [INFO] [stderr] --> src/objects/impls/room.rs:368:13 [INFO] [stderr] | [INFO] [stderr] 368 | cost_callback: _, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::unneeded_field_pattern)] on by default [INFO] [stderr] = help: Try with `FindOptions { ignore_creeps, ignore_destructible_structures, max_ops, heuristic_weight, serialize, max_rooms, range, plain_cost, swamp_cost, .. }` [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unneeded_field_pattern [INFO] [stderr] [INFO] [stderr] warning: You matched a field with a wildcard pattern. Consider using `..` instead [INFO] [stderr] --> src/pathfinder.rs:210:13 [INFO] [stderr] | [INFO] [stderr] 210 | room_callback: _, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: Try with `SearchOptions { plain_cost, swamp_cost, flee, max_ops, max_rooms, max_cost, heuristic_weight, .. }` [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unneeded_field_pattern [INFO] [stderr] [INFO] [stderr] warning: this function has too many arguments (16/7) [INFO] [stderr] --> src/objects/impls/creep.rs:167:13 [INFO] [stderr] | [INFO] [stderr] 167 | / js_unwrap!{ [INFO] [stderr] 168 | | @{ self.as_ref() }.moveTo( [INFO] [stderr] 169 | | @{rp.as_ref()}, [INFO] [stderr] 170 | | { [INFO] [stderr] ... | [INFO] [stderr] 186 | | ) [INFO] [stderr] 187 | | } [INFO] [stderr] | |_____________^ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::too_many_arguments)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [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: this function has too many arguments (16/7) [INFO] [stderr] --> src/objects/impls/creep.rs:167:13 [INFO] [stderr] | [INFO] [stderr] 167 | / js_unwrap!{ [INFO] [stderr] 168 | | @{ self.as_ref() }.moveTo( [INFO] [stderr] 169 | | @{rp.as_ref()}, [INFO] [stderr] 170 | | { [INFO] [stderr] ... | [INFO] [stderr] 186 | | ) [INFO] [stderr] 187 | | } [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#too_many_arguments [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: this function has too many arguments (14/7) [INFO] [stderr] --> src/objects/impls/room.rs:204:21 [INFO] [stderr] | [INFO] [stderr] 204 | let v = js!{ [INFO] [stderr] | _____________________^ [INFO] [stderr] 205 | | return @{&self.as_ref()}.search(@{from.as_ref()}, @{to.as_ref()}, { [INFO] [stderr] 206 | | ignoreCreeps: @{ignore_creeps}, [INFO] [stderr] 207 | | ignoreDestructibleStructures: @{ignore_destructible_structures} [INFO] [stderr] ... | [INFO] [stderr] 216 | | }); [INFO] [stderr] 217 | | }; [INFO] [stderr] | |_____________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [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: this function has too many arguments (8/7) [INFO] [stderr] --> src/objects/impls/room.rs:270:36 [INFO] [stderr] | [INFO] [stderr] 270 | T::convert_and_check_items(js_unwrap!{@{self.as_ref()}.lookForAtArea( [INFO] [stderr] | ____________________________________^ [INFO] [stderr] 271 | | __look_num_to_str(@{ty.look_code() as u32}), [INFO] [stderr] 272 | | @{vert.start}, [INFO] [stderr] 273 | | @{horiz.start}, [INFO] [stderr] ... | [INFO] [stderr] 276 | | true [INFO] [stderr] 277 | | ).map((obj) => obj[__look_num_to_str(@{ty.look_code() as u32})])}) [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#too_many_arguments [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: this function has too many arguments (16/7) [INFO] [stderr] --> src/objects/impls/creep.rs:167:13 [INFO] [stderr] | [INFO] [stderr] 167 | / js_unwrap!{ [INFO] [stderr] 168 | | @{ self.as_ref() }.moveTo( [INFO] [stderr] 169 | | @{rp.as_ref()}, [INFO] [stderr] 170 | | { [INFO] [stderr] ... | [INFO] [stderr] 186 | | ) [INFO] [stderr] 187 | | } [INFO] [stderr] | |_____________^ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::too_many_arguments)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [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: this function has too many arguments (16/7) [INFO] [stderr] --> src/objects/impls/creep.rs:167:13 [INFO] [stderr] | [INFO] [stderr] 167 | / js_unwrap!{ [INFO] [stderr] 168 | | @{ self.as_ref() }.moveTo( [INFO] [stderr] 169 | | @{rp.as_ref()}, [INFO] [stderr] 170 | | { [INFO] [stderr] ... | [INFO] [stderr] 186 | | ) [INFO] [stderr] 187 | | } [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#too_many_arguments [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: this function has too many arguments (14/7) [INFO] [stderr] --> src/objects/impls/room.rs:204:21 [INFO] [stderr] | [INFO] [stderr] 204 | let v = js!{ [INFO] [stderr] | _____________________^ [INFO] [stderr] 205 | | return @{&self.as_ref()}.search(@{from.as_ref()}, @{to.as_ref()}, { [INFO] [stderr] 206 | | ignoreCreeps: @{ignore_creeps}, [INFO] [stderr] 207 | | ignoreDestructibleStructures: @{ignore_destructible_structures} [INFO] [stderr] ... | [INFO] [stderr] 216 | | }); [INFO] [stderr] 217 | | }; [INFO] [stderr] | |_____________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [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: this function has too many arguments (8/7) [INFO] [stderr] --> src/objects/impls/room.rs:270:36 [INFO] [stderr] | [INFO] [stderr] 270 | T::convert_and_check_items(js_unwrap!{@{self.as_ref()}.lookForAtArea( [INFO] [stderr] | ____________________________________^ [INFO] [stderr] 271 | | __look_num_to_str(@{ty.look_code() as u32}), [INFO] [stderr] 272 | | @{vert.start}, [INFO] [stderr] 273 | | @{horiz.start}, [INFO] [stderr] ... | [INFO] [stderr] 276 | | true [INFO] [stderr] 277 | | ).map((obj) => obj[__look_num_to_str(@{ty.look_code() as u32})])}) [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#too_many_arguments [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: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) [INFO] [stderr] --> src/pathfinder.rs:78:5 [INFO] [stderr] | [INFO] [stderr] 78 | / pub unsafe fn as_uploaded<'a>(&'a self) -> CostMatrix<'a> { [INFO] [stderr] 79 | | let bits: UnsafeTypedArray = UnsafeTypedArray::new(&self.bits); [INFO] [stderr] 80 | | [INFO] [stderr] 81 | | CostMatrix { [INFO] [stderr] ... | [INFO] [stderr] 95 | | } [INFO] [stderr] 96 | | } [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 function has too many arguments (10/7) [INFO] [stderr] --> src/pathfinder.rs:389:40 [INFO] [stderr] | [INFO] [stderr] 389 | let res: ::stdweb::Reference = js_unwrap!{ [INFO] [stderr] | ________________________________________^ [INFO] [stderr] 390 | | PathFinder.search(@{origin.as_ref()}, @{goal}, { [INFO] [stderr] 391 | | roomCallback: @{callback}, [INFO] [stderr] 392 | | plainCost: @{plain_cost}, [INFO] [stderr] ... | [INFO] [stderr] 398 | | }) [INFO] [stderr] 399 | | }; [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#too_many_arguments [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: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) [INFO] [stderr] --> src/pathfinder.rs:78:5 [INFO] [stderr] | [INFO] [stderr] 78 | / pub unsafe fn as_uploaded<'a>(&'a self) -> CostMatrix<'a> { [INFO] [stderr] 79 | | let bits: UnsafeTypedArray = UnsafeTypedArray::new(&self.bits); [INFO] [stderr] 80 | | [INFO] [stderr] 81 | | CostMatrix { [INFO] [stderr] ... | [INFO] [stderr] 95 | | } [INFO] [stderr] 96 | | } [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 function has too many arguments (10/7) [INFO] [stderr] --> src/pathfinder.rs:389:40 [INFO] [stderr] | [INFO] [stderr] 389 | let res: ::stdweb::Reference = js_unwrap!{ [INFO] [stderr] | ________________________________________^ [INFO] [stderr] 390 | | PathFinder.search(@{origin.as_ref()}, @{goal}, { [INFO] [stderr] 391 | | roomCallback: @{callback}, [INFO] [stderr] 392 | | plainCost: @{plain_cost}, [INFO] [stderr] ... | [INFO] [stderr] 398 | | }) [INFO] [stderr] 399 | | }; [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#too_many_arguments [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] Finished dev [unoptimized + debuginfo] target(s) in 39.50s [INFO] running `"docker" "inspect" "fa3a48f3a8321662b1e8d47561789f272c549bdd1df924cf48c8748dca245c2b"` [INFO] running `"docker" "rm" "-f" "fa3a48f3a8321662b1e8d47561789f272c549bdd1df924cf48c8748dca245c2b"` [INFO] [stdout] fa3a48f3a8321662b1e8d47561789f272c549bdd1df924cf48c8748dca245c2b