Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit cf0dd88

Browse files
authored
Unrolled build for rust-lang#115888
Rollup merge of rust-lang#115888 - RalfJung:assert_receiver_is_total_eq, r=dtolnay fix a comment about assert_receiver_is_total_eq "a type implements #[deriving]" doesn't make any sense, so I assume they meant "implement `Eq`"? Also the attribute is called `derive`.
2 parents 46da927 + d49123d commit cf0dd88

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/core/src/cmp.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,9 @@ pub macro PartialEq($item:item) {
291291
#[stable(feature = "rust1", since = "1.0.0")]
292292
#[rustc_diagnostic_item = "Eq"]
293293
pub trait Eq: PartialEq<Self> {
294-
// this method is used solely by #[deriving] to assert
295-
// that every component of a type implements #[deriving]
296-
// itself, the current deriving infrastructure means doing this
294+
// this method is used solely by #[derive(Eq)] to assert
295+
// that every component of a type implements `Eq`
296+
// itself. The current deriving infrastructure means doing this
297297
// assertion without using a method on this trait is nearly
298298
// impossible.
299299
//

0 commit comments

Comments
 (0)