-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Propose RFC for IpAddr common methods #1668
Conversation
Please include the exact signature of the proposed methods in the proposal... something like this:
|
@eefriedman Just added that. |
It looks like there are some other shared methods between the two types ( |
@sfackler I only mentioned the stable methods. If it would be better to list all of them, I can make that change. |
Yeah I figure we should add all of them - these new methods would land unstable anyway. |
@sfackler Done. Also, I noticed that Ipv4Addr has an |
I don't think I know enough about IPv6 to be able to answer that :) |
Neither do I. Unless an IPv6 expert shows up and says that those are the same, I think it's best to leave |
I'm actually surprised to see this RFC because I thought these methods already exists! I could have sworn we either had PR or an issue about this... @mathphreak this is actually the kind of addition where the libs team generally doesn't require an RFC. If you'd like to close this out and send a PR directly to rust-lang/rust proposing this change, I suspect we'd merge pretty quickly! |
@alexcrichton I wasn't quite sure if that was the case. I'll get right on that. I'll leave this open until I submit that PR. |
That took longer than expected, but rust-lang/rust#34694 is now live. |
Thanks @Ryman, I've closed that bug report. |
Add IpAddr common methods Per rust-lang/rfcs#1668 (comment) no RFC is needed here. The generated documentation for these methods is being weird. It shows a deprecation message referencing #27709 for each of them even though two of the referenced methods were stabilized as part of that issue. I don't know how best to address that.
Add IpAddr common methods Per rust-lang/rfcs#1668 (comment) no RFC is needed here. The generated documentation for these methods is being weird. It shows a deprecation message referencing #27709 for each of them even though two of the referenced methods were stabilized as part of that issue. I don't know how best to address that.
rendered