From ac57e1b64711dfdc3bd2987636ecc021707df283 Mon Sep 17 00:00:00 2001 From: cad97 Date: Sun, 1 Dec 2019 16:09:07 -0500 Subject: [PATCH] Remove ord lang item --- src/libcore/cmp.rs | 1 - src/librustc/middle/lang_items.rs | 1 - 2 files changed, 2 deletions(-) diff --git a/src/libcore/cmp.rs b/src/libcore/cmp.rs index eea3dc39d345e..a5f355cd9a73e 100644 --- a/src/libcore/cmp.rs +++ b/src/libcore/cmp.rs @@ -534,7 +534,6 @@ impl Ord for Reverse { /// } /// } /// ``` -#[lang = "ord"] #[doc(alias = "<")] #[doc(alias = ">")] #[doc(alias = "<=")] diff --git a/src/librustc/middle/lang_items.rs b/src/librustc/middle/lang_items.rs index f6cd9b1c7ec0b..6f7a022eccfb8 100644 --- a/src/librustc/middle/lang_items.rs +++ b/src/librustc/middle/lang_items.rs @@ -358,7 +358,6 @@ language_item_table! { // 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; // A number of panic-related lang items. The `panic` item corresponds to // divide-by-zero and various panic cases with `match`. The