rust/library/std/src
bors 989b806f61 Auto merge of #96881 - est31:join_osstr, r=dtolnay
Implement [OsStr]::join

Implements join for `OsStr` and `OsString` slices:

```Rust
    let strings = [OsStr::new("hello"), OsStr::new("dear"), OsStr::new("world")];
    assert_eq!("hello dear world", strings.join(OsStr::new(" ")));
````

This saves one from converting to strings and back, or from implementing it manually.

This PR has been re-filed after #96744 was first accidentally merged and then reverted.

The change is instantly stable and thus:

r? rust-lang/libs-api `@rustbot` label +T-libs-api -T-libs

cc `@thomcc` `@m-ou-se` `@faptc`
2022-05-31 04:28:29 +00:00
..
backtrace
collections Add complexity estimation of iterating over HashSet and HashMap 2022-05-20 18:46:24 +03:00
env
error
f32
f64
ffi Auto merge of #96881 - est31:join_osstr, r=dtolnay 2022-05-31 04:28:29 +00:00
fs
io Use Box::new() instead of box syntax in std tests 2022-05-29 01:44:11 +02:00
lazy
net Fix stabilization version of Ipv6Addr::to_ipv4_mapped 2022-05-24 01:05:06 +02:00
num
os Disable unix::net::ancillary on BSD. 2022-05-25 20:09:59 -07:00
panic
path
prelude Finish bumping stage0 2022-05-27 07:36:17 -04:00
process
sync Use Box::new() instead of box syntax in std tests 2022-05-29 01:44:11 +02:00
sys Remove "sys isn't exported yet" phrase 2022-05-30 12:07:43 +02:00
sys_common Remove "sys isn't exported yet" phrase 2022-05-30 12:07:43 +02:00
thread Use Box::new() instead of box syntax in std tests 2022-05-29 01:44:11 +02:00
time
alloc.rs
ascii.rs
backtrace.rs
env.rs add aliases for current_dir 2022-05-24 19:41:40 -07:00
error.rs Fix typo (panick -> panic) 2022-05-29 13:14:59 +04:00
f32.rs
f64.rs
fs.rs
keyword_docs.rs Fix weird indentation in continue_keyword docs 2022-05-24 11:10:56 -07:00
lazy.rs
lib.rs Auto merge of #96881 - est31:join_osstr, r=dtolnay 2022-05-31 04:28:29 +00:00
macros.rs Make write/print macros eagerly drop temporaries 2022-05-22 16:11:08 -07:00
num.rs
panic.rs
panicking.rs Auto merge of #92461 - rust-lang:const_tls_local_panic_count, r=Mark-Simulacrum 2022-05-23 13:04:59 +00:00
path.rs
primitive_docs.rs Rollup merge of #97321 - RalfJung:int-to-fnptr, r=Dylan-DPC 2022-05-24 15:58:26 +02:00
process.rs small change 2022-05-22 17:52:04 +05:30
rt.rs
time.rs std::time : fix doc variable name 2022-05-23 00:02:09 +02:00