You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0308]: mismatched types
--> C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\watchman_client-0.8.0\src\named_pipe.rs:55:46
|
55 | NamedPipeClient::from_raw_handle(handle).map_err(|err| Error::Connect {
| -------------------------------- ^^^^^^ expected `std::ffi::c_void`, found `winapi::ctypes::c_void`
| |
| arguments to this function are incorrect
|
= note: `winapi::ctypes::c_void` and `std::ffi::c_void` have similar names, but are actually distinct types
note: `winapi::ctypes::c_void` is defined in crate `winapi`
--> C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\winapi-0.3.9\src\lib.rs:38:5
|
38 | pub enum c_void {}
| ^^^^^^^^^^^^^^^
note: `std::ffi::c_void` is defined in crate `core`
--> /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce\library\core\src\ffi\mod.rs:209:1
note: associated function defined here
--> C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.37.0\src\net\windows\named_pipe.rs:999:19
|
999 | pub unsafe fn from_raw_handle(handle: RawHandle) -> io::Result<Self> {
| ^^^^^^^^^^^^^^^
For more information about this error, try `rustc --explain E0308`.
error: could not compile `watchman_client` (lib) due to 1 previous error
Caused by:
process didn't exit successfully: `C:\Users\runneradmin\.rustup\toolchains\1.76-x86_64-pc-windows-msvc\bin\rustc.exe --crate-name watchman_client --edition=2021 C:
ilyagr
changed the title
After updating dependencies of watchman_client Rust bindings, it no longer compiles on Windows
Rust client: After updating dependencies of watchman_client, it no longer compiles on Windows
May 25, 2024
ilyagr
changed the title
Rust client: After updating dependencies of watchman_client, it no longer compiles on Windows
Rust client bindings: After updating dependencies of watchman_client, it no longer compiles on Windows
May 25, 2024
The error is:
See https://github.com/martinvonz/jj/actions/runs/9233007115/job/25404996847?pr=3755. It compiles fine on other platforms.
It seems to fail with these versions (unfortunately, I only see it via GitHub actions):
It should be possible to reproduce the error by cloning jj-vcs/jj@b091334, running
cargo update
, and then compiling it with Rust 1.76.Here is the full Cargo.lock that causes this failure
The text was updated successfully, but these errors were encountered: