Rollup merge of #66941 - CAD97:nord, r=Dylan-DPC
Remove `ord` lang item At this point it seems to be unused, and just `partial_ord` is used instead. This removes the unused lang item.
This commit is contained in:
commit
1303bf2f3c
@ -534,7 +534,6 @@ impl<T: Ord> Ord for Reverse<T> {
|
|||||||
/// }
|
/// }
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[lang = "ord"]
|
|
||||||
#[doc(alias = "<")]
|
#[doc(alias = "<")]
|
||||||
#[doc(alias = ">")]
|
#[doc(alias = ">")]
|
||||||
#[doc(alias = "<=")]
|
#[doc(alias = "<=")]
|
||||||
|
@ -358,7 +358,6 @@ language_item_table! {
|
|||||||
// Don't be fooled by the naming here: this lang item denotes `PartialEq`, not `Eq`.
|
// Don't be fooled by the naming here: this lang item denotes `PartialEq`, not `Eq`.
|
||||||
EqTraitLangItem, "eq", eq_trait, Target::Trait;
|
EqTraitLangItem, "eq", eq_trait, Target::Trait;
|
||||||
PartialOrdTraitLangItem, "partial_ord", partial_ord_trait, Target::Trait;
|
PartialOrdTraitLangItem, "partial_ord", partial_ord_trait, Target::Trait;
|
||||||
OrdTraitLangItem, "ord", ord_trait, Target::Trait;
|
|
||||||
|
|
||||||
// A number of panic-related lang items. The `panic` item corresponds to
|
// A number of panic-related lang items. The `panic` item corresponds to
|
||||||
// divide-by-zero and various panic cases with `match`. The
|
// divide-by-zero and various panic cases with `match`. The
|
||||||
|
Loading…
x
Reference in New Issue
Block a user