Skip to content

Commit 84f1d73

Browse files
committed
Tidy got confused on rustc_const_unstable issues
1 parent e09b620 commit 84f1d73

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/libcore/intrinsics.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//! In order to make an intrinsic usable at compile-time, one needs to copy the implementation
1212
//! from https://github.com/rust-lang/miri/blob/master/src/shims/intrinsics.rs to
1313
//! `librustc_mir/interpret/intrinsics.rs` and add a
14-
//! `#[rustc_const_unstable(feature = "foo", issue = "01234")]` to the intrinsic.
14+
//! `#[rustc_const_unstable(feature = "foo2", issue = "01234")]` to the intrinsic.
1515
//!
1616
//! If an intrinsic is supposed to be used from a `const fn` with a `rustc_const_stable` attribute,
1717
//! the intrinsic's attribute must be `rustc_const_stable`, too. Such a change should not be done
@@ -1012,7 +1012,7 @@ extern "rust-intrinsic" {
10121012
///
10131013
/// The stabilized version of this intrinsic is
10141014
/// [`std::any::type_name`](../../std/any/fn.type_name.html)
1015-
#[rustc_const_unstable(feature = "const_type_name", issue = "none")]
1015+
#[rustc_const_unstable(feature = "const_type_name", issue = "63084")]
10161016
pub fn type_name<T: ?Sized>() -> &'static str;
10171017

10181018
/// Gets an identifier which is globally unique to the specified type. This
@@ -1021,7 +1021,7 @@ extern "rust-intrinsic" {
10211021
///
10221022
/// The stabilized version of this intrinsic is
10231023
/// [`std::any::TypeId::of`](../../std/any/struct.TypeId.html#method.of)
1024-
#[rustc_const_unstable(feature = "const_type_id", issue = "none")]
1024+
#[rustc_const_unstable(feature = "const_type_id", issue = "41875")]
10251025
pub fn type_id<T: ?Sized + 'static>() -> u64;
10261026

10271027
/// A guard for unsafe functions that cannot ever be executed if `T` is uninhabited:
@@ -1931,7 +1931,7 @@ extern "rust-intrinsic" {
19311931
pub fn nontemporal_store<T>(ptr: *mut T, val: T);
19321932

19331933
/// See documentation of `<*const T>::offset_from` for details.
1934-
#[rustc_const_unstable(feature = "const_ptr_offset_from", issue = "none")]
1934+
#[rustc_const_unstable(feature = "const_ptr_offset_from", issue = "41079")]
19351935
pub fn ptr_offset_from<T>(ptr: *const T, base: *const T) -> isize;
19361936

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

src/tools/tidy/src/features.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -444,10 +444,7 @@ fn map_lib_features(
444444
level: Status::Unstable,
445445
since: None,
446446
has_gate_test: false,
447-
// FIXME(#57563): #57563 is now used as a common tracking issue,
448-
// although we would like to have specific tracking issues for each
449-
// `rustc_const_unstable` in the future.
450-
tracking_issue: NonZeroU32::new(57563),
447+
tracking_issue: find_attr_val(line, "issue").and_then(handle_issue_none),
451448
};
452449
mf(Ok((feature_name, feature)), file, i + 1);
453450
continue;

0 commit comments

Comments
 (0)