[INFO] crate logos 0.8.0 is already in cache [INFO] extracting crate logos 0.8.0 into work/ex/clippy-test-run/sources/stable/reg/logos/0.8.0 [INFO] extracting crate logos 0.8.0 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/logos/0.8.0 [INFO] validating manifest of logos-0.8.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 logos-0.8.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 logos-0.8.0 [INFO] finished frobbing logos-0.8.0 [INFO] frobbed toml for logos-0.8.0 written to work/ex/clippy-test-run/sources/stable/reg/logos/0.8.0/Cargo.toml [INFO] started frobbing logos-0.8.0 [INFO] finished frobbing logos-0.8.0 [INFO] frobbed toml for logos-0.8.0 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/logos/0.8.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 logos-0.8.0 against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-7/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/reg/logos/0.8.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] 2763884e6a57f7233d7156cca505be70a4d0366a0eeca32bf55f2da5308f1107 [INFO] running `"docker" "start" "-a" "2763884e6a57f7233d7156cca505be70a4d0366a0eeca32bf55f2da5308f1107"` [INFO] [stderr] Compiling logos-derive v0.8.0 [INFO] [stderr] Checking logos v0.8.0 (/opt/crater/workdir) [INFO] [stderr] warning: Unnecessary `>= y + 1` or `x - 1 >=` [INFO] [stderr] --> src/lexer.rs:158:23 [INFO] [stderr] | [INFO] [stderr] 158 | debug_assert!(self.token_end + 1 <= self.source.len(), "Bumping out of bounds!"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::int_plus_one)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#int_plus_one [INFO] [stderr] help: change `>= y + 1` to `> y` as shown [INFO] [stderr] | [INFO] [stderr] 158 | debug_assert!(self.token_end < self.source.len(), "Bumping out of bounds!"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: Unnecessary `>= y + 1` or `x - 1 >=` [INFO] [stderr] --> src/lexer.rs:158:23 [INFO] [stderr] | [INFO] [stderr] 158 | debug_assert!(self.token_end + 1 <= self.source.len(), "Bumping out of bounds!"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::int_plus_one)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#int_plus_one [INFO] [stderr] help: change `>= y + 1` to `> y` as shown [INFO] [stderr] | [INFO] [stderr] 158 | debug_assert!(self.token_end < self.source.len(), "Bumping out of bounds!"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait `Source` has a `len` method but no (possibly inherited) `is_empty` method [INFO] [stderr] --> src/source.rs:32:1 [INFO] [stderr] | [INFO] [stderr] 32 | / pub trait Source<'source> { [INFO] [stderr] 33 | | /// A type this `Source` can be sliced into. [INFO] [stderr] 34 | | type Slice: self::Slice<'source>; [INFO] [stderr] 35 | | [INFO] [stderr] ... | [INFO] [stderr] 91 | | unsafe fn slice_unchecked(&self, range: Range) -> Self::Slice; [INFO] [stderr] 92 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::len_without_is_empty)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty [INFO] [stderr] [INFO] [stderr] error: a const item should never be interior mutable [INFO] [stderr] --> src/lib.rs:124:5 [INFO] [stderr] | [INFO] [stderr] 124 | const ERROR: Self; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::declare_interior_mutable_const)] on by default [INFO] [stderr] help: consider requiring `Self` to be `Copy` [INFO] [stderr] --> src/lib.rs:124:18 [INFO] [stderr] | [INFO] [stderr] 124 | const ERROR: Self; [INFO] [stderr] | ^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#declare_interior_mutable_const [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] error: Could not compile `logos`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: trait `Source` has a `len` method but no (possibly inherited) `is_empty` method [INFO] [stderr] --> src/source.rs:32:1 [INFO] [stderr] | [INFO] [stderr] 32 | / pub trait Source<'source> { [INFO] [stderr] 33 | | /// A type this `Source` can be sliced into. [INFO] [stderr] 34 | | type Slice: self::Slice<'source>; [INFO] [stderr] 35 | | [INFO] [stderr] ... | [INFO] [stderr] 91 | | unsafe fn slice_unchecked(&self, range: Range) -> Self::Slice; [INFO] [stderr] 92 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::len_without_is_empty)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty [INFO] [stderr] [INFO] [stderr] error: a const item should never be interior mutable [INFO] [stderr] --> src/lib.rs:124:5 [INFO] [stderr] | [INFO] [stderr] 124 | const ERROR: Self; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::declare_interior_mutable_const)] on by default [INFO] [stderr] help: consider requiring `Self` to be `Copy` [INFO] [stderr] --> src/lib.rs:124:18 [INFO] [stderr] | [INFO] [stderr] 124 | const ERROR: Self; [INFO] [stderr] | ^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#declare_interior_mutable_const [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] error: Could not compile `logos`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "2763884e6a57f7233d7156cca505be70a4d0366a0eeca32bf55f2da5308f1107"` [INFO] running `"docker" "rm" "-f" "2763884e6a57f7233d7156cca505be70a4d0366a0eeca32bf55f2da5308f1107"` [INFO] [stdout] 2763884e6a57f7233d7156cca505be70a4d0366a0eeca32bf55f2da5308f1107