Skip to content

Commit

Permalink
Rollup merge of rust-lang#127070 - Sky9x:unit-const-param-ty, r=BoxyUwU
Browse files Browse the repository at this point in the history
add () to the marker_impls macro for ConstParamTy

Seems to have escaped bootstrap
  • Loading branch information
matthiaskrgr authored Jun 28, 2024
2 parents 663f3d5 + 2ed9c9f commit 0a2d8e4
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 0a2d8e4

Please sign in to comment.