From 8bcd1dede6d5d9d1ad3f0d4e5332a3de607b37db Mon Sep 17 00:00:00 2001 From: Sky Date: Thu, 27 Jun 2024 22:37:29 -0400 Subject: [PATCH] add () to the marker_impls macro for ConstParamTy seems to have escaped bootstrap --- library/core/src/marker.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/library/core/src/marker.rs b/library/core/src/marker.rs index 0fedb8835d1ae..2db5a9ff3e3a8 100644 --- a/library/core/src/marker.rs +++ b/library/core/src/marker.rs @@ -996,15 +996,12 @@ marker_impls! { 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",