[INFO] fetching crate libwebp-sys2 0.2.0... [INFO] linting libwebp-sys2-0.2.0 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate libwebp-sys2 0.2.0 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate libwebp-sys2 0.2.0 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate libwebp-sys2 0.2.0 [INFO] tweaked toml for crates.io crate libwebp-sys2 0.2.0 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate libwebp-sys2 0.2.0 on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate libwebp-sys2 0.2.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libwebp-sys2 v0.1.11 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 98bc833a7dc58322fce9d8cd720bf70ba360aa5e48cc27547c6f9a2809a94388 [INFO] running `Command { std: "docker" "start" "-a" "98bc833a7dc58322fce9d8cd720bf70ba360aa5e48cc27547c6f9a2809a94388", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "98bc833a7dc58322fce9d8cd720bf70ba360aa5e48cc27547c6f9a2809a94388", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "98bc833a7dc58322fce9d8cd720bf70ba360aa5e48cc27547c6f9a2809a94388", kill_on_drop: false }` [INFO] [stdout] 98bc833a7dc58322fce9d8cd720bf70ba360aa5e48cc27547c6f9a2809a94388 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7e4a70561d1663d8223ea3c8ae5885c8caaeb8a795c37147d0ab5f658f8e1b75 [INFO] running `Command { std: "docker" "start" "-a" "7e4a70561d1663d8223ea3c8ae5885c8caaeb8a795c37147d0ab5f658f8e1b75", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.2.15 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling libwebp-sys2 v0.1.11 [INFO] [stderr] Compiling libwebp-sys2 v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> build.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | if !want_static && [INFO] [stdout] | ________^ [INFO] [stdout] 20 | | !target.contains("msvc") && // pkg-config just never works here [INFO] [stdout] 21 | | !(host_and_target_contain("apple") || [INFO] [stdout] 22 | | host_and_target_contain("freebsd") || [INFO] [stdout] 23 | | host_and_target_contain("dragonfly")) [INFO] [stdout] | |______________________________________________^ help: try: `!(want_static || target.contains("msvc") || host_and_target_contain("apple") || host_and_target_contain("freebsd") || host_and_target_contain("dragonfly"))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `unwrap_or` to construct default value [INFO] [stdout] --> build.rs:18:68 [INFO] [stdout] | [INFO] [stdout] 18 | cfg!(feature = "static") || env::var("LIBWEBP_SYS_STATIC").unwrap_or(String::new()) == "1"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] = note: `#[warn(clippy::unwrap_or_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> build.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | / if target.contains("msvc") { [INFO] [stdout] 39 | | if try_vcpkg() { [INFO] [stdout] 40 | | return; [INFO] [stdout] 41 | | } [INFO] [stdout] 42 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] = note: `#[warn(clippy::collapsible_if)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 38 ~ if target.contains("msvc") [INFO] [stdout] 39 ~ && try_vcpkg() { [INFO] [stdout] 40 | return; [INFO] [stdout] 41 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe function's docs are missing a `# Safety` section [INFO] [stdout] --> src/decode.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / pub unsafe extern "C" fn WebPIDecGetYUV( [INFO] [stdout] 191 | | idec: *const WebPIDecoder, [INFO] [stdout] 192 | | last_y: *mut c_int, [INFO] [stdout] 193 | | u: *mut *mut u8, [INFO] [stdout] ... | [INFO] [stdout] 198 | | uv_stride: *mut c_int, [INFO] [stdout] 199 | | ) -> *mut u8 { [INFO] [stdout] | |____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc [INFO] [stdout] = note: `#[warn(clippy::missing_safety_doc)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe function's docs are missing a `# Safety` section [INFO] [stdout] --> src/decode.rs:654:1 [INFO] [stdout] | [INFO] [stdout] 654 | pub unsafe extern "C" fn WebPInitDecBuffer(buffer: *mut WebPDecBuffer) -> c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe function's docs are missing a `# Safety` section [INFO] [stdout] --> src/decode.rs:671:1 [INFO] [stdout] | [INFO] [stdout] 671 | / pub unsafe extern "C" fn WebPGetFeatures( [INFO] [stdout] 672 | | data: *const u8, [INFO] [stdout] 673 | | data_size: usize, [INFO] [stdout] 674 | | features: *mut WebPBitstreamFeatures, [INFO] [stdout] 675 | | ) -> VP8StatusCode { [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe function's docs are missing a `# Safety` section [INFO] [stdout] --> src/decode.rs:685:1 [INFO] [stdout] | [INFO] [stdout] 685 | pub unsafe extern "C" fn WebPInitDecoderConfig(config: *mut WebPDecoderConfig) -> c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe function's docs are missing a `# Safety` section [INFO] [stdout] --> src/encode.rs:757:1 [INFO] [stdout] | [INFO] [stdout] 757 | pub unsafe extern "C" fn WebPConfigInit(config: *mut WebPConfig) -> c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe function's docs are missing a `# Safety` section [INFO] [stdout] --> src/encode.rs:775:1 [INFO] [stdout] | [INFO] [stdout] 775 | / pub unsafe extern "C" fn WebPConfigPreset( [INFO] [stdout] 776 | | config: *mut WebPConfig, [INFO] [stdout] 777 | | preset: WebPPreset, [INFO] [stdout] 778 | | quality: c_float, [INFO] [stdout] 779 | | ) -> c_int { [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe function's docs are missing a `# Safety` section [INFO] [stdout] --> src/encode.rs:790:1 [INFO] [stdout] | [INFO] [stdout] 790 | pub unsafe extern "C" fn WebPPictureInit(picture: *mut WebPPicture) -> c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe function's docs are missing a `# Safety` section [INFO] [stdout] --> src/decode.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / pub unsafe extern "C" fn WebPIDecGetYUV( [INFO] [stdout] 191 | | idec: *const WebPIDecoder, [INFO] [stdout] 192 | | last_y: *mut c_int, [INFO] [stdout] 193 | | u: *mut *mut u8, [INFO] [stdout] ... | [INFO] [stdout] 198 | | uv_stride: *mut c_int, [INFO] [stdout] 199 | | ) -> *mut u8 { [INFO] [stdout] | |____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc [INFO] [stdout] = note: `#[warn(clippy::missing_safety_doc)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe function's docs are missing a `# Safety` section [INFO] [stdout] --> src/decode.rs:654:1 [INFO] [stdout] | [INFO] [stdout] 654 | pub unsafe extern "C" fn WebPInitDecBuffer(buffer: *mut WebPDecBuffer) -> c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe function's docs are missing a `# Safety` section [INFO] [stdout] --> src/decode.rs:671:1 [INFO] [stdout] | [INFO] [stdout] 671 | / pub unsafe extern "C" fn WebPGetFeatures( [INFO] [stdout] 672 | | data: *const u8, [INFO] [stdout] 673 | | data_size: usize, [INFO] [stdout] 674 | | features: *mut WebPBitstreamFeatures, [INFO] [stdout] 675 | | ) -> VP8StatusCode { [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe function's docs are missing a `# Safety` section [INFO] [stdout] --> src/decode.rs:685:1 [INFO] [stdout] | [INFO] [stdout] 685 | pub unsafe extern "C" fn WebPInitDecoderConfig(config: *mut WebPDecoderConfig) -> c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe function's docs are missing a `# Safety` section [INFO] [stdout] --> src/encode.rs:757:1 [INFO] [stdout] | [INFO] [stdout] 757 | pub unsafe extern "C" fn WebPConfigInit(config: *mut WebPConfig) -> c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe function's docs are missing a `# Safety` section [INFO] [stdout] --> src/encode.rs:775:1 [INFO] [stdout] | [INFO] [stdout] 775 | / pub unsafe extern "C" fn WebPConfigPreset( [INFO] [stdout] 776 | | config: *mut WebPConfig, [INFO] [stdout] 777 | | preset: WebPPreset, [INFO] [stdout] 778 | | quality: c_float, [INFO] [stdout] 779 | | ) -> c_int { [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe function's docs are missing a `# Safety` section [INFO] [stdout] --> src/encode.rs:790:1 [INFO] [stdout] | [INFO] [stdout] 790 | pub unsafe extern "C" fn WebPPictureInit(picture: *mut WebPPicture) -> c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `libwebp_sys::WebPInitDecBuffer` that must be used [INFO] [stdout] --> tests/decode.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | WebPInitDecBuffer(&mut buf); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 8 | let _ = WebPInitDecBuffer(&mut buf); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.23s [INFO] running `Command { std: "docker" "inspect" "7e4a70561d1663d8223ea3c8ae5885c8caaeb8a795c37147d0ab5f658f8e1b75", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e4a70561d1663d8223ea3c8ae5885c8caaeb8a795c37147d0ab5f658f8e1b75", kill_on_drop: false }` [INFO] [stdout] 7e4a70561d1663d8223ea3c8ae5885c8caaeb8a795c37147d0ab5f658f8e1b75