-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Compiling rustix v1.1.3
error[E0583]: file not found for module `sys`
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/socket2-0.6.1/src/lib.rs:181:1
|
181 | mod sys;
| ^^^^^^^^
|
= help: to create the module `sys`, create file "/home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/socket2-0.6.1/src/sys.rs" or "/home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/socket2-0.6.1/src/sys/mod.rs"
= note: if there is a `mod sys` elsewhere in the crate already, import it with `use crate::...` instead
error: Socket2 doesn't support the compile target
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/socket2-0.6.1/src/lib.rs:184:1
|
184 | compile_error!("Socket2 doesn't support the compile target");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0061]: this function takes 4 arguments but 3 arguments were supplied
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/socket2-0.6.1/src/sockaddr.rs:292:33
|
292 | Some(SocketAddr::V6(SocketAddrV6::new(
| _________________________________^^^^^^^^^^^^^^^^^-
293 | | ip,
294 | | port,
295 | | addr.sin6_flowinfo,
... |
301 | | },
302 | | )))
| |_____________- argument #4 of type `u32` is missing
|
note: associated function defined here
--> /rustc/01f6ddf7588f42ae2d7eb0a2f21d44e8e96674cf/library/core/src/net/socket_addr.rs:426:18
help: provide the argument
|
292 ~ Some(SocketAddr::V6(SocketAddrV6::new(
293 + ip,
294 + port,
295 + addr.sin6_flowinfo,
296 + /* u32 */,
297 ~ )))
|
error[E0308]: mismatched types
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/socket2-0.6.1/src/socket.rs:2319:23
|
2319 | from!(net::TcpStream, Socket);
| ^^^^^^ expected `Socket`, found `()`
|
::: /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/socket2-0.6.1/src/lib.rs:111:16
|
111 | fn from(socket: $from) -> $for {
| ---- implicitly returns `()` as its body has no tail or `return` expression
error[E0308]: mismatched types
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/socket2-0.6.1/src/socket.rs:2320:25
|
2320 | from!(net::TcpListener, Socket);
| ^^^^^^ expected `Socket`, found `()`
|
::: /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/socket2-0.6.1/src/lib.rs:111:16
|
111 | fn from(socket: $from) -> $for {
| ---- implicitly returns `()` as its body has no tail or `return` expression
error[E0308]: mismatched types
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/socket2-0.6.1/src/socket.rs:2321:23
|
2321 | from!(net::UdpSocket, Socket);
| ^^^^^^ expected `Socket`, found `()`
|
::: /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/socket2-0.6.1/src/lib.rs:111:16
|
111 | fn from(socket: $from) -> $for {
| ---- implicitly returns `()` as its body has no tail or `return` expression
error[E0308]: mismatched types
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/socket2-0.6.1/src/socket.rs:2322:15
|
2322 | from!(Socket, net::TcpStream);
| ^^^^^^^^^^^^^^ expected `TcpStream`, found `()`
|
::: /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/socket2-0.6.1/src/lib.rs:111:16
|
111 | fn from(socket: $from) -> $for {
| ---- implicitly returns `()` as its body has no tail or `return` expression
error[E0308]: mismatched types
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/socket2-0.6.1/src/socket.rs:2323:15
|
2323 | from!(Socket, net::TcpListener);
| ^^^^^^^^^^^^^^^^ expected `TcpListener`, found `()`
|
::: /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/socket2-0.6.1/src/lib.rs:111:16
|
111 | fn from(socket: $from) -> $for {
| ---- implicitly returns `()` as its body has no tail or `return` expression
error[E0308]: mismatched types
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/socket2-0.6.1/src/socket.rs:2324:15
|
2324 | from!(Socket, net::UdpSocket);
| ^^^^^^^^^^^^^^ expected `UdpSocket`, found `()`
|
::: /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/socket2-0.6.1/src/lib.rs:111:16
|
111 | fn from(socket: $from) -> $for {
| ---- implicitly returns `()` as its body has no tail or `return` expression
Some errors have detailed explanations: E0061, E0308, E0583.
For more information about an error, try `rustc --explain E0061`.
error: could not compile `socket2` (lib) due to 9 previous errors
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels