about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorChristiaan Dirkx <christiaan@dirkx.email>2020-09-07 17:43:48 +0200
committerChristiaan <christiaan@dirkx.email>2020-09-23 21:33:39 +0200
commit947536fca06e6dc6c3a3dd4ff1f66fc5080e9cbb (patch)
tree8321a3515bc1a161482d7f11bed659b01f49c085 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parenta6008fac97f81a3fc51668b0c7fa0e2e6f2a599b (diff)
downloadrust-947536fca06e6dc6c3a3dd4ff1f66fc5080e9cbb.tar.gz
rust-947536fca06e6dc6c3a3dd4ff1f66fc5080e9cbb.zip
Make delegation methods of `std::net::IpAddr` unstable const
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
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions