diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2021-06-03 02:11:14 -0400 |
|---|---|---|
| committer | Jacob Pratt <jacob@jhpratt.dev> | 2021-07-27 16:03:09 -0400 |
| commit | 36f02f352392f216d778808818d0e4ed56714f3c (patch) | |
| tree | 57f2073f87f48cf77d9fb20114a7a29f848c29ad /library/std/src | |
| parent | fd853c00e255559255885aadff9e93a1760c8728 (diff) | |
| download | rust-36f02f352392f216d778808818d0e4ed56714f3c.tar.gz rust-36f02f352392f216d778808818d0e4ed56714f3c.zip | |
Stabilize `const_fn_transmute`
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/net/ip.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/net/ip.rs b/library/std/src/net/ip.rs index 4b6d60d121e..88309875978 100644 --- a/library/std/src/net/ip.rs +++ b/library/std/src/net/ip.rs @@ -1087,7 +1087,7 @@ impl Ipv6Addr { /// /// let addr = Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff); /// ``` - #[rustc_allow_const_fn_unstable(const_fn_transmute)] + #[cfg_attr(bootstrap, rustc_allow_const_fn_unstable(const_fn_transmute))] #[rustc_const_stable(feature = "const_ipv6", since = "1.32.0")] #[stable(feature = "rust1", since = "1.0.0")] #[inline] @@ -1149,7 +1149,7 @@ impl Ipv6Addr { /// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff).segments(), /// [0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff]); /// ``` - #[rustc_allow_const_fn_unstable(const_fn_transmute)] + #[cfg_attr(bootstrap, rustc_allow_const_fn_unstable(const_fn_transmute))] #[rustc_const_stable(feature = "const_ipv6", since = "1.50.0")] #[stable(feature = "rust1", since = "1.0.0")] #[inline] |
