Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2ed9c9f

Browse files
authoredJun 28, 2024
add () to the marker_impls macro for ConstParamTy
seems to have escaped bootstrap
1 parent 6c38c60 commit 2ed9c9f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed
 

‎core/src/marker.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -996,15 +996,12 @@ marker_impls! {
996996
bool,
997997
char,
998998
str /* Technically requires `[u8]: ConstParamTy` */,
999+
(),
9991000
{T: ConstParamTy, const N: usize} [T; N],
10001001
{T: ConstParamTy} [T],
10011002
{T: ?Sized + ConstParamTy} &T,
10021003
}
10031004

1004-
// FIXME(adt_const_params): Add to marker_impls call above once not in bootstrap
1005-
#[unstable(feature = "adt_const_params", issue = "95174")]
1006-
impl ConstParamTy for () {}
1007-
10081005
/// A common trait implemented by all function pointers.
10091006
#[unstable(
10101007
feature = "fn_ptr_trait",

0 commit comments

Comments
 (0)
Failed to load comments.