about summary refs log tree commit diff
path: root/compiler/rustc_index_macros/src/lib.rs
diff options
context:
space:
mode:
authorclubby789 <jamie@hill-daniel.co.uk>2024-01-14 13:48:58 +0000
committerclubby789 <jamie@hill-daniel.co.uk>2024-01-14 19:07:13 +0000
commiteb63d3a49d7681d6ede7dc1bcac7bb1125ff7132 (patch)
treef3c4b00d316fecb0e1238ff3530b7fe81359efcd /compiler/rustc_index_macros/src/lib.rs
parent0529ccf341516b098554ccc82a77553159316c2a (diff)
downloadrust-eb63d3a49d7681d6ede7dc1bcac7bb1125ff7132.tar.gz
rust-eb63d3a49d7681d6ede7dc1bcac7bb1125ff7132.zip
`allow_internal_unstable(min_specialization)` on `newtype_index`
Diffstat (limited to 'compiler/rustc_index_macros/src/lib.rs')
-rw-r--r--compiler/rustc_index_macros/src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_index_macros/src/lib.rs b/compiler/rustc_index_macros/src/lib.rs
index ac374a41eb6..b0bf4554ba8 100644
--- a/compiler/rustc_index_macros/src/lib.rs
+++ b/compiler/rustc_index_macros/src/lib.rs
@@ -36,6 +36,9 @@ mod newtype;
     feature = "nightly",
     allow_internal_unstable(step_trait, rustc_attrs, trusted_step, spec_option_partial_eq)
 )]
+// FIXME: Remove the above comment about `min_specialization` once bootstrap is bumped,
+// and the corresponding one on SpecOptionPartialEq
+#[cfg_attr(all(feature = "nightly", not(bootstrap)), allow_internal_unstable(min_specialization))]
 pub fn newtype_index(input: TokenStream) -> TokenStream {
     newtype::newtype(input)
 }