Add more from the std

This commit is contained in:
2026-03-17 22:51:36 +01:00
parent 9958b23c89
commit 72989d86a8
29 changed files with 2822 additions and 33 deletions

View File

@@ -6,12 +6,12 @@ mod tests;
use core::clone::CloneToUninit;
use crate::borrow::{Borrow, Cow};
use alloc::collections::TryReserveError;
use alloc_crate::collections::TryReserveError;
use crate::hash::{Hash, Hasher};
use crate::ops::{self, Range};
use crate::rc::Rc;
use crate::str::FromStr;
use alloc::sync::Arc;
use alloc_crate::sync::Arc;
use crate::sys::os_str::{Buf, Slice};
use crate::sys::{AsInner, FromInner, IntoInner};
use crate::{cmp, fmt, slice};
@@ -1658,7 +1658,7 @@ impl fmt::Display for Display<'_> {
}
#[unstable(feature = "slice_concat_ext", issue = "27747")]
impl<S: Borrow<OsStr>> alloc::slice::Join<&OsStr> for [S] {
impl<S: Borrow<OsStr>> alloc_crate::slice::Join<&OsStr> for [S] {
type Output = OsString;
fn join(slice: &Self, sep: &OsStr) -> OsString {