[INFO] crate gluon_c-api 0.9.4 is already in cache [INFO] extracting crate gluon_c-api 0.9.4 into work/ex/clippy-test-run/sources/stable/reg/gluon_c-api/0.9.4 [INFO] extracting crate gluon_c-api 0.9.4 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/gluon_c-api/0.9.4 [INFO] validating manifest of gluon_c-api-0.9.4 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 gluon_c-api-0.9.4 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 gluon_c-api-0.9.4 [INFO] finished frobbing gluon_c-api-0.9.4 [INFO] frobbed toml for gluon_c-api-0.9.4 written to work/ex/clippy-test-run/sources/stable/reg/gluon_c-api/0.9.4/Cargo.toml [INFO] started frobbing gluon_c-api-0.9.4 [INFO] finished frobbing gluon_c-api-0.9.4 [INFO] frobbed toml for gluon_c-api-0.9.4 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/gluon_c-api/0.9.4/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 gluon_c-api-0.9.4 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/reg/gluon_c-api/0.9.4:/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] 63bb1f0043539316d9866915b9994a8c54870f11f8a6cf3a10f1881767d7db3e [INFO] running `"docker" "start" "-a" "63bb1f0043539316d9866915b9994a8c54870f11f8a6cf3a10f1881767d7db3e"` [INFO] [stderr] Compiling either v1.5.0 [INFO] [stderr] Compiling termcolor v0.3.6 [INFO] [stderr] Compiling typed-arena v1.4.1 [INFO] [stderr] Checking anymap v0.12.1 [INFO] [stderr] Checking collect-mac v0.1.0 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking rpds v0.5.0 [INFO] [stderr] Checking union-find v0.3.2 [INFO] [stderr] Compiling gluon_vm v0.9.4 [INFO] [stderr] Checking frunk_core v0.2.2 [INFO] [stderr] Checking pretty v0.5.2 [INFO] [stderr] Compiling itertools v0.7.11 [INFO] [stderr] Compiling itertools v0.8.0 [INFO] [stderr] Compiling ordered-float v1.0.1 [INFO] [stderr] Compiling gluon_codegen v0.9.4 [INFO] [stderr] Compiling failure v0.1.5 [INFO] [stderr] Compiling string_cache_codegen v0.4.2 [INFO] [stderr] Checking codespan v0.1.3 [INFO] [stderr] Checking codespan-reporting v0.1.4 [INFO] [stderr] Compiling string_cache v0.7.3 [INFO] [stderr] Checking gluon_base v0.9.4 [INFO] [stderr] Compiling lalrpop v0.16.3 [INFO] [stderr] Checking gluon_check v0.9.4 [INFO] [stderr] Compiling gluon v0.9.4 [INFO] [stderr] Compiling gluon_parser v0.9.4 [INFO] [stderr] Checking gluon_c-api v0.9.4 (/opt/crater/workdir) [INFO] [stderr] error: approximate value of `f{32, 64}::consts::PI` found. Consider using it directly [INFO] [stderr] --> src/lib.rs:277:32 [INFO] [stderr] | [INFO] [stderr] 277 | glu_push_float(vm, 3.14); [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::approx_constant)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::PI` found. Consider using it directly [INFO] [stderr] --> src/lib.rs:289:31 [INFO] [stderr] | [INFO] [stderr] 289 | assert_eq!(float, 3.14); [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/lib.rs:289:13 [INFO] [stderr] | [INFO] [stderr] 289 | assert_eq!(float, 3.14); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::float_cmp)] on by default [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/lib.rs:289:13 [INFO] [stderr] | [INFO] [stderr] 289 | assert_eq!(float, 3.14); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [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] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/lib.rs:353:13 [INFO] [stderr] | [INFO] [stderr] 353 | assert_eq!(result, 36.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/lib.rs:353:13 [INFO] [stderr] | [INFO] [stderr] 353 | assert_eq!(result, 36.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [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] error: aborting due to 4 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `gluon_c-api`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "63bb1f0043539316d9866915b9994a8c54870f11f8a6cf3a10f1881767d7db3e"` [INFO] running `"docker" "rm" "-f" "63bb1f0043539316d9866915b9994a8c54870f11f8a6cf3a10f1881767d7db3e"` [INFO] [stdout] 63bb1f0043539316d9866915b9994a8c54870f11f8a6cf3a10f1881767d7db3e