]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Auto merge of #96906 - tbu-:pr_stabilize_to_ipv4_mapped, r=dtolnay
authorbors <bors@rust-lang.org>
Mon, 23 May 2022 00:10:07 +0000 (00:10 +0000)
committerbors <bors@rust-lang.org>
Mon, 23 May 2022 00:10:07 +0000 (00:10 +0000)
commitd12557407c7c34f1599cfba79666954291810859
tree49f4edb2243571bb4bcd018812b666081ee6f499
parent07e7b4346c48fe6d5c3026207e2d04c9a9f00fb8
parent813c5b01618f45a828383a67c4157de87a5fafb9
Auto merge of #96906 - tbu-:pr_stabilize_to_ipv4_mapped, r=dtolnay

Stabilize `Ipv6Addr::to_ipv4_mapped`

CC https://github.com/rust-lang/rust/issues/27709 (tracking issue for the `ip` feature which contains more
functions)

The function `Ipv6Addr::to_ipv4` is bad because it also returns an IPv4
address for the IPv6 loopback address `::1`. Stabilize
`Ipv6Addr::to_ipv4_mapped` so we can recommend that function instead.