diff options
| author | Tyler Mandry <tmandry@gmail.com> | 2020-09-01 18:24:41 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-01 18:24:41 -0700 |
| commit | 11ff32f9ecabb0806140d5e950b5c19698cc5efc (patch) | |
| tree | 492b8ce582793811f18a197409ff489c660aa6a2 /compiler/rustc_codegen_llvm/src | |
| parent | 17fa7339e95fec2bea7ea9c38f4af8c0f1b0d3f9 (diff) | |
| parent | 9afe97c932ee964ee35d196c902870ab572f2544 (diff) | |
| download | rust-11ff32f9ecabb0806140d5e950b5c19698cc5efc.tar.gz rust-11ff32f9ecabb0806140d5e950b5c19698cc5efc.zip | |
Rollup merge of #76206 - CDirkx:const-ipv6, r=ecstatic-morse
Make all methods of `std::net::Ipv6Addr` const Make the following methods of `std::net::Ipv6Addr` unstable const under the `const_ipv6` feature: - `segments` - `is_unspecified` - `is_loopback` - `is_global` (unstable) - `is_unique_local` - `is_unicast_link_local_strict` - `is_documentation` - `multicast_scope` - `is_multicast` - `to_ipv4_mapped` - `to_ipv4` This would make all methods of `Ipv6Addr` const. Changed the implementation of `is_unspecified` and `is_loopback` to use a `match` instead of `==`, all other methods did not require a change. All these methods are dependent on `segments`, the current implementation of which requires unstable `const_fn_transmute` ([PR#75085](https://github.com/rust-lang/rust/pull/75085)). Part of #76205
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
