Rollup merge of #127070 - Sky9x:unit-const-param-ty, r=BoxyUwU

add () to the marker_impls macro for ConstParamTy

Seems to have escaped bootstrap
This commit is contained in:
Matthias Krüger 2024-06-28 22:04:19 +02:00 committed by GitHub
commit 6499b9c340
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -996,15 +996,12 @@ pub trait ConstParamTy: StructuralPartialEq + Eq {}
bool,
char,
str /* Technically requires `[u8]: ConstParamTy` */,
(),
{T: ConstParamTy, const N: usize} [T; N],
{T: ConstParamTy} [T],
{T: ?Sized + ConstParamTy} &T,
}
// FIXME(adt_const_params): Add to marker_impls call above once not in bootstrap
#[unstable(feature = "adt_const_params", issue = "95174")]
impl ConstParamTy for () {}
/// A common trait implemented by all function pointers.
#[unstable(
feature = "fn_ptr_trait",