about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-10-26 21:47:35 +0000
committerbors <bors@rust-lang.org>2024-10-26 21:47:35 +0000
commit4dce9138d7318d061d0560b299c295aa7c240295 (patch)
tree10f637d1b5551c242e00052909633da77b4b60af /compiler
parent9b18a122f769859dc00d7b2c73b03dc6a1152983 (diff)
parentd6146a84962709628795c59a82ecdf99cf29264d (diff)
downloadrust-4dce9138d7318d061d0560b299c295aa7c240295.tar.gz
rust-4dce9138d7318d061d0560b299c295aa7c240295.zip
Auto merge of #131715 - tgross35:add-const_sockaddr_setters, r=Amanieu
Add an unstable `const_sockaddr_setters` feature

Unstably add `const` to the `sockaddr_setters` methods. Included API:

```rust
// core::net

impl SocketAddr {
    pub const fn set_ip(&mut self, new_ip: IpAddr);
    pub const fn set_port(&mut self, new_port: u16);
}

impl SocketAddrV4 {
    pub const fn set_ip(&mut self, new_ip: Ipv4Addr);
    pub const fn set_port(&mut self, new_port: u16);
}

impl SocketAddrV6 {
    pub const fn set_ip(&mut self, new_ip: Ipv6Addr);
    pub const fn set_port(&mut self, new_port: u16);
}
```

Tracking issue: <https://github.com/rust-lang/rust/issues/131714>
Diffstat (limited to 'compiler')
0 files changed, 0 insertions, 0 deletions