Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from 2 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
9f7e049
Distribute rustc_codegen_cranelift for arm64 macOS
bjorn3 Jun 30, 2024
64ec270
Promote Mac Catalyst targets to tier 2, and ship with rustup
madsmtm Jun 13, 2024
5b0b4ff
Update wasi-sdk in CI to latest release
alexcrichton Jul 19, 2024
006c884
Fix two new failing tests
alexcrichton Jul 19, 2024
7b19389
rewrite test-benches to rmake
Oneirical Jul 19, 2024
2733494
rewrite c-unwind-abi-catch-panic to rmake
Oneirical Jul 19, 2024
2192a91
rewrite compiler-lookup-paths-2 to rmake
Oneirical Jul 19, 2024
ee034f4
Fix stab display in doc blocks
GuillaumeGomez Jul 20, 2024
9533544
rustdoc: short descr. cause word-breaks in tables
Kijewski Jul 21, 2024
e4d701b
Add regression test for stab display in doc blocks
GuillaumeGomez Jul 20, 2024
84db684
Update `source-code-page-code-scroll.goml` GUI test
GuillaumeGomez Jul 21, 2024
ae42efc
Deal with invalid UTF-8 from `gai_strerror`
Noratrieb Jul 10, 2024
5e24073
Rollup merge of #126450 - madsmtm:promote-mac-catalyst, r=Mark-Simula…
GuillaumeGomez Jul 21, 2024
14a89ab
Rollup merge of #127177 - bjorn3:arm64_macos_cg_clif, r=Mark-Simulacrum
GuillaumeGomez Jul 21, 2024
bf8b40e
Rollup merge of #127583 - Nilstrieb:invalid-utf8, r=joboet
GuillaumeGomez Jul 21, 2024
9cab176
Rollup merge of #127977 - alexcrichton:update-wasi-sdk, r=Mark-Simula…
GuillaumeGomez Jul 21, 2024
bbb94e7
Rollup merge of #127985 - Oneirical:testibule-of-hell, r=Kobzol
GuillaumeGomez Jul 21, 2024
6e9b6f4
Rollup merge of #128014 - GuillaumeGomez:stab-in-doc-blocks, r=notriddle
GuillaumeGomez Jul 21, 2024
ade4026
Rollup merge of #128023 - Kijewski:pr-table-width, r=notriddle
GuillaumeGomez Jul 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions library/std/src/sys/pal/unix/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use crate::io::{self, BorrowedBuf, BorrowedCursor, IoSlice, IoSliceMut};
use crate::mem;
use crate::net::{Shutdown, SocketAddr};
use crate::os::unix::io::{AsFd, AsRawFd, BorrowedFd, FromRawFd, IntoRawFd, RawFd};
use crate::str;
use crate::sys::fd::FileDesc;
use crate::sys::pal::unix::IsMinusOne;
use crate::sys_common::net::{getsockopt, setsockopt, sockaddr_to_addr};
Expand Down Expand Up @@ -47,7 +46,9 @@ pub fn cvt_gai(err: c_int) -> io::Result<()> {

#[cfg(not(target_os = "espidf"))]
let detail = unsafe {
str::from_utf8(CStr::from_ptr(libc::gai_strerror(err)).to_bytes()).unwrap().to_owned()
// We can't always expect a UTF-8 environment. When we don't get that luxury,
// it's better to give a low-quality error message than none at all.
CStr::from_ptr(libc::gai_strerror(err)).to_string_lossy()
};

#[cfg(target_os = "espidf")]
Expand Down