-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Stabilize IpAddr::is_ipv4
and is_ipv6
as const
#76226
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
r? @KodrAus |
@rfcbot fcp merge This is another set of constifying for boolean-style match methods. This time for impl IpAddr {
pub const fn is_ipv4(&self) -> bool;
pub const fn is_ipv6(&self) -> bool;
} |
Team member @KodrAus 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. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
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. |
@bors r+ |
📌 Commit b5746fe0b1f03b6a6e2f827165e38f7fa23b5295 has been approved by |
Insta-stabilize the methods `is_ipv4` and `is_ipv6` of `IpAddr`. Possible because of the recent stabilization of const control flow. Also adds a test for these methods in a const context.
I bumped the version to 1.50.0 |
Good catch, thanks. |
📌 Commit 4613bc9 has been approved by |
☀️ Test successful - checks-actions |
Insta-stabilize the methods
is_ipv4
andis_ipv6
ofstd::net::IpAddr
as const, in the same way as PR#76198.Possible because of the recent stabilization of const control flow.
Part of #76225 and #76205.