-
Notifications
You must be signed in to change notification settings - Fork 12.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
alloc: implement FromIterator for Box<str> #99969
Conversation
r? @kennytm (rust-highfive has picked a reviewer for you, use r? to override) |
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
@rustbot label +T-libs-api -T-libs |
I believe this does require an ACP (insta-stable new implementation of stable trait on stable type). Please create one if you haven't already. Link it here and then label this PR as S-waiting-on-ACP. @rustbot label -S-waiting-on-review +S-waiting-on-author |
d456168
to
55ba9e7
Compare
@rustbot label +S-waiting-on-review -S-waiting-on-author |
@rust-lang/libs-api: + impl FromIterator<char> for Box<str>
+ impl FromIterator<&char> for Box<str>
+ impl FromIterator<&str> for Box<str>
+ impl FromIterator<String> for Box<str>
+ impl<A: Allocator> FromIterator<Box<str, A>> for Box<str>
+ impl FromIterator<Cow<'_, str>> for Box<str>
- impl FromIterator<Box<str>> for String
+ impl<A: Allocator> FromIterator<Box<str, A>> for String
- impl Extend<Box<str>> for String
+ impl<A: Allocator> Extend<Box<str, A>> for String |
Team member @dtolnay has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
…r=dtolnay 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
The job Click to see the possible cause of the failure (guessed by this bot)
|
💔 Test failed - checks-actions |
Can't tell what failed. @bors retry |
☀️ Test successful - checks-actions |
Finished benchmarking commit (bfa3635): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results (primary 4.1%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 667.801s -> 671.223s (0.51%) |
The locked version no longer compiles on nightly due to <rust-lang/rust#99969>.
The locked version no longer compiles on nightly due to <rust-lang/rust#99969>.
Previously shadow wouldn't compile on nightly due to a rust type inference change that breaks older rust code, and they intend to stabilize this change. For us that breakage occurs in the time crate, so this PR upgrades all dependencies (including the time library) to fix the build errors. rust-lang/rust#99969 (comment) rust-lang/rust#125319
Previously shadow wouldn't compile on nightly due to a rust type inference change that breaks existing rust code, and they intend to stabilize this change. For us that breakage occurs in the time crate, so this PR upgrades all dependencies (including the time library) to fix the build errors. rust-lang/rust#99969 (comment) rust-lang/rust#125319
Previously shadow wouldn't compile on nightly due to a rust type inference change that breaks existing rust code, and they intend to stabilize this change. For us that breakage occurs in the time crate, so this PR upgrades all dependencies (including the time library) to fix the build errors. rust-lang/rust#99969 (comment) rust-lang/rust#125319
Previously shadow wouldn't compile on nightly due to a rust compiler type inference change that breaks existing rust code, and they intend to stabilize this change in a couple of months. For us that breakage occurs in the time crate, so this PR upgrades all dependencies (including the time library) to fix the build error. rust-lang/rust#99969 (comment) rust-lang/rust#125319
Box<[T]>
implementsFromIterator<T>
usingVec<T>
+into_boxed_slice()
.Add analogous
FromIterator
implementations forBox<str>
matching the current implementations for
String
.Remove the
Global
allocator requirement forFromIterator<Box<str>>
too.ACP: rust-lang/libs-team#196