Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c317546

Browse files
committedMay 1, 2023
Fix StructuralEq impls for &T, [T] and [T; N]
(`StructuralEq` is shallow for some reason...)
1 parent 182eee2 commit c317546

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎library/core/src/marker.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,9 @@ marker_impls! {
277277
bool,
278278
char,
279279
str /* Technically requires `[u8]: StructuralEq` */,
280-
{T: StructuralEq, const N: usize} [T; N],
281-
{T: StructuralEq} [T],
282-
{T: ?Sized + StructuralEq} &T,
280+
{T, const N: usize} [T; N],
281+
{T} [T],
282+
{T: ?Sized} &T,
283283
}
284284

285285
/// Types whose values can be duplicated simply by copying bits.

0 commit comments

Comments
 (0)
Please sign in to comment.