allow_internal_unstable(min_specialization) on newtype_index

This commit is contained in:
clubby789 2024-01-14 13:48:58 +00:00
parent 0529ccf341
commit eb63d3a49d
2 changed files with 22 additions and 13 deletions

View file

@ -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)
}