rust/library/std/src/ffi
Jacob Pratt 06a2daf4db
Rollup merge of #137992 - its-the-shrimp:stabilise_os_string_pathbuf_leak, r=dtolnay
Stabilise `os_string_pathbuf_leak`

This PR stabilises `#[feature(os_string_pathbuf_leak)]`, which defines 2 new methods in the std:

```rs
impl OsString {
    pub fn leak<'a>(self) -> &'a mut OsStr;
}

impl PathBuf {
    pub fn leak<'a>(self) -> &'a mut Path;
}
```

ACP: https://github.com/rust-lang/libs-team/issues/389
Tracking issue: https://github.com/rust-lang/rust/issues/125965
Implementation: https://github.com/rust-lang/rust/pull/125966
2025-06-07 07:05:44 +02:00
..
os_str Add inherent versions of MaybeUninit methods for slices 2025-01-11 23:57:00 -05:00
c_str.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
mod.rs Rollup merge of #140418 - tgross35:std-c-size_t, r=workingjubilee 2025-06-06 23:53:15 +02:00
os_str.rs Stabilised os_string_pathbuf_leak 2025-06-06 12:06:42 -07:00