add () to the marker_impls macro for ConstParamTy

seems to have escaped bootstrap
This commit is contained in:
Sky 2024-06-27 22:37:29 -04:00 committed by GitHub
parent 9c3bc805dd
commit 8bcd1dede6
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",