Skip to content
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 feature(string_drain_as_str) - string::Drain::as_str() #76905

Closed
m-ou-se opened this issue Sep 19, 2020 · 8 comments · Fixed by #86858
Closed

Tracking Issue for feature(string_drain_as_str) - string::Drain::as_str() #76905

m-ou-se opened this issue Sep 19, 2020 · 8 comments · Fixed by #86858
Labels
A-str Area: str and String C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. finished-final-comment-period The final comment period is finished for this PR / Issue. Libs-Tracked Libs issues that are tracked on the team's project board. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Comments

@m-ou-se
Copy link
Member

m-ou-se commented Sep 19, 2020

Tracking Issue for string_drain_as_str as introduced by #76525.

Api:

  • Drain::as_str()
  • AsRef<str> for Drain
  • AsRef<[u8]> for Drain

The first one is now gated behind feature(string_drain_as_str). The other two are not available yet, as trait implementations cannot be unstable. These should be added (uncommented) when this feature is stabilized.

@m-ou-se m-ou-se added the C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC label Sep 19, 2020
@rustbot rustbot added T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. A-str Area: str and String labels Sep 19, 2020
@KodrAus KodrAus added the Libs-Tracked Libs issues that are tracked on the team's project board. label Nov 6, 2020
@JohnTitor
Copy link
Member

Seems there's no blocker, could I ask you to kick off FCP to stabilize it?

@JohnTitor
Copy link
Member

cc @rust-lang/libs-api If it's reasonable, it'd be great if someone starts FCP :)

@joshtriplett
Copy link
Member

Do we have any confirmation of usage in the ecosystem? I don't see any problem with the method as designed, but can we confirm that it's being used?

@JohnTitor
Copy link
Member

Oh sorry, I don't have the real world use case, unfortunately. I just thought this is straightforward and makes the conversion around .drain(..) easier. And we cannot make any use that requires AsRef because it's hidden until we stabilize the feature.

@m-ou-se
Copy link
Member Author

m-ou-se commented Jun 23, 2021

@rfcbot merge

@rfcbot
Copy link

rfcbot commented Jun 23, 2021

Team member @m-ou-se 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.

@rfcbot rfcbot added proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off. disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. final-comment-period In the final comment period and will be merged soon unless new substantive objections are raised. and removed proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off. labels Jun 23, 2021
@rfcbot
Copy link

rfcbot commented Jun 23, 2021

🔔 This is now entering its final comment period, as per the review above. 🔔

@rfcbot rfcbot added finished-final-comment-period The final comment period is finished for this PR / Issue. and removed final-comment-period In the final comment period and will be merged soon unless new substantive objections are raised. labels Jul 3, 2021
@rfcbot
Copy link

rfcbot commented Jul 3, 2021

The final comment period, with a disposition to merge, as per the review above, is now complete.

As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed.

The RFC will be merged soon.

@rfcbot rfcbot added the to-announce Announce this issue on triage meeting label Jul 3, 2021
@bors bors closed this as completed in 28dba82 Jul 5, 2021
@apiraino apiraino removed the to-announce Announce this issue on triage meeting label Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-str Area: str and String C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. finished-final-comment-period The final comment period is finished for this PR / Issue. Libs-Tracked Libs issues that are tracked on the team's project board. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants