Skip to content

Commit

Permalink
add () to the marker_impls macro for ConstParamTy
Browse files Browse the repository at this point in the history
seems to have escaped bootstrap
  • Loading branch information
Sky9x authored Jun 28, 2024
1 parent 6c38c60 commit 2ed9c9f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/src/marker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2ed9c9f

Please sign in to comment.