]> git.lizzy.rs Git - rust.git/commit
Stabilize `Ipv6Addr::to_ipv4_mapped`
authorTobias Bucher <tobiasbucher5991@gmail.com>
Tue, 10 May 2022 16:06:48 +0000 (18:06 +0200)
committerTobias Bucher <tobiasbucher5991@gmail.com>
Tue, 10 May 2022 16:06:48 +0000 (18:06 +0200)
commit839d97e27e23fd21405a999c3aae793596cd3baf
treeef3550bbec5b53447e52d486e094f289b0eb8877
parenteead58e75bb3a1d9f00b5a988704328fed6bb2c9
Stabilize `Ipv6Addr::to_ipv4_mapped`

CC #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.
library/std/src/net/ip.rs