update cfg(bootstrap)

This commit is contained in:
Pietro Albini 2025-05-10 10:51:12 +02:00
parent 2b7c13e778
commit 2ce08ca5d6
No known key found for this signature in database
GPG key ID: 3E06ABE80BAAF19C
73 changed files with 216 additions and 452 deletions

View file

@ -3675,7 +3675,7 @@ macro_rules! int_impl {
/// ```
#[stable(feature = "int_to_from_bytes", since = "1.32.0")]
#[rustc_const_stable(feature = "const_int_conversion", since = "1.44.0")]
#[cfg_attr(not(bootstrap), allow(unnecessary_transmutes))]
#[allow(unnecessary_transmutes)]
// SAFETY: const sound because integers are plain old datatypes so we can always
// transmute them to arrays of bytes
#[must_use = "this returns the result of the operation, \
@ -3779,7 +3779,7 @@ macro_rules! int_impl {
/// ```
#[stable(feature = "int_to_from_bytes", since = "1.32.0")]
#[rustc_const_stable(feature = "const_int_conversion", since = "1.44.0")]
#[cfg_attr(not(bootstrap), allow(unnecessary_transmutes))]
#[allow(unnecessary_transmutes)]
#[must_use]
// SAFETY: const sound because integers are plain old datatypes so we can always
// transmute to them