diff options
| author | Sky <sky@sky9.dev> | 2024-06-27 22:37:29 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-27 22:37:29 -0400 |
| commit | 8bcd1dede6d5d9d1ad3f0d4e5332a3de607b37db (patch) | |
| tree | 39f69fb4fb74002d085e8a2fc71aa11f0f9bdfa4 | |
| parent | 9c3bc805dd9cb84019c124b9a50fdff1e62a7ec9 (diff) | |
| download | rust-8bcd1dede6d5d9d1ad3f0d4e5332a3de607b37db.tar.gz rust-8bcd1dede6d5d9d1ad3f0d4e5332a3de607b37db.zip | |
add () to the marker_impls macro for ConstParamTy
seems to have escaped bootstrap
| -rw-r--r-- | library/core/src/marker.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/library/core/src/marker.rs b/library/core/src/marker.rs index 0fedb8835d1..2db5a9ff3e3 100644 --- a/library/core/src/marker.rs +++ b/library/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", |
