Skip to content

Commit

Permalink
Auto merge of #99969 - calebsander:feature/collect-box-str, r=dtolnay
Browse files Browse the repository at this point in the history
alloc: implement FromIterator for Box<str>

`Box<[T]>` implements `FromIterator<T>` using `Vec<T>` + `into_boxed_slice()`.
Add analogous `FromIterator` implementations for `Box<str>`
matching the current implementations for `String`.
Remove the `Global` allocator requirement for `FromIterator<Box<str>>` too.

ACP: rust-lang/libs-team#196
  • Loading branch information
bors committed May 19, 2024
2 parents 75ec03d + ae06264 commit 6f798a2
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 6f798a2

Please sign in to comment.