Commit e52f0a5
authored
Rollup merge of rust-lang#141744 - GrigorenkoPV:ip_from, r=Amanieu
Stabilize `ip_from`
Tracking issue: rust-lang#131360
Stabilizes and const-stabilizes the following APIs:
```rust
// core::net
impl Ipv4Addr {
pub const fn from_octets(octets: [u8; 4]) -> Ipv4Addr;
}
impl Ipv6Addr {
pub const fn from_octets(octets: [u8; 16]) -> Ipv6Addr;
pub const fn from_segments(segments: [u16; 8]) -> Ipv6Addr;
}
```
Closes rust-lang#131360
``@rustbot`` label +needs-fcp2 files changed
+6
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
629 | | - | |
630 | 629 | | |
631 | 630 | | |
632 | 631 | | |
633 | 632 | | |
634 | 633 | | |
635 | | - | |
| 634 | + | |
| 635 | + | |
636 | 636 | | |
637 | 637 | | |
638 | 638 | | |
| |||
1464 | 1464 | | |
1465 | 1465 | | |
1466 | 1466 | | |
1467 | | - | |
1468 | 1467 | | |
1469 | 1468 | | |
1470 | 1469 | | |
| |||
1479 | 1478 | | |
1480 | 1479 | | |
1481 | 1480 | | |
1482 | | - | |
| 1481 | + | |
| 1482 | + | |
1483 | 1483 | | |
1484 | 1484 | | |
1485 | 1485 | | |
| |||
2029 | 2029 | | |
2030 | 2030 | | |
2031 | 2031 | | |
2032 | | - | |
2033 | 2032 | | |
2034 | 2033 | | |
2035 | 2034 | | |
| |||
2044 | 2043 | | |
2045 | 2044 | | |
2046 | 2045 | | |
2047 | | - | |
| 2046 | + | |
| 2047 | + | |
2048 | 2048 | | |
2049 | 2049 | | |
2050 | 2050 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
| |||
0 commit comments