Skip to content
Permalink
Browse files

Note that `eq_trait` denotes `trait PartialEq`, not `Eq`, so you don'…

…t have to go to trait def to double-check.
  • Loading branch information...
pnkfelix committed Jul 8, 2019
1 parent 99abdfa commit 507ee7242a93590276907206786ed3aecefe0125
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/librustc/middle/lang_items.rs
@@ -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;

0 comments on commit 507ee72

Please sign in to comment.
You can’t perform that action at this time.