[INFO] fetching crate khronos-egl 6.0.0... [INFO] building khronos-egl-6.0.0 against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] extracting crate khronos-egl 6.0.0 into /workspace/builds/worker-7-tc1/source [INFO] validating manifest of crates.io crate khronos-egl 6.0.0 on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate khronos-egl 6.0.0 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate khronos-egl 6.0.0 [INFO] tweaked toml for crates.io crate khronos-egl 6.0.0 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate crates.io crate khronos-egl 6.0.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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 67afeae1029ca57f8041f3f64b16a01cb1527d2c2648c5925a2589003cbb5b32 [INFO] running `Command { std: "docker" "start" "-a" "67afeae1029ca57f8041f3f64b16a01cb1527d2c2648c5925a2589003cbb5b32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "67afeae1029ca57f8041f3f64b16a01cb1527d2c2648c5925a2589003cbb5b32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "67afeae1029ca57f8041f3f64b16a01cb1527d2c2648c5925a2589003cbb5b32", kill_on_drop: false }` [INFO] [stdout] 67afeae1029ca57f8041f3f64b16a01cb1527d2c2648c5925a2589003cbb5b32 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 968d244d903498c601eb5f28299228febd78479cf6ee0ea52afea4e910ec1442 [INFO] running `Command { std: "docker" "start" "-a" "968d244d903498c601eb5f28299228febd78479cf6ee0ea52afea4e910ec1442", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.86 [INFO] [stderr] Compiling khronos-egl v6.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition name: `android` [INFO] [stdout] --> src/lib.rs:318:12 [INFO] [stdout] | [INFO] [stdout] 318 | #[cfg(not(android))] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `target_os = "android"` [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows` [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(android)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(android)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `android` [INFO] [stdout] --> src/lib.rs:321:12 [INFO] [stdout] | [INFO] [stdout] 321 | #[cfg(not(android))] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `target_os = "android"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(android)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(android)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `android` [INFO] [stdout] --> src/lib.rs:325:8 [INFO] [stdout] | [INFO] [stdout] 325 | #[cfg(android)] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `target_os = "android"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(android)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(android)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `android` [INFO] [stdout] --> src/lib.rs:329:8 [INFO] [stdout] | [INFO] [stdout] 329 | #[cfg(android)] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `target_os = "android"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(android)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(android)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `android` [INFO] [stdout] --> src/lib.rs:332:8 [INFO] [stdout] | [INFO] [stdout] 332 | #[cfg(android)] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `target_os = "android"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(android)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(android)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `android` [INFO] [stdout] --> src/lib.rs:335:8 [INFO] [stdout] | [INFO] [stdout] 335 | #[cfg(android)] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `target_os = "android"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(android)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(android)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointers are not nullable, so checking them for null will always return false [INFO] [stdout] --> src/lib.rs:1044:9 [INFO] [stdout] | [INFO] [stdout] 1044 | if !(addr as *const ()).is_null() { [INFO] [stdout] | ^----^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expression has type `extern "system" fn()` [INFO] [stdout] | [INFO] [stdout] = help: wrap the function pointer inside an `Option` and use `Option::is_none` to check for null pointer value [INFO] [stdout] = note: `#[warn(useless_ptr_null_checks)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.91s [INFO] running `Command { std: "docker" "inspect" "968d244d903498c601eb5f28299228febd78479cf6ee0ea52afea4e910ec1442", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "968d244d903498c601eb5f28299228febd78479cf6ee0ea52afea4e910ec1442", kill_on_drop: false }` [INFO] [stdout] 968d244d903498c601eb5f28299228febd78479cf6ee0ea52afea4e910ec1442 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4ea36e0b1af8232ac3e9c30a3f0ff226ebc9af89eea65012568005689b6d77b1 [INFO] running `Command { std: "docker" "start" "-a" "4ea36e0b1af8232ac3e9c30a3f0ff226ebc9af89eea65012568005689b6d77b1", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling xml-rs v0.8.3 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling libc v0.2.86 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling nix v0.18.0 [INFO] [stderr] Compiling libloading v0.6.7 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling dlib v0.4.2 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling once_cell v1.6.0 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling downcast-rs v1.2.0 [INFO] [stderr] Compiling scoped-tls v1.0.0 [INFO] [stderr] Compiling wayland-sys v0.28.3 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling wayland-scanner v0.28.3 [INFO] [stderr] Compiling gl v0.14.0 [INFO] [stderr] Compiling khronos-egl v6.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition name: `android` [INFO] [stdout] --> src/lib.rs:318:12 [INFO] [stdout] | [INFO] [stdout] 318 | #[cfg(not(android))] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `target_os = "android"` [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows` [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(android)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(android)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `android` [INFO] [stdout] --> src/lib.rs:321:12 [INFO] [stdout] | [INFO] [stdout] 321 | #[cfg(not(android))] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `target_os = "android"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(android)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(android)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `android` [INFO] [stdout] --> src/lib.rs:325:8 [INFO] [stdout] | [INFO] [stdout] 325 | #[cfg(android)] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `target_os = "android"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(android)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(android)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `android` [INFO] [stdout] --> src/lib.rs:329:8 [INFO] [stdout] | [INFO] [stdout] 329 | #[cfg(android)] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `target_os = "android"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(android)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(android)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `android` [INFO] [stdout] --> src/lib.rs:332:8 [INFO] [stdout] | [INFO] [stdout] 332 | #[cfg(android)] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `target_os = "android"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(android)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(android)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `android` [INFO] [stdout] --> src/lib.rs:335:8 [INFO] [stdout] | [INFO] [stdout] 335 | #[cfg(android)] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `target_os = "android"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(android)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(android)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointers are not nullable, so checking them for null will always return false [INFO] [stdout] --> src/lib.rs:1044:9 [INFO] [stdout] | [INFO] [stdout] 1044 | if !(addr as *const ()).is_null() { [INFO] [stdout] | ^----^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expression has type `extern "system" fn()` [INFO] [stdout] | [INFO] [stdout] = help: wrap the function pointer inside an `Option` and use `Option::is_none` to check for null pointer value [INFO] [stdout] = note: `#[warn(useless_ptr_null_checks)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling wayland-client v0.28.3 [INFO] [stderr] Compiling wayland-protocols v0.28.3 [INFO] [stderr] Compiling wayland-commons v0.28.3 [INFO] [stderr] Compiling wayland-egl v0.28.3 [INFO] [stdout] warning: unexpected `cfg` condition name: `android` [INFO] [stdout] --> src/lib.rs:318:12 [INFO] [stdout] | [INFO] [stdout] 318 | #[cfg(not(android))] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `target_os = "android"` [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows` [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(android)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(android)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `android` [INFO] [stdout] --> src/lib.rs:321:12 [INFO] [stdout] | [INFO] [stdout] 321 | #[cfg(not(android))] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `target_os = "android"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(android)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(android)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `android` [INFO] [stdout] --> src/lib.rs:325:8 [INFO] [stdout] | [INFO] [stdout] 325 | #[cfg(android)] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `target_os = "android"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(android)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(android)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `android` [INFO] [stdout] --> src/lib.rs:329:8 [INFO] [stdout] | [INFO] [stdout] 329 | #[cfg(android)] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `target_os = "android"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(android)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(android)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `android` [INFO] [stdout] --> src/lib.rs:332:8 [INFO] [stdout] | [INFO] [stdout] 332 | #[cfg(android)] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `target_os = "android"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(android)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(android)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `android` [INFO] [stdout] --> src/lib.rs:335:8 [INFO] [stdout] | [INFO] [stdout] 335 | #[cfg(android)] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `target_os = "android"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(android)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(android)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointers are not nullable, so checking them for null will always return false [INFO] [stdout] --> src/lib.rs:1044:9 [INFO] [stdout] | [INFO] [stdout] 1044 | if !(addr as *const ()).is_null() { [INFO] [stdout] | ^----^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expression has type `extern "system" fn()` [INFO] [stdout] | [INFO] [stdout] = help: wrap the function pointer inside an `Option` and use `Option::is_none` to check for null pointer value [INFO] [stdout] = note: `#[warn(useless_ptr_null_checks)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 5.03s [INFO] running `Command { std: "docker" "inspect" "4ea36e0b1af8232ac3e9c30a3f0ff226ebc9af89eea65012568005689b6d77b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4ea36e0b1af8232ac3e9c30a3f0ff226ebc9af89eea65012568005689b6d77b1", kill_on_drop: false }` [INFO] [stdout] 4ea36e0b1af8232ac3e9c30a3f0ff226ebc9af89eea65012568005689b6d77b1