-
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
Make IpvXAddr::new const fns and the well known addresses associated constants #52872
Conversation
r? @TimNN (rust_highfive has picked a reviewer for you, use r? to override) |
|
58982c8
to
312cdb4
Compare
I realize now we might want to use the same feature gate name for the associated constants and the constructors. I did not think about that before. But I'll wait for some feedback before doing anything about it. |
It should be noted that we can get away without unlocking We can also get the associated constants without making the constructors |
Thanks for your PR! This looks generally good, I'll take a detailed look tomorrow. Having an unstable const-constructor and using |
@bors r+ |
📌 Commit 312cdb4 has been approved by |
⌛ Testing commit 312cdb4 with merge 362961dac287cb17ecc0e79ed39dbd90092f82ce... |
💔 Test failed - status-travis |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
…TimNN Make IpvXAddr::new const fns and the well known addresses associated constants Implements/fixes rust-lang#44582 I just got a PR towards libc (rust-lang/libc#1044) merged. With the new feature added in that PR it is now possible to create `in6_addr` instances as consts. This enables us to finally make the constructors of the IP structs const fns and to make the localhost/unspecified addresses associated constants, as agreed in the above mentioned tracking issue. I also added a BROADCAST constant. Personally this is the well known address I tend to need the most often.
Make IpvXAddr::new const fns and the well known addresses associated constants Implements/fixes #44582 I just got a PR towards libc (rust-lang/libc#1044) merged. With the new feature added in that PR it is now possible to create `in6_addr` instances as consts. This enables us to finally make the constructors of the IP structs const fns and to make the localhost/unspecified addresses associated constants, as agreed in the above mentioned tracking issue. I also added a BROADCAST constant. Personally this is the well known address I tend to need the most often.
💔 Test failed - status-travis |
@TimNN There, I found it with the help of some Redox people on IRC. Apparently Redox does not use |
📌 Commit 6e7bbff6f66ab74a49b4f2aacb5d0073b0ebf1ee has been approved by |
🔒 Merge conflict This pull request and the master branch diverged in a way that cannot be automatically merged. Please rebase on top of the latest master branch, and let the reviewer approve again. How do I rebase?Assuming
You may also read Git Rebasing to Resolve Conflicts by Drew Blessing for a short tutorial. Please avoid the "Resolve conflicts" button on GitHub. It uses Sometimes step 4 will complete without asking for resolution. This is usually due to difference between how Error message
|
6e7bbff
to
c0041f4
Compare
Trying to get anything merged in |
@bors r+ |
📌 Commit c0041f4 has been approved by |
Make IpvXAddr::new const fns and the well known addresses associated constants Implements/fixes #44582 I just got a PR towards libc (rust-lang/libc#1044) merged. With the new feature added in that PR it is now possible to create `in6_addr` instances as consts. This enables us to finally make the constructors of the IP structs const fns and to make the localhost/unspecified addresses associated constants, as agreed in the above mentioned tracking issue. I also added a BROADCAST constant. Personally this is the well known address I tend to need the most often.
☀️ Test successful - status-appveyor, status-travis |
Implements/fixes #44582
I just got a PR towards libc (rust-lang/libc#1044) merged. With the new feature added in that PR it is now possible to create
in6_addr
instances as consts. This enables us to finally make the constructors of the IP structs const fns and to make the localhost/unspecified addresses associated constants, as agreed in the above mentioned tracking issue.I also added a BROADCAST constant. Personally this is the well known address I tend to need the most often.