about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorJonas Schievink <jonasschievink@gmail.com>2020-09-25 02:29:30 +0200
committerGitHub <noreply@github.com>2020-09-25 02:29:30 +0200
commit88e36935701f1886ba416ec4ee77a53b02f38277 (patch)
tree3aceaf36523da6e6386b7083f9a9874a14f00ec5 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent15efed4e6fe7a6040cb8b04c03db5dd72c9531d9 (diff)
parent947536fca06e6dc6c3a3dd4ff1f66fc5080e9cbb (diff)
downloadrust-88e36935701f1886ba416ec4ee77a53b02f38277.tar.gz
rust-88e36935701f1886ba416ec4ee77a53b02f38277.zip
Rollup merge of #76304 - CDirkx:const-ip, r=ecstatic-morse
Make delegation methods of `std::net::IpAddr` unstably 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 ([PR#76205](https://github.com/rust-lang/rust/pull/76142) and [PR#76206](https://github.com/rust-lang/rust/pull/76206)), and the recent stabilization of const control flow.

Part of #76205

r? @ecstatic-morse
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions