Skip to content

Commit

Permalink
Unrolled build for rust-lang#127070
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#127070 - Sky9x:unit-const-param-ty, r=BoxyUwU

add () to the marker_impls macro for ConstParamTy

Seems to have escaped bootstrap
  • Loading branch information
rust-timer authored Jun 29, 2024
2 parents 9ed2ab3 + 8bcd1de commit 24f8907
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions library/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 24f8907

Please sign in to comment.