diff options
| author | Florian Warzecha <liketechnik@disroot.org> | 2020-10-21 20:54:20 +0200 |
|---|---|---|
| committer | Florian Warzecha <liketechnik@disroot.org> | 2020-10-21 20:54:20 +0200 |
| commit | 05f4a9a42abbbdb64d3ec4ed0ae6883c10c66e3f (patch) | |
| tree | 06d63b7fdbcdced0725fcd426494a3c8be2b3904 /library/std/src/net | |
| parent | 3948b054dc8e598b83a194056dc4d3a0852dc79e (diff) | |
| download | rust-05f4a9a42abbbdb64d3ec4ed0ae6883c10c66e3f.tar.gz rust-05f4a9a42abbbdb64d3ec4ed0ae6883c10c66e3f.zip | |
switch allow_internal_unstable const fns to rustc_allow_const_fn_unstable
Diffstat (limited to 'library/std/src/net')
| -rw-r--r-- | library/std/src/net/ip.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/library/std/src/net/ip.rs b/library/std/src/net/ip.rs index 8089d7a8ba6..bb3ece4c273 100644 --- a/library/std/src/net/ip.rs +++ b/library/std/src/net/ip.rs @@ -1043,7 +1043,8 @@ impl Ipv6Addr { /// ``` #[stable(feature = "rust1", since = "1.0.0")] #[rustc_const_stable(feature = "const_ipv6", since = "1.32.0")] - #[allow_internal_unstable(const_fn_transmute)] + #[cfg_attr(not(bootstrap), rustc_allow_const_fn_unstable(const_fn_transmute))] + #[cfg_attr(bootstrap, allow_internal_unstable(const_fn_transmute))] pub const fn new(a: u16, b: u16, c: u16, d: u16, e: u16, f: u16, g: u16, h: u16) -> Ipv6Addr { let addr16 = [ a.to_be(), |
