]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #86434 - CDirkx:ipv6-benchmarking, r=joshtriplett
authorManish Goregaokar <manishsmail@gmail.com>
Mon, 4 Oct 2021 06:13:15 +0000 (23:13 -0700)
committerGitHub <noreply@github.com>
Mon, 4 Oct 2021 06:13:15 +0000 (23:13 -0700)
commit22714ed4e3954b3d60b3650bad743ec4b3d64d27
tree7a226c67b9d0e7a3f5ba4c27e200085b2751d3d6
parente737694a4d66b01308b73d4559a35b43e414faf9
parentcbaccc12c700a2f4d4d22e2765c10b105497025e
Rollup merge of #86434 - CDirkx:ipv6-benchmarking, r=joshtriplett

Add `Ipv6Addr::is_benchmarking`

This PR adds the unstable method `Ipv6Addr::is_benchmarking`. This method is added for parity with `Ipv4Addr::is_benchmarking`, and I intend to use it in a future rework of `Ipv6Addr::is_global` (edit: #86634) to more accurately follow the [IANA Special Address Registry](https://www.iana.org/assignments/iana-ipv6-special-registry/iana-ipv6-special-registry.xhtml) (like is done in `Ipv4Addr::is_global`).

With `Ipv6Addr::is_benchmarking` and `Ipv4Addr::is_benchmarking` now both existing, `IpAddr::is_benchmarking` is also added.
library/std/src/net/ip.rs
library/std/src/net/ip/tests.rs