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
Running `rustc --crate-name socket2 --edition=2018 /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C metadata=aa246bf64056a547 -C extra-filename=-aa246bf64056a547 --out-dir /github/workspace/target/x86_64-unknown-linux-musl/release/deps --target x86_64-unknown-linux-musl -L dependency=/github/workspace/target/x86_64-unknown-linux-musl/release/deps -L dependency=/github/workspace/target/release/deps --extern libc=/github/workspace/target/x86_64-unknown-linux-musl/release/deps/liblibc-d416f6c85e8305e1.rmeta --cap-lints allow`
error: attributes are not yet allowed on `if` expressions
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.1/src/sys/unix.rs:878:5
|
878 | #[cfg(not(any(target_os = "haiku", target_os = "openbsd")))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0658]: `match` is not allowed in a `const fn`
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.1/src/lib.rs:156:9
|
156 | / match address {
157 | | SocketAddr::V4(_) => Domain::IPV4,
158 | | SocketAddr::V6(_) => Domain::IPV6,
159 | | }
| |_________^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/49146
error[E0599]: no associated item named `MAX` found for type `i32` in the current scope
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.1/src/sys/unix.rs:763:46
|
763 | msg.msg_iovlen = min(bufs.len(), IovLen::MAX as usize) as IovLen;
| ^^^ associated item not found in `i32`
error[E0599]: no associated item named `MAX` found for type `i32` in the current scope
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.1/src/sys/unix.rs:823:46
|
823 | msg.msg_iovlen = min(bufs.len(), IovLen::MAX as usize) as IovLen;
| ^^^ associated item not found in `i32`
error: aborting due to 4 previous errors
Some errors have detailed explanations: E0599, E0658.
For more information about an error, try `rustc --explain E0599`.
error: could not compile `socket2`.
How to fix this? I suspect the docker image hasn't been update for quite a while and so this action is outdated and uses old cargo/rustc versions.
The text was updated successfully, but these errors were encountered:
Mentioning rust-lang/socket2#264 explicitly.
I am using the github action the way it is described in the marketplace:
However, it leads to build errors:
How to fix this? I suspect the docker image hasn't been update for quite a while and so this action is outdated and uses old cargo/rustc versions.
The text was updated successfully, but these errors were encountered: