]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #66941 - CAD97:nord, r=Dylan-DPC
authorMazdak Farrokhzad <twingoow@gmail.com>
Tue, 3 Dec 2019 10:07:07 +0000 (11:07 +0100)
committerGitHub <noreply@github.com>
Tue, 3 Dec 2019 10:07:07 +0000 (11:07 +0100)
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.

src/libcore/cmp.rs
src/librustc/middle/lang_items.rs

index eea3dc39d345ea3ea6aa8c35b5aad8e2b5cd747b..a5f355cd9a73ec333c51d2deea214324f6bade77 100644 (file)
@@ -534,7 +534,6 @@ fn cmp(&self, other: &Reverse<T>) -> Ordering {
 ///     }
 /// }
 /// ```
-#[lang = "ord"]
 #[doc(alias = "<")]
 #[doc(alias = ">")]
 #[doc(alias = "<=")]
index f6cd9b1c7ec0bdac2b1a4321939c1c2f833285ad..6f7a022eccfb843538a55875ee37b93aca02be27 100644 (file)
@@ -358,7 +358,6 @@ pub fn collect<'tcx>(tcx: TyCtxt<'tcx>) -> LanguageItems {
     // 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