about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/errors.rs
diff options
context:
space:
mode:
authorTrevor Gross <tmgross@umich.edu>2023-09-18 20:51:58 -0400
committerTrevor Gross <tmgross@umich.edu>2023-09-18 21:03:12 -0400
commit7381f9d6dc453148107e8d6fde9eb7454a0e47ba (patch)
tree480e322170194caafebf65cf90386d86eb831faf /compiler/rustc_interface/src/errors.rs
parent65ea825f4021eaf77f1b25139969712d65b435a4 (diff)
downloadrust-7381f9d6dc453148107e8d6fde9eb7454a0e47ba.tar.gz
rust-7381f9d6dc453148107e8d6fde9eb7454a0e47ba.zip
Stabilize `{IpAddr, Ipv6Addr}::to_canonical`
Make `IpAddr::to_canonical` and `IpV6Addr::to_canonical` stable, as well as
const stabilize `Ipv6Addr::to_ipv4_mapped`.

Newly stable API:

    impl IpAddr {
        // Now stable under `ip_to_canonical`
        const fn to_canonical(&self) -> IpAddr;
    }

    impl Ipv6Addr {
        // Now stable under `ip_to_canonical`
        const fn to_canonical(&self) -> IpAddr;

        // Already stable, this makes it const stable under
        // `const_ipv6_to_ipv4_mapped`
        const fn to_ipv4_mapped(&self) -> Option<Ipv4Addr>
    }

These stabilize a subset of the following tracking issues:

- https://github.com/rust-lang/rust/issues/27709
- https://github.com/rust-lang/rust/issues/76205
Diffstat (limited to 'compiler/rustc_interface/src/errors.rs')
0 files changed, 0 insertions, 0 deletions