Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd method `String::insert_str` #34771
Conversation
rust-highfive
assigned
brson
Jul 11, 2016
This comment has been minimized.
This comment has been minimized.
|
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
|
The functionality makes sense to me. Is there really no easy way to do this today? cc @rust-lang/libs |
brson
added
I-nominated
T-libs
labels
Jul 11, 2016
This comment has been minimized.
This comment has been minimized.
|
@murarth Can you please change the stability attribute to 'unstable'? New features mostly don't get stabilized immediately. |
This comment has been minimized.
This comment has been minimized.
|
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 |
This comment has been minimized.
This comment has been minimized.
|
@brson: Sure, I just didn't know what to put for |
This comment has been minimized.
This comment has been minimized.
|
@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. |
This comment has been minimized.
This comment has been minimized.
|
@brson: Okay. It's unstable now. |
This comment has been minimized.
This comment has been minimized.
|
This seems fine to me. I agree that it's small enough that we probably wouldn't need an RFC for it. |
This comment has been minimized.
This comment has been minimized.
|
LGTM |
This comment has been minimized.
This comment has been minimized.
|
This is covered by |
This comment has been minimized.
This comment has been minimized.
|
Ah yeah I was also under the impression that this was going to be functionality implemented through |
This comment has been minimized.
This comment has been minimized.
|
I wasn't aware of that RFC. Even so, |
This comment has been minimized.
This comment has been minimized.
|
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 |
This comment has been minimized.
This comment has been minimized.
|
I'm likewise happy having this as a convenience on top of |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
|
bors
added a commit
that referenced
this pull request
Jul 19, 2016
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
@bors: retry On Tue, Jul 19, 2016 at 12:46 PM, bors notifications@github.com wrote:
|
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Jul 20, 2016
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
@bors: retry On Tue, Jul 19, 2016 at 9:19 PM, bors notifications@github.com wrote:
|
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Jul 21, 2016
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
@bors: retry On Wed, Jul 20, 2016 at 5:40 PM, bors notifications@github.com wrote:
|
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Jul 21, 2016
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
@bors: retry sorry for the number of retries... On Thu, Jul 21, 2016 at 12:21 PM, bors notifications@github.com wrote:
|
brson
removed
the
I-nominated
label
Jul 21, 2016
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Jul 22, 2016
This comment has been minimized.
This comment has been minimized.
bors
merged commit 0bcf64c
into
rust-lang:master
Jul 22, 2016
murarth
deleted the
murarth:string-insert-str
branch
Jul 22, 2016
This comment has been minimized.
This comment has been minimized.
|
Just curious, will the libs team create a tracking issue for this at some time or am I supposed to file one myself? |
This comment has been minimized.
This comment has been minimized.
|
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. |
murarth commentedJul 11, 2016
No description provided.