[INFO] updating cached repository FuzzyLitchi/lua [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/FuzzyLitchi/lua [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/FuzzyLitchi/lua" "work/ex/clippy-test-run/sources/stable/gh/FuzzyLitchi/lua"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/FuzzyLitchi/lua'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/FuzzyLitchi/lua" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/FuzzyLitchi/lua"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/FuzzyLitchi/lua'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 9f98778d122dd540a55122e881b1a18a30cf453f [INFO] sha for GitHub repo FuzzyLitchi/lua: 9f98778d122dd540a55122e881b1a18a30cf453f [INFO] validating manifest of FuzzyLitchi/lua 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 FuzzyLitchi/lua 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 FuzzyLitchi/lua [INFO] finished frobbing FuzzyLitchi/lua [INFO] frobbed toml for FuzzyLitchi/lua written to work/ex/clippy-test-run/sources/stable/gh/FuzzyLitchi/lua/Cargo.toml [INFO] started frobbing FuzzyLitchi/lua [INFO] finished frobbing FuzzyLitchi/lua [INFO] frobbed toml for FuzzyLitchi/lua written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/FuzzyLitchi/lua/Cargo.toml [INFO] crate FuzzyLitchi/lua 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 FuzzyLitchi/lua against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-2/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/gh/FuzzyLitchi/lua:/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] 76b357d6c400c908225aef58f0b35d9e63916633a3136407550163094698c589 [INFO] running `"docker" "start" "-a" "76b357d6c400c908225aef58f0b35d9e63916633a3136407550163094698c589"` [INFO] [stderr] Checking lua v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: module has the same name as its containing module [INFO] [stderr] --> src/lua/lexer/mod.rs:4:1 [INFO] [stderr] | [INFO] [stderr] 4 | pub mod lexer; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::module_inception)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#module_inception [INFO] [stderr] [INFO] [stderr] warning: module has the same name as its containing module [INFO] [stderr] --> src/lua/lexer/mod.rs:4:1 [INFO] [stderr] | [INFO] [stderr] 4 | pub mod lexer; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::module_inception)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#module_inception [INFO] [stderr] [INFO] [stderr] warning: method is never used: `matchers` [INFO] [stderr] --> src/lua/lexer/lexer.rs:50:5 [INFO] [stderr] | [INFO] [stderr] 50 | pub fn matchers(&self) -> &Vec> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(dead_code)] on by default [INFO] [stderr] [INFO] [stderr] warning: using `clone` on a `Copy` type [INFO] [stderr] --> src/lua/lexer/matcher.rs:22:28 [INFO] [stderr] | [INFO] [stderr] 22 | accum.push(c.clone()); [INFO] [stderr] | ^^^^^^^^^ help: try removing the `clone` call: `c` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::clone_on_copy)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stderr] [INFO] [stderr] warning: using `clone` on a `Copy` type [INFO] [stderr] --> src/lua/lexer/matcher.rs:115:17 [INFO] [stderr] | [INFO] [stderr] 115 | let c = tokenizer.peek().unwrap().clone(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*tokenizer.peek().unwrap()` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stderr] [INFO] [stderr] warning: using `clone` on a `Copy` type [INFO] [stderr] --> src/lua/lexer/matcher.rs:149:42 [INFO] [stderr] | [INFO] [stderr] 149 | return token!(tokenizer, self.token_type.clone(), constant.to_string()) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.token_type` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stderr] [INFO] [stderr] warning: method is never used: `matchers` [INFO] [stderr] --> src/lua/lexer/lexer.rs:50:5 [INFO] [stderr] | [INFO] [stderr] 50 | pub fn matchers(&self) -> &Vec> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(dead_code)] on by default [INFO] [stderr] [INFO] [stderr] warning: using `clone` on a `Copy` type [INFO] [stderr] --> src/lua/lexer/matcher.rs:22:28 [INFO] [stderr] | [INFO] [stderr] 22 | accum.push(c.clone()); [INFO] [stderr] | ^^^^^^^^^ help: try removing the `clone` call: `c` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::clone_on_copy)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stderr] [INFO] [stderr] warning: using `clone` on a `Copy` type [INFO] [stderr] --> src/lua/lexer/matcher.rs:115:17 [INFO] [stderr] | [INFO] [stderr] 115 | let c = tokenizer.peek().unwrap().clone(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*tokenizer.peek().unwrap()` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stderr] [INFO] [stderr] warning: using `clone` on a `Copy` type [INFO] [stderr] --> src/lua/lexer/matcher.rs:149:42 [INFO] [stderr] | [INFO] [stderr] 149 | return token!(tokenizer, self.token_type.clone(), constant.to_string()) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.token_type` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.61s [INFO] running `"docker" "inspect" "76b357d6c400c908225aef58f0b35d9e63916633a3136407550163094698c589"` [INFO] running `"docker" "rm" "-f" "76b357d6c400c908225aef58f0b35d9e63916633a3136407550163094698c589"` [INFO] [stdout] 76b357d6c400c908225aef58f0b35d9e63916633a3136407550163094698c589