| Age | Commit message (Collapse) | Author | Lines |
|
|
|
|
|
Make the following methods of `std::net::IpAddr` unstable const under the `const_ip` feature:
- `is_unspecified`
- `is_loopback`
- `is_global`
- `is_multicast`
Also adds a test for these methods in a const context.
Possible because these methods delegate to the inner `Ipv4Addr` or `Ipv6Addr`, which were made const, and the recent stabilization of const control flow.
Part of #76205
|
|
These tests are about the standard library, not the compiler itself, thus should live in `library`, see #76268.
|
|
Also doing fmt inplace as requested.
|