[INFO] crate computus 1.0.0 is already in cache [INFO] extracting crate computus 1.0.0 into work/ex/clippy-test-run/sources/stable/reg/computus/1.0.0 [INFO] extracting crate computus 1.0.0 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/computus/1.0.0 [INFO] validating manifest of computus-1.0.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 computus-1.0.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 computus-1.0.0 [INFO] finished frobbing computus-1.0.0 [INFO] frobbed toml for computus-1.0.0 written to work/ex/clippy-test-run/sources/stable/reg/computus/1.0.0/Cargo.toml [INFO] started frobbing computus-1.0.0 [INFO] finished frobbing computus-1.0.0 [INFO] frobbed toml for computus-1.0.0 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/computus/1.0.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 computus-1.0.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/computus/1.0.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] 2da4d70fdb85e0f9904f91ef90cb8fbb83f4e0d6768fec88f60236e402247fbf [INFO] running `"docker" "start" "-a" "2da4d70fdb85e0f9904f91ef90cb8fbb83f4e0d6768fec88f60236e402247fbf"` [INFO] [stderr] Checking computus v1.0.0 (/opt/crater/workdir) [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/lib.rs:18:26 [INFO] [stderr] | [INFO] [stderr] 18 | const OUT_OF_RANGE_ERR: &'static str = "Computus is only valid from 1583 to 9999"; [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::const_static_lifetime)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/lib.rs:18:26 [INFO] [stderr] | [INFO] [stderr] 18 | const OUT_OF_RANGE_ERR: &'static str = "Computus is only valid from 1583 to 9999"; [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::const_static_lifetime)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 31 [INFO] [stderr] --> src/lib.rs:61:5 [INFO] [stderr] | [INFO] [stderr] 61 | / fn gregorian_month_day() { [INFO] [stderr] 62 | | use super::{gregorian, Date}; [INFO] [stderr] 63 | | assert_eq!(gregorian(1961), Ok(Date::ymd(1961, 4, 2))); [INFO] [stderr] 64 | | assert_eq!(gregorian(1996), Ok(Date::ymd(1996, 4, 7))); [INFO] [stderr] ... | [INFO] [stderr] 92 | | assert_eq!(gregorian(9999), Ok(Date::ymd(9999, 3, 28))); [INFO] [stderr] 93 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cyclomatic_complexity)] on by default [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 27 [INFO] [stderr] --> src/lib.rs:96:5 [INFO] [stderr] | [INFO] [stderr] 96 | / fn julian_month_day() { [INFO] [stderr] 97 | | use super::{julian, Date}; [INFO] [stderr] 98 | | assert_eq!(julian(1961), Ok(Date::ymd(1961, 3, 27))); [INFO] [stderr] 99 | | assert_eq!(julian(1996), Ok(Date::ymd(1996, 4, 1))); [INFO] [stderr] ... | [INFO] [stderr] 123 | | assert_eq!(julian(2020), Ok(Date::ymd(2020, 4, 6))); [INFO] [stderr] 124 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.27s [INFO] running `"docker" "inspect" "2da4d70fdb85e0f9904f91ef90cb8fbb83f4e0d6768fec88f60236e402247fbf"` [INFO] running `"docker" "rm" "-f" "2da4d70fdb85e0f9904f91ef90cb8fbb83f4e0d6768fec88f60236e402247fbf"` [INFO] [stdout] 2da4d70fdb85e0f9904f91ef90cb8fbb83f4e0d6768fec88f60236e402247fbf