[INFO] updating cached repository kmcallister/rpi-battery-monitor [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/kmcallister/rpi-battery-monitor [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/kmcallister/rpi-battery-monitor" "work/ex/clippy-test-run/sources/stable/gh/kmcallister/rpi-battery-monitor"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/kmcallister/rpi-battery-monitor'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/kmcallister/rpi-battery-monitor" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/kmcallister/rpi-battery-monitor"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/kmcallister/rpi-battery-monitor'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] ba6dc445e9f8b9ea4f3afd7413d136894169b762 [INFO] sha for GitHub repo kmcallister/rpi-battery-monitor: ba6dc445e9f8b9ea4f3afd7413d136894169b762 [INFO] validating manifest of kmcallister/rpi-battery-monitor 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 kmcallister/rpi-battery-monitor 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 kmcallister/rpi-battery-monitor [INFO] finished frobbing kmcallister/rpi-battery-monitor [INFO] frobbed toml for kmcallister/rpi-battery-monitor written to work/ex/clippy-test-run/sources/stable/gh/kmcallister/rpi-battery-monitor/Cargo.toml [INFO] started frobbing kmcallister/rpi-battery-monitor [INFO] finished frobbing kmcallister/rpi-battery-monitor [INFO] frobbed toml for kmcallister/rpi-battery-monitor written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/kmcallister/rpi-battery-monitor/Cargo.toml [INFO] crate kmcallister/rpi-battery-monitor 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 kmcallister/rpi-battery-monitor against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-1/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/gh/kmcallister/rpi-battery-monitor:/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] c21af5e23d1d88cd642e191c64a9e7e8fe5bb9b6f5240677193177ca40dbee56 [INFO] running `"docker" "start" "-a" "c21af5e23d1d88cd642e191c64a9e7e8fe5bb9b6f5240677193177ca40dbee56"` [INFO] [stderr] Compiling rpi-battery-monitor v0.1.0 (/opt/crater/workdir) [INFO] [stderr] Checking errno v0.2.3 [INFO] [stderr] warning: src/cbits.c: In function 'gpio_init': [INFO] [stderr] warning: src/cbits.c:61:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] [INFO] [stderr] warning: printf("mmap error %d\n", (int) gpio_map); [INFO] [stderr] warning: ^ [INFO] [stderr] error: long literal lacking separators [INFO] [stderr] --> src/main.rs:40:17 [INFO] [stderr] | [INFO] [stderr] 40 | const R1: f64 = 477000.0; [INFO] [stderr] | ^^^^^^^^ help: consider: `477_000.0` [INFO] [stderr] | [INFO] [stderr] note: lint level defined here [INFO] [stderr] --> src/main.rs:1:9 [INFO] [stderr] | [INFO] [stderr] 1 | #![deny(warnings)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] = note: #[deny(clippy::unreadable_literal)] implied by #[deny(warnings)] [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] error: long literal lacking separators [INFO] [stderr] --> src/main.rs:43:17 [INFO] [stderr] | [INFO] [stderr] 43 | const R2: f64 = 118400.0; [INFO] [stderr] | ^^^^^^^^ help: consider: `118_400.0` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] error: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/main.rs:182:22 [INFO] [stderr] | [INFO] [stderr] 182 | const MUNIN_CONFIG: &'static str [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] note: lint level defined here [INFO] [stderr] --> src/main.rs:1:9 [INFO] [stderr] | [INFO] [stderr] 1 | #![deny(warnings)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] = note: #[deny(clippy::const_static_lifetime)] implied by #[deny(warnings)] [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] error: long literal lacking separators [INFO] [stderr] --> src/main.rs:40:17 [INFO] [stderr] | [INFO] [stderr] 40 | const R1: f64 = 477000.0; [INFO] [stderr] | ^^^^^^^^ help: consider: `477_000.0` [INFO] [stderr] | [INFO] [stderr] note: lint level defined here [INFO] [stderr] --> src/main.rs:1:9 [INFO] [stderr] | [INFO] [stderr] 1 | #![deny(warnings)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] = note: #[deny(clippy::unreadable_literal)] implied by #[deny(warnings)] [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] error: long literal lacking separators [INFO] [stderr] --> src/main.rs:43:17 [INFO] [stderr] | [INFO] [stderr] 43 | const R2: f64 = 118400.0; [INFO] [stderr] | ^^^^^^^^ help: consider: `118_400.0` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] error: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/main.rs:182:22 [INFO] [stderr] | [INFO] [stderr] 182 | const MUNIN_CONFIG: &'static str [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] note: lint level defined here [INFO] [stderr] --> src/main.rs:1:9 [INFO] [stderr] | [INFO] [stderr] 1 | #![deny(warnings)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] = note: #[deny(clippy::const_static_lifetime)] implied by #[deny(warnings)] [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] The following warnings were emitted during compilation: [INFO] [stderr] [INFO] [stderr] warning: src/cbits.c: In function 'gpio_init': [INFO] [stderr] warning: src/cbits.c:61:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] [INFO] [stderr] warning: printf("mmap error %d\n", (int) gpio_map); [INFO] [stderr] warning: ^ [INFO] [stderr] [INFO] [stderr] error: Could not compile `rpi-battery-monitor`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] The following warnings were emitted during compilation: [INFO] [stderr] [INFO] [stderr] warning: src/cbits.c: In function 'gpio_init': [INFO] [stderr] warning: src/cbits.c:61:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] [INFO] [stderr] warning: printf("mmap error %d\n", (int) gpio_map); [INFO] [stderr] warning: ^ [INFO] [stderr] [INFO] [stderr] error: Could not compile `rpi-battery-monitor`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "c21af5e23d1d88cd642e191c64a9e7e8fe5bb9b6f5240677193177ca40dbee56"` [INFO] running `"docker" "rm" "-f" "c21af5e23d1d88cd642e191c64a9e7e8fe5bb9b6f5240677193177ca40dbee56"` [INFO] [stdout] c21af5e23d1d88cd642e191c64a9e7e8fe5bb9b6f5240677193177ca40dbee56