about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2023-03-03 18:35:57 +0000
committerMaybe Waffle <waffle.lapkin@gmail.com>2023-04-27 15:59:07 +0000
commitbdb5502aa862e22cec579eb845df4bfe42612cfd (patch)
tree7692f0ece945e5e34f9374809f5f78217c14eb43
parent51355ad92b6a98a38e72f4e1c168abd494b59160 (diff)
downloadrust-bdb5502aa862e22cec579eb845df4bfe42612cfd.tar.gz
rust-bdb5502aa862e22cec579eb845df4bfe42612cfd.zip
Fix some marker impls
-rw-r--r--library/core/src/marker.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/core/src/marker.rs b/library/core/src/marker.rs
index 47b431e93b0..a1cad6e9992 100644
--- a/library/core/src/marker.rs
+++ b/library/core/src/marker.rs
@@ -277,9 +277,9 @@ marker_impls! {
         bool,
         char,
         str /* Technically requires `[u8]: StructuralEq` */,
-        {T: ConstParamTy, const N: usize} [T; N],
-        {T: ConstParamTy} [T],
-        {T: ConstParamTy} &T,
+        {T: StructuralEq, const N: usize} [T; N],
+        {T: StructuralEq} [T],
+        {T: ?Sized + StructuralEq} &T,
 }
 
 /// Types whose values can be duplicated simply by copying bits.
@@ -998,7 +998,7 @@ marker_impls! {
         str /* Technically requires `[u8]: ConstParamTy` */,
         {T: ConstParamTy, const N: usize} [T; N],
         {T: ConstParamTy} [T],
-        {T: ConstParamTy} &T,
+        {T: ?Sized + ConstParamTy} &T,
 }
 
 /// A common trait implemented by all function pointers.