Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 8 pull requests #122256

Merged
merged 23 commits into from
Mar 9, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
23 commits
Select commit Hold shift click to select a range
709ea74
Add Read Impl for &Stdin
Dajamante Jul 11, 2022
8ea2922
Make `impl<Fd: AsFd>` impl take `?Sized`
nbdd0121 Aug 9, 2023
f4aeb70
Make `impl<T: AsHandle>` impl take `?Sized`
nbdd0121 Jan 28, 2024
e49cd1c
TryReserveError to ErrorKind::OutOfMemory
kornelski Feb 21, 2024
aa581f0
Remove unnecessary map_err
kornelski Feb 21, 2024
ea476b1
on the fly type casting for `build.rustc` and `build.cargo`
onur-ozkan Feb 23, 2024
b921a34
Fix stable feature name and stabilization version of Read for &Stdin
dtolnay Feb 26, 2024
b18280f
Fill in Read::read_buf for &Stdin
dtolnay Feb 26, 2024
2283478
Implement junction_point
ChrisDenton Feb 27, 2024
f27a22c
try_with_capacity for RawVec
kornelski Jan 30, 2024
78fb977
try_with_capacity for Vec, VecDeque, String
kornelski Jan 30, 2024
784e6a1
Move capacity_overflow function to make ui tests change less
kornelski Jan 31, 2024
0a00749
Implement MaybeUninit::fill{,_with,_from}
ajwock Feb 18, 2024
52501c2
bump itertools to 0.12
klensy Feb 23, 2024
2de98c8
remove unused derive_more dep
klensy Feb 28, 2024
0a8ea93
Rollup merge of #99153 - Dajamante:issue/95622, r=dtolnay
Nadrieril Mar 9, 2024
5b6d30a
Rollup merge of #114655 - nbdd0121:io-safety, r=dtolnay
Nadrieril Mar 9, 2024
e3c0158
Rollup merge of #120504 - kornelski:try_with_capacity, r=Amanieu
Nadrieril Mar 9, 2024
cbd59d0
Rollup merge of #121280 - ajwock:maybeuninit_fill, r=Amanieu
Nadrieril Mar 9, 2024
9ccf798
Rollup merge of #121403 - kornelski:io-oom, r=dtolnay
Nadrieril Mar 9, 2024
5d4e3d9
Rollup merge of #121526 - onur-ozkan:minor-improvement, r=Mark-Simula…
Nadrieril Mar 9, 2024
bc3bc2b
Rollup merge of #121584 - klensy:itertools-up, r=Mark-Simulacrum
Nadrieril Mar 9, 2024
13ca978
Rollup merge of #121711 - ChrisDenton:junction, r=Mark-Simulacrum
Nadrieril Mar 9, 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
10 changes: 5 additions & 5 deletions library/std/src/os/fd/owned.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,15 244,15 @@ pub trait AsFd {
}

#[stable(feature = "io_safety", since = "1.63.0")]
impl<T: AsFd> AsFd for &T {
impl<T: AsFd ?Sized> AsFd for &T {
#[inline]
fn as_fd(&self) -> BorrowedFd<'_> {
T::as_fd(self)
}
}

#[stable(feature = "io_safety", since = "1.63.0")]
impl<T: AsFd> AsFd for &mut T {
impl<T: AsFd ?Sized> AsFd for &mut T {
#[inline]
fn as_fd(&self) -> BorrowedFd<'_> {
T::as_fd(self)
Expand Down Expand Up @@ -402,23 402,23 @@ impl From<OwnedFd> for crate::net::UdpSocket {
/// impl MyTrait for Box<UdpSocket> {}
/// # }
/// ```
impl<T: AsFd> AsFd for crate::sync::Arc<T> {
impl<T: AsFd ?Sized> AsFd for crate::sync::Arc<T> {
#[inline]
fn as_fd(&self) -> BorrowedFd<'_> {
(**self).as_fd()
}
}

#[stable(feature = "asfd_rc", since = "1.69.0")]
impl<T: AsFd> AsFd for crate::rc::Rc<T> {
impl<T: AsFd ?Sized> AsFd for crate::rc::Rc<T> {
#[inline]
fn as_fd(&self) -> BorrowedFd<'_> {
(**self).as_fd()
}
}

#[stable(feature = "asfd_ptrs", since = "1.64.0")]
impl<T: AsFd> AsFd for Box<T> {
impl<T: AsFd ?Sized> AsFd for Box<T> {
#[inline]
fn as_fd(&self) -> BorrowedFd<'_> {
(**self).as_fd()
Expand Down
10 changes: 5 additions & 5 deletions library/std/src/os/windows/io/handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -422,15 422,15 @@ pub trait AsHandle {
}

#[stable(feature = "io_safety", since = "1.63.0")]
impl<T: AsHandle> AsHandle for &T {
impl<T: AsHandle ?Sized> AsHandle for &T {
#[inline]
fn as_handle(&self) -> BorrowedHandle<'_> {
T::as_handle(self)
}
}

#[stable(feature = "io_safety", since = "1.63.0")]
impl<T: AsHandle> AsHandle for &mut T {
impl<T: AsHandle ?Sized> AsHandle for &mut T {
#[inline]
fn as_handle(&self) -> BorrowedHandle<'_> {
T::as_handle(self)
Expand All @@ -450,23 450,23 @@ impl<T: AsHandle> AsHandle for &mut T {
/// impl MyTrait for Box<File> {}
/// # }
/// ```
impl<T: AsHandle> AsHandle for crate::sync::Arc<T> {
impl<T: AsHandle ?Sized> AsHandle for crate::sync::Arc<T> {
#[inline]
fn as_handle(&self) -> BorrowedHandle<'_> {
(**self).as_handle()
}
}

#[stable(feature = "as_windows_ptrs", since = "1.71.0")]
impl<T: AsHandle> AsHandle for crate::rc::Rc<T> {
impl<T: AsHandle ?Sized> AsHandle for crate::rc::Rc<T> {
#[inline]
fn as_handle(&self) -> BorrowedHandle<'_> {
(**self).as_handle()
}
}

#[stable(feature = "as_windows_ptrs", since = "1.71.0")]
impl<T: AsHandle> AsHandle for Box<T> {
impl<T: AsHandle ?Sized> AsHandle for Box<T> {
#[inline]
fn as_handle(&self) -> BorrowedHandle<'_> {
(**self).as_handle()
Expand Down