Files
rust/library/std/src
Matthias Krüger 957f6c3973 Rollup merge of #129329 - eduardosm:rc-from-mut-slice, r=dtolnay
Implement `From<&mut {slice}>` for `Box/Rc/Arc<{slice}>`

ACP: https://github.com/rust-lang/libs-team/issues/424

New API:

```rust
impl<T: Clone> From<&mut [T]> for Box<[T]>
impl From<&mut str> for Box<str>
impl From<&mut CStr> for Box<CStr>
impl From<&mut OsStr> for Box<OsStr>
impl From<&mut Path> for Box<Path>

impl<T: Clone> From<&mut [T]> for Rc<[T]>
impl From<&mut str> for Rc<str>
impl From<&mut CStr> for Rc<CStr>
impl From<&mut OsStr> for Rc<OsStr>
impl From<&mut Path> for Rc<Path>

impl<T: Clone> From<&mut [T]> for Arc<[T]>
impl From<&mut str> for Arc<str>
impl From<&mut CStr> for Arc<CStr>
impl From<&mut OsStr> for Arc<OsStr>
impl From<&mut Path> for Arc<Path>
```

Since they are trait implementations, I think these are insta-stable.

As mentioned in https://github.com/rust-lang/libs-team/issues/424#issuecomment-2299415749, a crater run might be needed.
2024-11-03 12:08:49 +01:00
..
2023-12-10 10:56:22 +08:00
2024-07-29 08:26:52 +10:00
2024-09-25 17:03:20 -07:00
2024-09-23 10:29:51 +02:00
2024-01-11 11:30:12 -05:00
2024-07-29 08:26:52 +10:00
2024-10-28 17:14:15 +00:00
2024-11-02 01:37:45 +01:00
2024-08-01 15:38:51 -04:00
2024-04-08 11:57:17 +00:00
2024-10-22 20:18:11 -04:00