-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
std: Add net::IpAddr, destabilize lookup_host #23711
Conversation
r? @aturon |
r? @huonw (rust_highfive has picked a reviewer for you, use r? to override) |
This is great! |
Hm perhaps! I'm not 100% sure about it as it would silently be passing 0 for flowinfo and scope_id for IPv6 addresses. That being said we already do that elsewhere, so it's not necessarily the end of the world. |
This commits adds back an `IpAddr` enum matching the `SocketAddr` enum, but without a port. The enumeration is `#[unstable]`. The `lookup_host` function and iterator are also destabilized behind a new feature gate due to questions around the semantics of returning `SocketAddr` values.
⌛ Testing commit 8165bc1 with merge 2157454... |
💔 Test failed - auto-win-32-nopt-t |
@bors: retry On Wed, Mar 25, 2015 at 7:33 PM, bors [email protected] wrote:
|
This commits adds back an `IpAddr` enum matching the `SocketAddr` enum, but without a port. The enumeration is `#[unstable]`. The `lookup_host` function and iterator are also destabilized behind a new feature gate due to questions around the semantics of returning `SocketAddr` values.
This commits adds back an `IpAddr` enum matching the `SocketAddr` enum, but without a port. The enumeration is `#[unstable]`. The `lookup_host` function and iterator are also destabilized behind a new feature gate due to questions around the semantics of returning `SocketAddr` values.
This commits adds back an `IpAddr` enum matching the `SocketAddr` enum, but without a port. The enumeration is `#[unstable]`. The `lookup_host` function and iterator are also destabilized behind a new feature gate due to questions around the semantics of returning `SocketAddr` values.
This commits adds back an `IpAddr` enum matching the `SocketAddr` enum, but without a port. The enumeration is `#[unstable]`. The `lookup_host` function and iterator are also destabilized behind a new feature gate due to questions around the semantics of returning `SocketAddr` values.
1043: Uncomment to_std and from_std methods for IpAddr r=asomers a=rabbott99 These were commented out in 2b60633, apparently because `std::net::IpAddr` had been removed from the standard library. However, `IpAddr` has since been re-added to the standard library (rust-lang/rust#23711) and stabilized (rust-lang/rust#31438), so it seems there is no reason to keep them commented out. Co-authored-by: rabbott99 <[email protected]>
This commits adds back an
IpAddr
enum matching theSocketAddr
enum, butwithout a port. The enumeration is
#[unstable]
. Thelookup_host
function anditerator are also destabilized behind a new feature gate due to questions around
the semantics of returning
SocketAddr
values.