[INFO] cloning repository https://github.com/gianlu33/rust-mbedtls [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gianlu33/rust-mbedtls" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgianlu33%2Frust-mbedtls", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgianlu33%2Frust-mbedtls'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cef4e6995ab8dd31560136076e6320920c669955 [INFO] checking gianlu33/rust-mbedtls/cef4e6995ab8dd31560136076e6320920c669955 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgianlu33%2Frust-mbedtls" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/gianlu33/rust-mbedtls on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/gianlu33/rust-mbedtls [INFO] finished tweaking git repo https://github.com/gianlu33/rust-mbedtls [INFO] tweaked toml for git repo https://github.com/gianlu33/rust-mbedtls written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/gianlu33/rust-mbedtls 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: /workspace/builds/worker-0-tc1/source/mbedtls-sys/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded shlex v1.0.0 [INFO] [stderr] Downloaded cmake v0.1.42 [INFO] [stderr] Downloaded rc2 v0.3.0 [INFO] [stderr] Downloaded block-modes v0.3.3 [INFO] [stderr] Downloaded yasna v0.2.2 [INFO] [stderr] Downloaded rs-libc v0.2.2 [INFO] [stderr] Downloaded serde_bytes v0.10.5 [INFO] [stderr] Downloaded num-bigint v0.2.4 [INFO] [stderr] Downloaded serde_derive v1.0.70 [INFO] [stderr] Downloaded bit-vec v0.5.1 [INFO] [stderr] Downloaded bitflags v1.2.0 [INFO] [stderr] Downloaded bindgen v0.58.0 [INFO] [stderr] Downloaded serde_cbor v0.6.1 [INFO] [stderr] Downloaded spin v0.4.10 [INFO] [stderr] Downloaded which v3.0.0 [INFO] [stderr] Downloaded syn v1.0.64 [INFO] [stderr] Downloaded clang-sys v1.1.1 [INFO] [stderr] Downloaded core_io v0.1.20210325 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] df63c46b8825ef5a8324fa0e8dcb601ce3834f18e8cbde1461b447fdacda2157 [INFO] running `Command { std: "docker" "start" "-a" "df63c46b8825ef5a8324fa0e8dcb601ce3834f18e8cbde1461b447fdacda2157", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "df63c46b8825ef5a8324fa0e8dcb601ce3834f18e8cbde1461b447fdacda2157", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "df63c46b8825ef5a8324fa0e8dcb601ce3834f18e8cbde1461b447fdacda2157", kill_on_drop: false }` [INFO] [stdout] df63c46b8825ef5a8324fa0e8dcb601ce3834f18e8cbde1461b447fdacda2157 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bd4aac60fb67b95f390ab47ceef016d24818861d0205299637a23cdd1026105f [INFO] running `Command { std: "docker" "start" "-a" "bd4aac60fb67b95f390ab47ceef016d24818861d0205299637a23cdd1026105f", kill_on_drop: false }` [INFO] [stderr] warning: /opt/rustwide/workdir/mbedtls-sys/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling libc v0.2.62 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling cc v1.0.67 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling bitflags v1.2.0 [INFO] [stderr] Compiling autocfg v0.1.6 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling once_cell v1.7.2 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling regex-syntax v0.6.22 [INFO] [stderr] Compiling syn v1.0.64 [INFO] [stderr] Compiling libloading v0.7.0 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling pkg-config v0.3.16 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling thread_local v1.1.3 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling bindgen v0.58.0 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling shlex v1.0.0 [INFO] [stderr] Compiling clang-sys v1.1.1 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling cmake v0.1.42 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling serde v1.0.101 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Checking tinyvec v1.1.0 [INFO] [stderr] Compiling num-bigint v0.2.4 [INFO] [stderr] Checking percent-encoding v1.0.1 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking bit-vec v0.5.1 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling which v3.0.0 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Checking base64 v0.9.3 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking traitobject v0.1.0 [INFO] [stderr] Checking typeable v0.1.2 [INFO] [stderr] Checking language-tags v0.2.2 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking hex v0.3.2 [INFO] [stderr] Compiling libz-sys v1.0.25 [INFO] [stderr] Compiling mbedtls v0.8.2 (/opt/rustwide/workdir/mbedtls) [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking unicode-normalization v0.1.16 [INFO] [stderr] Compiling syn v0.14.9 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Compiling regex v1.4.3 [INFO] [stderr] Compiling cexpr v0.4.0 [INFO] [stderr] Checking yasna v0.2.2 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Checking hyper v0.10.16 [INFO] [stderr] Compiling env_logger v0.8.3 [INFO] [stderr] Compiling serde_derive v1.0.70 [INFO] [stderr] Checking serde_bytes v0.10.5 [INFO] [stderr] Checking serde_cbor v0.6.1 [INFO] [stderr] Compiling mbedtls-sys-auto v2.26.1 (/opt/rustwide/workdir/mbedtls-sys) [INFO] [stdout] warning: unexpected `cfg` condition name: `std_component` [INFO] [stdout] --> mbedtls-sys/src/types.rs:82:7 [INFO] [stdout] | [INFO] [stdout] 82 | #[cfg(std_component = "fs")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [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(std_component, values("fs"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(std_component, values(\"fs\"))");` 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: `threading_component` [INFO] [stdout] --> mbedtls-sys/src/types.rs:105:7 [INFO] [stdout] | [INFO] [stdout] 105 | #[cfg(threading_component = "pthread")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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(threading_component, values("pthread"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(threading_component, values(\"pthread\"))");` 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: `time_component` [INFO] [stdout] --> mbedtls-sys/src/types.rs:86:14 [INFO] [stdout] | [INFO] [stdout] 86 | if #[cfg(time_component = "custom")] { [INFO] [stdout] | ^^^^^^^^^^^^^^ [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(time_component, values("custom"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(time_component, values(\"custom\"))");` 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: `time_component` [INFO] [stdout] --> mbedtls-sys/src/types.rs:100:21 [INFO] [stdout] | [INFO] [stdout] 100 | } else if #[cfg(time_component = "libc")] { [INFO] [stdout] | ^^^^^^^^^^^^^^ [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(time_component, values("libc"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(time_component, values(\"libc\"))");` 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: `std_component` [INFO] [stdout] --> mbedtls-sys/src/types.rs:82:7 [INFO] [stdout] | [INFO] [stdout] 82 | #[cfg(std_component = "fs")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [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(std_component, values("fs"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(std_component, values(\"fs\"))");` 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: `threading_component` [INFO] [stdout] --> mbedtls-sys/src/types.rs:105:7 [INFO] [stdout] | [INFO] [stdout] 105 | #[cfg(threading_component = "pthread")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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(threading_component, values("pthread"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(threading_component, values(\"pthread\"))");` 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: `time_component` [INFO] [stdout] --> mbedtls-sys/src/types.rs:86:14 [INFO] [stdout] | [INFO] [stdout] 86 | if #[cfg(time_component = "custom")] { [INFO] [stdout] | ^^^^^^^^^^^^^^ [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(time_component, values("custom"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(time_component, values(\"custom\"))");` 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: `time_component` [INFO] [stdout] --> mbedtls-sys/src/types.rs:100:21 [INFO] [stdout] | [INFO] [stdout] 100 | } else if #[cfg(time_component = "libc")] { [INFO] [stdout] | ^^^^^^^^^^^^^^ [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(time_component, values("libc"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(time_component, values(\"libc\"))");` 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: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `sys_threading_component` [INFO] [stdout] --> mbedtls/src/lib.rs:56:7 [INFO] [stdout] | [INFO] [stdout] 56 | #[cfg(sys_threading_component = "custom")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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(sys_threading_component, values("custom"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(sys_threading_component, values(\"custom\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> mbedtls/src/lib.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | #![deny(warnings)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[deny(unexpected_cfgs)]` implied by `#[deny(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `sys_time_component` [INFO] [stdout] --> mbedtls/src/lib.rs:109:14 [INFO] [stdout] | [INFO] [stdout] 109 | if #[cfg(sys_time_component = "custom")] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [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(sys_time_component, values("custom"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(sys_time_component, values(\"custom\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `sys_std_component` [INFO] [stdout] --> mbedtls/src/rng/mod.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[cfg(sys_std_component = "entropy")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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(sys_std_component, values("entropy"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(sys_std_component, values(\"entropy\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `sys_std_component` [INFO] [stdout] --> mbedtls/src/rng/mod.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | #[cfg(sys_std_component = "entropy")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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(sys_std_component, values("entropy"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(sys_std_component, values(\"entropy\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `sys_threading_component` [INFO] [stdout] --> mbedtls/src/lib.rs:56:7 [INFO] [stdout] | [INFO] [stdout] 56 | #[cfg(sys_threading_component = "custom")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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(sys_threading_component, values("custom"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(sys_threading_component, values(\"custom\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> mbedtls/src/lib.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | #![deny(warnings)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[deny(unexpected_cfgs)]` implied by `#[deny(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `sys_time_component` [INFO] [stdout] --> mbedtls/src/lib.rs:109:14 [INFO] [stdout] | [INFO] [stdout] 109 | if #[cfg(sys_time_component = "custom")] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [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(sys_time_component, values("custom"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(sys_time_component, values(\"custom\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `sys_std_component` [INFO] [stdout] --> mbedtls/src/rng/mod.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[cfg(sys_std_component = "entropy")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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(sys_std_component, values("entropy"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(sys_std_component, values(\"entropy\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `sys_std_component` [INFO] [stdout] --> mbedtls/src/rng/mod.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | #[cfg(sys_std_component = "entropy")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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(sys_std_component, values("entropy"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(sys_std_component, values(\"entropy\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `sys_std_component` [INFO] [stdout] --> mbedtls/src/../tests/support/mod.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | #[cfg(sys_std_component = "net")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [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(sys_std_component, values("net"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(sys_std_component, values(\"net\"))");` 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: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> mbedtls/src/pk/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | Box::from_raw(p as *mut CustomPkContext); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[deny(unused_must_use)]` implied by `#[deny(warnings)]` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 116 | let _ = Box::from_raw(p as *mut CustomPkContext); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `mbedtls` (lib) due to 6 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: associated items `call_mut` and `data_ptr_mut` are never used [INFO] [stdout] --> mbedtls/src/wrapper_macros.rs:20:34 [INFO] [stdout] | [INFO] [stdout] 20 | unsafe extern "C" fn call_mut(user_data: *mut ::mbedtls_sys::types::raw_types::c_void, $($arg:$ty),*) -> $ret where Self: Sized; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 21 | [INFO] [stdout] 22 | fn data_ptr_mut(&mut self) -> *mut ::mbedtls_sys::types::raw_types::c_void; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 364 | callback!(NativeTestMut,NativeTest() -> ()); [INFO] [stdout] | ------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | associated items in this trait [INFO] [stdout] | in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(dead_code)]` implied by `#[deny(warnings)]` [INFO] [stdout] = note: this error originates in the macro `callback` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: associated items `call` and `data_ptr` are never used [INFO] [stdout] --> mbedtls/src/wrapper_macros.rs:36:34 [INFO] [stdout] | [INFO] [stdout] 36 | unsafe extern "C" fn call(user_data: *mut ::mbedtls_sys::types::raw_types::c_void, $($arg:$ty),*) -> $ret where Self: Sized; [INFO] [stdout] | ^^^^ [INFO] [stdout] 37 | [INFO] [stdout] 38 | fn data_ptr(&self) -> *mut ::mbedtls_sys::types::raw_types::c_void; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 364 | callback!(NativeTestMut,NativeTest() -> ()); [INFO] [stdout] | ------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | associated items in this trait [INFO] [stdout] | in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `callback` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> mbedtls/src/pk/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | Box::from_raw(p as *mut CustomPkContext); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[deny(unused_must_use)]` implied by `#[deny(warnings)]` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 116 | let _ = Box::from_raw(p as *mut CustomPkContext); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `mbedtls` (lib test) due to 9 previous errors [INFO] running `Command { std: "docker" "inspect" "bd4aac60fb67b95f390ab47ceef016d24818861d0205299637a23cdd1026105f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bd4aac60fb67b95f390ab47ceef016d24818861d0205299637a23cdd1026105f", kill_on_drop: false }` [INFO] [stdout] bd4aac60fb67b95f390ab47ceef016d24818861d0205299637a23cdd1026105f