-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Tracking issue for {Vec,String}::splice #32310
Comments
There's a preliminary implementation here, which could easily be picked up and brought over the finish line! |
Implement Vec::splice and String::splice (RFC 1432) RFC: rust-lang/rfcs#1432, tracking issue: rust-lang#32310 A rebase of rust-lang#32355 with a few more tests. Let me know if you have any ideas for more tests. cc @SimonSapin
Implement Vec::splice and String::splice (RFC 1432) RFC: rust-lang/rfcs#1432, tracking issue: rust-lang#32310 A rebase of rust-lang#32355 with a few more tests. Let me know if you have any ideas for more tests. cc @SimonSapin
Implement Vec::splice and String::splice (RFC 1432) RFC: rust-lang/rfcs#1432, tracking issue: rust-lang#32310 A rebase of rust-lang#32355 with a few more tests. Let me know if you have any ideas for more tests. cc @SimonSapin
Implement Vec::splice and String::splice (RFC 1432) RFC: rust-lang/rfcs#1432, tracking issue: rust-lang#32310 A rebase of rust-lang#32355 with a few more tests. Let me know if you have any ideas for more tests. cc @SimonSapin
Implement Vec::splice and String::splice (RFC 1432) RFC: rust-lang/rfcs#1432, tracking issue: #32310 A rebase of #32355 with a few more tests. Let me know if you have any ideas for more tests. cc @SimonSapin
Because this is implemented, is there anything blocking stabilisation? |
@clarcharr Nope! I'll get the wheels in motion: @rfcbot fcp merge |
Team member @aturon has proposed to merge this. The next step is review by the rest of the tagged teams: Concerns:
Once these reviewers reach consensus, 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. |
Why would you ever use the return value from String::splice?
Given that 'a and 'b are required to outlive
@rfcbot concern return value of String::splice |
If IndexAssign (or IndexSet or whatever, rust-lang/rfcs#997) existed today, would we be using that instead? Would we want both? let mut s: String = /* ... */;
s[from..to] = "replacement"; @rfcbot concern IndexAssign |
I will say that Perhaps going forward the features for |
I'm on board with stabilizing the Vec method, but not String for the reasons mentioned above. I think |
I agree that IndexSet is too far away to block this. @rfcbot resolved IndexAssign |
The following applies only to Vec::splice. @rfcbot reviewed |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
IMO if |
…lnay Remove Splice struct return value from String::splice The implementation is now almost identical to the one in the RFC. Fixes rust-lang#44038 cc rust-lang#32310
The final comment period is now complete. |
The FCP above applies to Vec::splice. I filed #44643 as the tracking issue for String::splice which remains unstable with its new signature. |
Stabilized vec_splice and modified splice tracking issue This stabilizes the vec_splice (Vec part of splice RFC) Fixes rust-lang#32310.
Stabilized vec_splice and modified splice tracking issue This stabilizes the vec_splice (Vec part of splice RFC) Fixes rust-lang#32310.
Tracking issue for rust-lang/rfcs#1432.
First needs to be implemented, then needs to go through FCP!
The text was updated successfully, but these errors were encountered: