-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Add method String::insert_str
#34771
Conversation
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
The functionality makes sense to me. Is there really no easy way to do this today? cc @rust-lang/libs |
@murarth Can you please change the stability attribute to 'unstable'? New features mostly don't get stabilized immediately. |
This is pretty common functionality whose absence I thought was a bit strange. The signature of This seems to me like a sufficiently small addition not to warrant an RFC, so I thought I'd go ahead and submit it. The |
@brson: Sure, I just didn't know what to put for |
@murarth "0" is fine for now. If this PR is accepted then before it's merged you'll need to file a 'tracking' issue on the issue tracker to fill in the real number. |
@brson: Okay. It's unstable now. |
This seems fine to me. I agree that it's small enough that we probably wouldn't need an RFC for it. |
LGTM |
This is covered by |
Ah yeah I was also under the impression that this was going to be functionality implemented through |
I wasn't aware of that RFC. Even so, |
Yeah it's true that does look a bit odd! We might still have API room to add a function like this, and to me it seems to fit all existing conventions so I'd also be fine layering this on top (although it'd probably use |
I'm likewise happy having this as a convenience on top of |
📌 Commit 0bcf64c has been approved by |
⌛ Testing commit 0bcf64c with merge 67f0941... |
💔 Test failed - auto-win-msvc-64-opt |
@bors: retry On Tue, Jul 19, 2016 at 12:46 PM, bors [email protected] wrote:
|
⌛ Testing commit 0bcf64c with merge 482a03c... |
💔 Test failed - auto-win-msvc-64-opt-rustbuild |
@bors: retry On Tue, Jul 19, 2016 at 9:19 PM, bors [email protected] wrote:
|
⌛ Testing commit 0bcf64c with merge 44b6d38... |
💔 Test failed - auto-win-gnu-32-opt-rustbuild |
@bors: retry On Wed, Jul 20, 2016 at 5:40 PM, bors [email protected] wrote:
|
⌛ Testing commit 0bcf64c with merge 6722228... |
💔 Test failed - auto-linux-64-debug-opt |
@bors: retry sorry for the number of retries... On Thu, Jul 21, 2016 at 12:21 PM, bors [email protected] wrote:
|
Just curious, will the libs team create a tracking issue for this at some time or am I supposed to file one myself? |
Oh oops! Thanks for the reminder @murarth! This actually should have held off on landing until a tracking issue was made, but oh well. If you want to open a tracking issue and send a PR updating the reference here I'll r+ and tag appropriately. |
No description provided.