Skip to content

Commit 4cf4fc6

Browse files
authored
Rollup merge of #67602 - xfix:use-issue-none-instead-of-0-in-intrinsics, r=Centril
Use issue = "none" instead of "0" in intrinsics `issue = "0"` was incorrectly used in 9ee16e1, the project is moving away from issue 0
2 parents 31fd966 + 43cb37e commit 4cf4fc6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/libcore/intrinsics.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ extern "rust-intrinsic" {
697697

698698
#[rustc_const_stable(feature = "const_min_align_of", since = "1.40.0")]
699699
pub fn min_align_of<T>() -> usize;
700-
#[rustc_const_unstable(feature = "const_pref_align_of", issue = "0")]
700+
#[rustc_const_unstable(feature = "const_pref_align_of", issue = "none")]
701701
pub fn pref_align_of<T>() -> usize;
702702

703703
/// The size of the referenced value in bytes.
@@ -708,13 +708,13 @@ extern "rust-intrinsic" {
708708
pub fn min_align_of_val<T: ?Sized>(_: &T) -> usize;
709709

710710
/// Gets a static string slice containing the name of a type.
711-
#[rustc_const_unstable(feature = "const_type_name", issue = "0")]
711+
#[rustc_const_unstable(feature = "const_type_name", issue = "none")]
712712
pub fn type_name<T: ?Sized>() -> &'static str;
713713

714714
/// Gets an identifier which is globally unique to the specified type. This
715715
/// function will return the same value for a type regardless of whichever
716716
/// crate it is invoked in.
717-
#[rustc_const_unstable(feature = "const_type_id", issue = "0")]
717+
#[rustc_const_unstable(feature = "const_type_id", issue = "none")]
718718
pub fn type_id<T: ?Sized + 'static>() -> u64;
719719

720720
/// A guard for unsafe functions that cannot ever be executed if `T` is uninhabited:
@@ -1222,7 +1222,7 @@ extern "rust-intrinsic" {
12221222
/// let num_leading = unsafe { ctlz_nonzero(x) };
12231223
/// assert_eq!(num_leading, 3);
12241224
/// ```
1225-
#[rustc_const_unstable(feature = "constctlz", issue = "0")]
1225+
#[rustc_const_unstable(feature = "constctlz", issue = "none")]
12261226
pub fn ctlz_nonzero<T>(x: T) -> T;
12271227

12281228
/// Returns the number of trailing unset bits (zeroes) in an integer type `T`.
@@ -1267,7 +1267,7 @@ extern "rust-intrinsic" {
12671267
/// let num_trailing = unsafe { cttz_nonzero(x) };
12681268
/// assert_eq!(num_trailing, 3);
12691269
/// ```
1270-
#[rustc_const_unstable(feature = "const_cttz", issue = "0")]
1270+
#[rustc_const_unstable(feature = "const_cttz", issue = "none")]
12711271
pub fn cttz_nonzero<T>(x: T) -> T;
12721272

12731273
/// Reverses the bytes in an integer type `T`.
@@ -1396,7 +1396,7 @@ extern "rust-intrinsic" {
13961396
pub fn nontemporal_store<T>(ptr: *mut T, val: T);
13971397

13981398
/// See documentation of `<*const T>::offset_from` for details.
1399-
#[rustc_const_unstable(feature = "const_ptr_offset_from", issue = "0")]
1399+
#[rustc_const_unstable(feature = "const_ptr_offset_from", issue = "none")]
14001400
pub fn ptr_offset_from<T>(ptr: *const T, base: *const T) -> isize;
14011401

14021402
/// Internal hook used by Miri to implement unwinding.

0 commit comments

Comments
 (0)