-
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
Tracking Issue for CStr::is_empty #102444
Comments
…mulacrum Add `is_empty()` method to `core::ffi::CStr`. ACP: rust-lang/libs-team#106 Tracking issue: rust-lang#102444
Add `is_empty()` method to `core::ffi::CStr`. ACP: rust-lang/libs-team#106 Tracking issue: rust-lang/rust#102444
Gentle ping for @rust-lang/libs-api -- would it be possible to start the FCP now? I don't think there's much API surface to review. |
Add `is_empty()` method to `core::ffi::CStr`. ACP: rust-lang/libs-team#106 Tracking issue: rust-lang/rust#102444
(pinging someone from the libs team, per instructions at https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html) @cuviper I'd like to start the FCP for this feature. The new method has been in nightly since v1.66, and it'd be nice to have it in stable. |
Timed out waiting for someone to start the FCP -- since there's not much to discuss regarding the API, I sent in PR #111043 to stabilize. |
@rfcbot fcp merge |
Team member @BurntSushi 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. |
@rust-lang/libs-api This issue is for stabilizing |
Thank you for starting the FCP!
My understanding from the Having a |
@jmillikin Yes that makes sense. I just mean that it is somewhat odd from an API perspective. Usually if there's an |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
But is this not also the case for |
is_empty just checks the first byte. No iteration necessary. That's why it's worth having in addition to len, as len == 0 would be linear time. |
Right, didn't actually think that through. |
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. This will be merged soon. |
Add `is_empty()` method to `core::ffi::CStr`. ACP: rust-lang/libs-team#106 Tracking issue: rust-lang/rust#102444
Add `is_empty()` method to `core::ffi::CStr`. ACP: rust-lang/libs-team#106 Tracking issue: rust-lang/rust#102444
Feature gate:
#![feature(cstr_is_empty)]
This is a tracking issue for adding an
is_empty()
method tocore::ffi::CStr
.ACP: rust-lang/libs-team#106
Public API
Steps / History
is_empty()
method tocore::ffi::CStr
. #102445cstr_is_empty
#111043Unresolved Questions
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩
The text was updated successfully, but these errors were encountered: