Note that eq_trait denotes trait PartialEq, not Eq, so you don't have to go to trait def to double-check.

This commit is contained in:
Felix S. Klock II 2019-07-08 10:58:58 +02:00
parent 99abdfa0b5
commit 507ee7242a

View file

@ -326,6 +326,7 @@ language_item_table! {
UnpinTraitLangItem, "unpin", unpin_trait, Target::Trait;
PinTypeLangItem, "pin", pin_type, Target::Struct;
// Don't be fooled by the naming here: this lang item denotes `PartialEq`, not `Eq`.
EqTraitLangItem, "eq", eq_trait, Target::Trait;
PartialOrdTraitLangItem, "partial_ord", partial_ord_trait, Target::Trait;
OrdTraitLangItem, "ord", ord_trait, Target::Trait;