[INFO] fetching crate ft60x_rs 0.1.0... [INFO] testing ft60x_rs-0.1.0 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7 [INFO] extracting crate ft60x_rs 0.1.0 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate ft60x_rs 0.1.0 [INFO] finished tweaking crates.io crate ft60x_rs 0.1.0 [INFO] tweaked toml for crates.io crate ft60x_rs 0.1.0 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate ft60x_rs 0.1.0 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] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 55 packages to latest compatible versions [INFO] [stderr] Adding dirs v5.0.1 (available: v6.0.0) [INFO] [stderr] Adding libloading v0.7.4 (available: v0.9.0) [INFO] [stderr] Adding rust-embed v6.8.1 (available: v8.9.0) [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.17) [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] Downloading crates ... [INFO] [stderr] Downloaded rust-embed-impl v6.8.1 [INFO] [stderr] Downloaded rust-embed-utils v7.8.1 [INFO] [stderr] Downloaded rust-embed v6.8.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 40a614effe3d984102287731cfc02165e43992e436a4ce3a43ceafa7a4ab4b8b [INFO] running `Command { std: "docker" "start" "-a" "40a614effe3d984102287731cfc02165e43992e436a4ce3a43ceafa7a4ab4b8b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "40a614effe3d984102287731cfc02165e43992e436a4ce3a43ceafa7a4ab4b8b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "40a614effe3d984102287731cfc02165e43992e436a4ce3a43ceafa7a4ab4b8b", kill_on_drop: false }` [INFO] [stdout] 40a614effe3d984102287731cfc02165e43992e436a4ce3a43ceafa7a4ab4b8b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 0c215f190f945a968487899bdf444d4d341d66887ba1175a79aaa1b79213470e [INFO] running `Command { std: "docker" "start" "-a" "0c215f190f945a968487899bdf444d4d341d66887ba1175a79aaa1b79213470e", kill_on_drop: false }` [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling option-ext v0.2.0 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling libloading v0.7.4 [INFO] [stderr] Compiling rust-embed-utils v7.8.1 [INFO] [stderr] Compiling dirs-sys v0.4.1 [INFO] [stderr] Compiling dirs v5.0.1 [INFO] [stderr] Compiling rust-embed-impl v6.8.1 [INFO] [stderr] Compiling rust-embed v6.8.1 [INFO] [stderr] Compiling tempfile v3.23.0 [INFO] [stderr] Compiling ft60x_rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/ffi.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | fn d3xx_fn(name: &str) -> Result> { [INFO] [stdout] | ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 28 | fn d3xx_fn(name: &str) -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.41s [INFO] running `Command { std: "docker" "inspect" "0c215f190f945a968487899bdf444d4d341d66887ba1175a79aaa1b79213470e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0c215f190f945a968487899bdf444d4d341d66887ba1175a79aaa1b79213470e", kill_on_drop: false }` [INFO] [stdout] 0c215f190f945a968487899bdf444d4d341d66887ba1175a79aaa1b79213470e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7c015e5db00c2863623969d4e4f9dd1337261fb9dfef687d9acda78d5e060569 [INFO] running `Command { std: "docker" "start" "-a" "7c015e5db00c2863623969d4e4f9dd1337261fb9dfef687d9acda78d5e060569", kill_on_drop: false }` [INFO] [stderr] Compiling ft60x_rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/ffi.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | fn d3xx_fn(name: &str) -> Result> { [INFO] [stdout] | ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 28 | fn d3xx_fn(name: &str) -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/ffi.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | fn d3xx_fn(name: &str) -> Result> { [INFO] [stdout] | ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 28 | fn d3xx_fn(name: &str) -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.42s [INFO] running `Command { std: "docker" "inspect" "7c015e5db00c2863623969d4e4f9dd1337261fb9dfef687d9acda78d5e060569", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c015e5db00c2863623969d4e4f9dd1337261fb9dfef687d9acda78d5e060569", kill_on_drop: false }` [INFO] [stdout] 7c015e5db00c2863623969d4e4f9dd1337261fb9dfef687d9acda78d5e060569 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 2247c9e8fefa8f44b3799ceddae33277cd0a524907fd35eba493bfeb66c6f1d8 [INFO] running `Command { std: "docker" "start" "-a" "2247c9e8fefa8f44b3799ceddae33277cd0a524907fd35eba493bfeb66c6f1d8", kill_on_drop: false }` [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/ffi.rs:28:21 [INFO] [stderr] | [INFO] [stderr] 28 | fn d3xx_fn(name: &str) -> Result> { [INFO] [stderr] | ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 28 | fn d3xx_fn(name: &str) -> Result> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: `ft60x_rs` (lib) generated 1 warning (run `cargo fix --lib -p ft60x_rs` to apply 1 suggestion) [INFO] [stderr] warning: `ft60x_rs` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ft60x_rs-7e863c24a50d0f5a) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests ft60x_rs [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/ffi.rs - ffi::lib::wrap_d3xx (line 59) ... FAILED [INFO] [stdout] test src/ffi.rs - ffi::lib::wrap_d3xx (line 65) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/ffi.rs - ffi::lib::wrap_d3xx (line 59) stdout ---- [INFO] [stdout] error: cannot find macro `wrap_d3xx` in this scope [INFO] [stdout] --> src/ffi.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | wrap_d3xx!(FT_ListDevices, pArg1: *mut c_void, pArg2: *mut c_void, flags: c_ulong); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/ffi.rs - ffi::lib::wrap_d3xx (line 65) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/ffi.rs:66:38 [INFO] [stdout] | [INFO] [stdout] 66 | unsafe fn FT_ListDevices(pArg1: *mut c_void, pArg2: *mut c_void, flags: c_ulong) -> Result<()> { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 65 + use std::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 65 + use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] 65 + use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 65 + use libc::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/ffi.rs:66:58 [INFO] [stdout] | [INFO] [stdout] 66 | unsafe fn FT_ListDevices(pArg1: *mut c_void, pArg2: *mut c_void, flags: c_ulong) -> Result<()> { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 65 + use std::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 65 + use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] 65 + use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 65 + use libc::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in this scope [INFO] [stdout] --> src/ffi.rs:66:73 [INFO] [stdout] | [INFO] [stdout] 66 | unsafe fn FT_ListDevices(pArg1: *mut c_void, pArg2: *mut c_void, flags: c_ulong) -> Result<()> { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these type aliases [INFO] [stdout] | [INFO] [stdout] 65 + use std::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] 65 + use std::os::raw::c_ulong; [INFO] [stdout] | [INFO] [stdout] 65 + use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] 65 + use libc::c_ulong; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/ffi.rs:67:40 [INFO] [stdout] | [INFO] [stdout] 67 | type F = unsafe extern "C" fn(*mut c_void, *mut c_void, c_ulong) -> FT_STATUS; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 65 + use std::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 65 + use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] 65 + use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 65 + use libc::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/ffi.rs:67:53 [INFO] [stdout] | [INFO] [stdout] 67 | type F = unsafe extern "C" fn(*mut c_void, *mut c_void, c_ulong) -> FT_STATUS; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 65 + use std::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 65 + use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] 65 + use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 65 + use libc::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_ulong` in this scope [INFO] [stdout] --> src/ffi.rs:67:61 [INFO] [stdout] | [INFO] [stdout] 67 | type F = unsafe extern "C" fn(*mut c_void, *mut c_void, c_ulong) -> FT_STATUS; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these type aliases [INFO] [stdout] | [INFO] [stdout] 65 + use std::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] 65 + use std::os::raw::c_ulong; [INFO] [stdout] | [INFO] [stdout] 65 + use core::ffi::c_ulong; [INFO] [stdout] | [INFO] [stdout] 65 + use libc::c_ulong; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FT_STATUS` in this scope [INFO] [stdout] --> src/ffi.rs:67:73 [INFO] [stdout] | [INFO] [stdout] 67 | type F = unsafe extern "C" fn(*mut c_void, *mut c_void, c_ulong) -> FT_STATUS; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `OnceCell` in this scope [INFO] [stdout] --> src/ffi.rs:68:20 [INFO] [stdout] | [INFO] [stdout] 68 | static SYMBOL: OnceCell> = OnceCell::new(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 65 + use std::cell::OnceCell; [INFO] [stdout] | [INFO] [stdout] 65 + use once_cell::sync::OnceCell; [INFO] [stdout] | [INFO] [stdout] 65 + use once_cell::unsync::OnceCell; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Symbol` in this scope [INFO] [stdout] --> src/ffi.rs:68:29 [INFO] [stdout] | [INFO] [stdout] 68 | static SYMBOL: OnceCell> = OnceCell::new(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 65 + use libloading::Symbol; [INFO] [stdout] | [INFO] [stdout] 65 + use libloading::os::unix::Symbol; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OnceCell` [INFO] [stdout] --> src/ffi.rs:68:42 [INFO] [stdout] | [INFO] [stdout] 68 | static SYMBOL: OnceCell> = OnceCell::new(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `OnceCell` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 65 + use std::cell::OnceCell; [INFO] [stdout] | [INFO] [stdout] 65 + use once_cell::sync::OnceCell; [INFO] [stdout] | [INFO] [stdout] 65 + use once_cell::unsync::OnceCell; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `D3xxError` [INFO] [stdout] --> src/ffi.rs:73:19 [INFO] [stdout] | [INFO] [stdout] 73 | return Err(D3xxError::from(res as u32).into()); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `D3xxError` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 65 + use ft60x_rs::D3xxError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/ffi.rs:66:85 [INFO] [stdout] | [INFO] [stdout] 66 | unsafe fn FT_ListDevices(pArg1: *mut c_void, pArg2: *mut c_void, flags: c_ulong) -> Result<()> { [INFO] [stdout] | ^^^^^^ -- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 66 | unsafe fn FT_ListDevices(pArg1: *mut c_void, pArg2: *mut c_void, flags: c_ulong) -> Result<(), E> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `d3xx_fn` in this scope [INFO] [stdout] --> src/ffi.rs:70:42 [INFO] [stdout] | [INFO] [stdout] 70 | let func = SYMBOL.get_or_try_init(|| d3xx_fn::(stringify!($name)))?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/ffi.rs - ffi::lib::wrap_d3xx (line 59) [INFO] [stdout] src/ffi.rs - ffi::lib::wrap_d3xx (line 65) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "2247c9e8fefa8f44b3799ceddae33277cd0a524907fd35eba493bfeb66c6f1d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2247c9e8fefa8f44b3799ceddae33277cd0a524907fd35eba493bfeb66c6f1d8", kill_on_drop: false }` [INFO] [stdout] 2247c9e8fefa8f44b3799ceddae33277cd0a524907fd35eba493bfeb66c6f1d8