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:
Mazdak Farrokhzad 2019-12-03 11:07:07 +01:00 committed by GitHub
commit 1303bf2f3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 2 deletions

View File

@ -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 = "<=")]

View File

@ -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