From 2ed9c9f5b629704850ed524ac391c903bf89e93c 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 --- core/src/marker.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/src/marker.rs b/core/src/marker.rs index 0fedb8835d1ae..2db5a9ff3e3a8 100644 --- a/core/src/marker.rs +++ b/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",