Auto merge of #50435 - cuviper:rm-lookup_host, r=sfackler

Remove the deprecated std::net::{lookup_host,LookupHost}

These are unstable, and were deprecated by #47510, since Rust 1.25.  The
internal `sys` implementations are still kept to support the call in the
common `resolve_socket_addr`.
This commit is contained in:
bors 2018-05-04 12:12:05 +00:00
commit 0bfe3072cb
3 changed files with 3 additions and 72 deletions

View file

@ -11,9 +11,7 @@
// ignore-cloudabi networking not available
// ignore-wasm32-bare networking not available
#![feature(lookup_host)]
use std::net::lookup_host;
use std::net::ToSocketAddrs;
fn is_sync<T>(_: T) where T: Sync {}
fn is_send<T>(_: T) where T: Send {}
@ -30,5 +28,5 @@ macro_rules! all_sync_send {
}
fn main() {
all_sync_send!(lookup_host("localhost").unwrap(), next);
all_sync_send!("localhost:80".to_socket_addrs().unwrap(), next);
}