switch allow_internal_unstable const fns to rustc_allow_const_fn_unstable
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user