diff options
| author | Trevor Gross <tmgross@umich.edu> | 2024-10-14 18:47:00 -0400 |
|---|---|---|
| committer | Trevor Gross <tmgross@umich.edu> | 2024-10-14 18:53:35 -0400 |
| commit | d6146a84962709628795c59a82ecdf99cf29264d (patch) | |
| tree | 2839ff0cff67402db98ef9c24116ef242a372383 /compiler/rustc_pattern_analysis/src/rustc.rs | |
| parent | 9322d183f45e0fd5a509820874cc5ff27744a479 (diff) | |
| download | rust-d6146a84962709628795c59a82ecdf99cf29264d.tar.gz rust-d6146a84962709628795c59a82ecdf99cf29264d.zip | |
Add a `const_sockaddr_setters` feature
Unstably add `const` to the `sockaddr_setters` methods. Included API:
// 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/rustc_pattern_analysis/src/rustc.rs')
0 files changed, 0 insertions, 0 deletions
