[INFO] fetching crate darwin-metrics 0.1.5... [INFO] testing darwin-metrics-0.1.5 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7 [INFO] extracting crate darwin-metrics 0.1.5 into /workspace/builds/worker-4-tc1/source [INFO] removed /workspace/builds/worker-4-tc1/source/.cargo/config.toml [INFO] started tweaking crates.io crate darwin-metrics 0.1.5 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate darwin-metrics 0.1.5 [INFO] tweaked toml for crates.io crate darwin-metrics 0.1.5 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate darwin-metrics 0.1.5 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate darwin-metrics 0.1.5 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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded version-sync v0.9.5 [INFO] [stderr] Downloaded once_cell v1.20.3 [INFO] [stderr] Downloaded serde_spanned v0.6.8 [INFO] [stderr] Downloaded unicase v2.8.1 [INFO] [stderr] Downloaded objc2-exception-helper v0.1.1 [INFO] [stderr] Downloaded objc2-proc-macros v0.2.0 [INFO] [stderr] Downloaded quote v1.0.39 [INFO] [stderr] Downloaded async-trait v0.1.87 [INFO] [stderr] Downloaded glob v0.3.2 [INFO] [stderr] Downloaded block2 v0.6.0 [INFO] [stderr] Downloaded objc2-core-graphics v0.3.0 [INFO] [stderr] Downloaded libproc v0.14.10 [INFO] [stderr] Downloaded pulldown-cmark v0.9.6 [INFO] [stderr] Downloaded indexmap v2.7.1 [INFO] [stderr] Downloaded objc2-core-foundation v0.3.0 [INFO] [stderr] Downloaded objc2-metal v0.3.0 [INFO] [stderr] Downloaded tracing-subscriber v0.3.19 [INFO] [stderr] Downloaded toml v0.7.8 [INFO] [stderr] Downloaded redox_syscall v0.5.10 [INFO] [stderr] Downloaded objc2 v0.6.0 [INFO] [stderr] Downloaded objc2-io-surface v0.3.0 [INFO] [stderr] Downloaded objc2-foundation v0.3.0 [INFO] [stderr] Downloaded libc v0.2.170 [INFO] [stderr] Downloaded tokio v1.44.0 [INFO] [stderr] Downloaded cc v1.2.16 [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0a857b0da687032005cb5753af5d5cbdfba581524b31c1a1c094ff319b0b8be1 [INFO] running `Command { std: "docker" "start" "-a" "0a857b0da687032005cb5753af5d5cbdfba581524b31c1a1c094ff319b0b8be1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0a857b0da687032005cb5753af5d5cbdfba581524b31c1a1c094ff319b0b8be1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a857b0da687032005cb5753af5d5cbdfba581524b31c1a1c094ff319b0b8be1", kill_on_drop: false }` [INFO] [stdout] 0a857b0da687032005cb5753af5d5cbdfba581524b31c1a1c094ff319b0b8be1 [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b93b1b93d62105213edcc0e7a617c855518f3b040efc31c600093871abe44957 [INFO] running `Command { std: "docker" "start" "-a" "b93b1b93d62105213edcc0e7a617c855518f3b040efc31c600093871abe44957", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling libc v0.2.170 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling once_cell v1.20.3 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling smallvec v1.14.0 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling cc v1.2.16 [INFO] [stderr] Compiling log v0.4.26 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling predicates v3.1.3 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling fragile v2.0.0 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling quote v1.0.39 [INFO] [stderr] Compiling darwin-metrics v0.1.5 (/opt/rustwide/workdir) [INFO] [stderr] warning: darwin-metrics@0.1.5: Building for non-macOS platform. This library only works on macOS. [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling matchers v0.1.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling mockall_derive v0.13.1 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling async-trait v0.1.87 [INFO] [stderr] Compiling tokio v1.44.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling mockall v0.13.1 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `objc2` [INFO] [stdout] --> src/utils/property_utils.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use objc2::rc::Retained; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `objc2` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `objc2`, use `cargo add objc2` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `objc2_foundation` [INFO] [stdout] --> src/utils/property_utils.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use objc2_foundation::{NSDictionary, NSNumber, NSObject, NSString}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `objc2_foundation` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `objc2_foundation`, use `cargo add objc2_foundation` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `objc2` [INFO] [stdout] --> src/utils/test_utils.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use objc2::{ [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `objc2` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `objc2`, use `cargo add objc2` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `objc2` [INFO] [stdout] --> src/utils/test_utils.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use objc2::{ [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `objc2` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `objc2`, use `cargo add objc2` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `objc2_foundation` [INFO] [stdout] --> src/utils/test_utils.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use objc2_foundation::{NSDictionary, NSNumber, NSObject, NSString}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `objc2_foundation` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `objc2_foundation`, use `cargo add objc2_foundation` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `objc2` [INFO] [stdout] --> src/utils/mod.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use objc2::{msg_send, rc::autoreleasepool, runtime::AnyObject}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `objc2` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `objc2`, use `cargo add objc2` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `objc2` [INFO] [stdout] --> src/utils/mod.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use objc2::{msg_send, rc::autoreleasepool, runtime::AnyObject}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `objc2` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `objc2`, use `cargo add objc2` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `objc2` [INFO] [stdout] --> src/hardware/cpu/cpu_impl.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use objc2::{msg_send, rc::Retained}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `objc2` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `objc2`, use `cargo add objc2` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `objc2` [INFO] [stdout] --> src/hardware/cpu/cpu_impl.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use objc2::{msg_send, rc::Retained}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `objc2` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `objc2`, use `cargo add objc2` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `objc2_foundation` [INFO] [stdout] --> src/hardware/cpu/cpu_impl.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use objc2_foundation::NSString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `objc2_foundation` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `objc2_foundation`, use `cargo add objc2_foundation` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `objc2` [INFO] [stdout] --> src/hardware/gpu/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use objc2::{msg_send, rc::autoreleasepool, runtime::AnyObject}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `objc2` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `objc2`, use `cargo add objc2` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `objc2` [INFO] [stdout] --> src/hardware/gpu/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use objc2::{msg_send, rc::autoreleasepool, runtime::AnyObject}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `objc2` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `objc2`, use `cargo add objc2` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `objc2` [INFO] [stdout] --> src/hardware/iokit/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use objc2::{ [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `objc2` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `objc2`, use `cargo add objc2` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `objc2` [INFO] [stdout] --> src/hardware/iokit/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use objc2::{ [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `objc2` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `objc2`, use `cargo add objc2` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `objc2_foundation` [INFO] [stdout] --> src/hardware/iokit/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use objc2_foundation::{NSDictionary, NSNumber, NSObject, NSString}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `objc2_foundation` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `objc2_foundation`, use `cargo add objc2_foundation` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `libproc` [INFO] [stdout] --> src/process/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use libproc::{pid_rusage, proc_pid, task_info}; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `libproc` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `libproc`, use `cargo add libproc` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `objc2` [INFO] [stdout] --> src/hardware/gpu/mod.rs:488:37 [INFO] [stdout] | [INFO] [stdout] 488 | let _: () = objc2::msg_send![device_obj, release]; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `objc2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `objc2` [INFO] [stdout] --> src/hardware/gpu/mod.rs:486:42 [INFO] [stdout] | [INFO] [stdout] 486 | let device_obj: *mut objc2::runtime::AnyObject = device.cast(); [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `objc2` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `objc2`, use `cargo add objc2` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `libproc` [INFO] [stdout] --> src/process/mod.rs:208:20 [INFO] [stdout] | [INFO] [stdout] 208 | let name = libproc::proc_pid::name(pid as i32).map_err(|e| { [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `libproc` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `libproc`, use `cargo add libproc` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `libproc` [INFO] [stdout] --> src/process/mod.rs:212:25 [INFO] [stdout] | [INFO] [stdout] 212 | let proc_info = libproc::proc_pid::pidinfo::(pid as i32, 0) [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `libproc` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `libproc`, use `cargo add libproc` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `libproc` [INFO] [stdout] --> src/process/mod.rs:343:25 [INFO] [stdout] | [INFO] [stdout] 343 | let proc_info = libproc::proc_pid::pidinfo::(pid as i32, 0) [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `libproc` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `libproc`, use `cargo add libproc` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `sysctlbyname` in crate `libc` [INFO] [stdout] --> src/hardware/cpu/frequency.rs:167:24 [INFO] [stdout] | [INFO] [stdout] 167 | let result = libc::sysctlbyname( [INFO] [stdout] | ^^^^^^^^^^^^ not found in `libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use crate::utils::bindings::sysctlbyname; [INFO] [stdout] | [INFO] [stdout] help: if you import `sysctlbyname`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 167 - let result = libc::sysctlbyname( [INFO] [stdout] 167 + let result = sysctlbyname( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `sysctlbyname` in crate `libc` [INFO] [stdout] --> src/hardware/gpu/mod.rs:170:32 [INFO] [stdout] | [INFO] [stdout] 170 | let result = libc::sysctlbyname( [INFO] [stdout] | ^^^^^^^^^^^^ not found in `libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use crate::utils::bindings::sysctlbyname; [INFO] [stdout] | [INFO] [stdout] help: if you import `sysctlbyname`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 170 - let result = libc::sysctlbyname( [INFO] [stdout] 170 + let result = sysctlbyname( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `sysctlbyname` in crate `libc` [INFO] [stdout] --> src/hardware/gpu/mod.rs:193:32 [INFO] [stdout] | [INFO] [stdout] 193 | let result = libc::sysctlbyname( [INFO] [stdout] | ^^^^^^^^^^^^ not found in `libc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use crate::utils::bindings::sysctlbyname; [INFO] [stdout] | [INFO] [stdout] help: if you import `sysctlbyname`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 193 - let result = libc::sysctlbyname( [INFO] [stdout] 193 + let result = sysctlbyname( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0455]: link kind `framework` is only supported on Apple targets [INFO] [stdout] --> src/utils/bindings.rs:90:32 [INFO] [stdout] | [INFO] [stdout] 90 | #[link(name = "System", kind = "framework")] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0455]: link kind `framework` is only supported on Apple targets [INFO] [stdout] --> src/utils/bindings.rs:334:31 [INFO] [stdout] | [INFO] [stdout] 334 | #[link(name = "IOKit", kind = "framework")] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0455]: link kind `framework` is only supported on Apple targets [INFO] [stdout] --> src/utils/bindings.rs:402:32 [INFO] [stdout] | [INFO] [stdout] 402 | #[link(name = "System", kind = "framework")] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0455]: link kind `framework` is only supported on Apple targets [INFO] [stdout] --> src/utils/bindings.rs:418:31 [INFO] [stdout] | [INFO] [stdout] 418 | #[link(name = "Metal", kind = "framework")] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0455]: link kind `framework` is only supported on Apple targets [INFO] [stdout] --> src/utils/bindings.rs:568:32 [INFO] [stdout] | [INFO] [stdout] 568 | #[link(name = "System", kind = "framework")] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/hardware/iokit/mod.rs:407:28 [INFO] [stdout] | [INFO] [stdout] 407 | .and_then(|obj| obj.downcast::().ok()) [INFO] [stdout] | ^^^ --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 407 | .and_then(|obj: /* Type */| obj.downcast::().ok()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/hardware/iokit/mod.rs:408:23 [INFO] [stdout] | [INFO] [stdout] 408 | .map(|s| s.to_string()) [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 408 | .map(|s: /* Type */| s.to_string()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/hardware/iokit/mod.rs:424:21 [INFO] [stdout] | [INFO] [stdout] 424 | let obj = match value_opt { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 435 | let number_opt = obj.downcast::(); [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `obj` an explicit type [INFO] [stdout] | [INFO] [stdout] 424 | let obj: /* Type */ = match value_opt { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/hardware/iokit/mod.rs:436:21 [INFO] [stdout] | [INFO] [stdout] 436 | let n = match number_opt { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 446 | let result = n.as_i64(); [INFO] [stdout] | - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `n` an explicit type [INFO] [stdout] | [INFO] [stdout] 436 | let n: /* Type */ = match number_opt { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/hardware/iokit/mod.rs:462:28 [INFO] [stdout] | [INFO] [stdout] 462 | .and_then(|obj| obj.downcast::().ok()) [INFO] [stdout] | ^^^ --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 462 | .and_then(|obj: /* Type */| obj.downcast::().ok()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/hardware/iokit/mod.rs:463:23 [INFO] [stdout] | [INFO] [stdout] 463 | .map(|n| n.as_bool()) [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 463 | .map(|n: /* Type */| n.as_bool()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/utils/property_utils.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | .and_then(|obj| obj.downcast::().ok()) [INFO] [stdout] | ^^^ --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 7 | .and_then(|obj: /* Type */| obj.downcast::().ok()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/utils/property_utils.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 8 | .map(|s| s.to_string()) [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 8 | .map(|s: /* Type */| s.to_string()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/utils/property_utils.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | .and_then(|obj| obj.downcast::().ok()) [INFO] [stdout] | ^^^ --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 14 | .and_then(|obj: /* Type */| obj.downcast::().ok()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/utils/property_utils.rs:21:24 [INFO] [stdout] | [INFO] [stdout] 21 | .and_then(|obj| obj.downcast::().ok()) [INFO] [stdout] | ^^^ --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 21 | .and_then(|obj: /* Type */| obj.downcast::().ok()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `(_, _)` [INFO] [stdout] --> src/utils/test_utils.rs:28:33 [INFO] [stdout] | [INFO] [stdout] 28 | entries.iter().map(|(k, _)| k.as_ref() as *const NSString).collect(); [INFO] [stdout] | ^^^^^^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type, where the placeholders `_` are specified [INFO] [stdout] | [INFO] [stdout] 28 | entries.iter().map(|(k, _): (_, _)| k.as_ref() as *const NSString).collect(); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `(_, _)` [INFO] [stdout] --> src/utils/test_utils.rs:30:33 [INFO] [stdout] | [INFO] [stdout] 30 | entries.iter().map(|(_, v)| v.as_ref() as *const NSObject).collect(); [INFO] [stdout] | ^^^^^^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type, where the placeholders `_` are specified [INFO] [stdout] | [INFO] [stdout] 30 | entries.iter().map(|(_, v): (_, _)| v.as_ref() as *const NSObject).collect(); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0425, E0432, E0433, E0455. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] warning: darwin-metrics@0.1.5: Building for non-macOS platform. This library only works on macOS. [INFO] [stderr] error: could not compile `darwin-metrics` (lib) due to 41 previous errors [INFO] running `Command { std: "docker" "inspect" "b93b1b93d62105213edcc0e7a617c855518f3b040efc31c600093871abe44957", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b93b1b93d62105213edcc0e7a617c855518f3b040efc31c600093871abe44957", kill_on_drop: false }` [INFO] [stdout] b93b1b93d62105213edcc0e7a617c855518f3b040efc31c600093871abe44957