[INFO] fetching crate ft60x_rs 0.1.0... [INFO] testing ft60x_rs-0.1.0 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate ft60x_rs 0.1.0 into /workspace/builds/worker-3-tc2/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-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate ft60x_rs 0.1.0 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 28705fb4df0eabd0bd1dae834e5590faa5c3f7e36a393dd1b4ce45eafc0ece23 [INFO] running `Command { std: "docker" "start" "-a" "28705fb4df0eabd0bd1dae834e5590faa5c3f7e36a393dd1b4ce45eafc0ece23", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "28705fb4df0eabd0bd1dae834e5590faa5c3f7e36a393dd1b4ce45eafc0ece23", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "28705fb4df0eabd0bd1dae834e5590faa5c3f7e36a393dd1b4ce45eafc0ece23", kill_on_drop: false }` [INFO] [stdout] 28705fb4df0eabd0bd1dae834e5590faa5c3f7e36a393dd1b4ce45eafc0ece23 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2a7a3b189e2d83f12afe76c4eb13531862e4ffcb597736a7b1b9d12c434a1c58 [INFO] running `Command { std: "docker" "start" "-a" "2a7a3b189e2d83f12afe76c4eb13531862e4ffcb597736a7b1b9d12c434a1c58", kill_on_drop: false }` [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling option-ext v0.2.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 4.15s [INFO] running `Command { std: "docker" "inspect" "2a7a3b189e2d83f12afe76c4eb13531862e4ffcb597736a7b1b9d12c434a1c58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a7a3b189e2d83f12afe76c4eb13531862e4ffcb597736a7b1b9d12c434a1c58", kill_on_drop: false }` [INFO] [stdout] 2a7a3b189e2d83f12afe76c4eb13531862e4ffcb597736a7b1b9d12c434a1c58 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b604828c6f4ec510092728d79fb847c09fdad00379577b02159c7b3597783b21 [INFO] running `Command { std: "docker" "start" "-a" "b604828c6f4ec510092728d79fb847c09fdad00379577b02159c7b3597783b21", kill_on_drop: false }` [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] 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 `test` profile [unoptimized + debuginfo] target(s) in 0.76s [INFO] running `Command { std: "docker" "inspect" "b604828c6f4ec510092728d79fb847c09fdad00379577b02159c7b3597783b21", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b604828c6f4ec510092728d79fb847c09fdad00379577b02159c7b3597783b21", kill_on_drop: false }` [INFO] [stdout] b604828c6f4ec510092728d79fb847c09fdad00379577b02159c7b3597783b21 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 55f674f8bb6fde82548c8b7304505c1c732e336a61aa8a534fa304fec20a01e0 [INFO] running `Command { std: "docker" "start" "-a" "55f674f8bb6fde82548c8b7304505c1c732e336a61aa8a534fa304fec20a01e0", 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.06s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ft60x_rs-7e863c24a50d0f5a) [INFO] [stderr] Doc-tests ft60x_rs [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] [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.13s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "55f674f8bb6fde82548c8b7304505c1c732e336a61aa8a534fa304fec20a01e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "55f674f8bb6fde82548c8b7304505c1c732e336a61aa8a534fa304fec20a01e0", kill_on_drop: false }` [INFO] [stdout] 55f674f8bb6fde82548c8b7304505c1c732e336a61aa8a534fa304fec20a01e0