Skip to content

Commit 698448c

Browse files
authored
Rollup merge of #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 0e338d7 + d49123d commit 698448c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/core/src/cmp.rs

+3-3
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)