Skip to content

Commit

Permalink
Rollup merge of rust-lang#66941 - CAD97:nord, r=Dylan-DPC
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Centril authored Dec 3, 2019
2 parents a7e51b5 + ac57e1b commit 29e5b0a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/libcore/cmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,6 @@ impl<T: Ord> Ord for Reverse<T> {
/// }
/// }
/// ```
#[lang = "ord"]
#[doc(alias = "<")]
#[doc(alias = ">")]
#[doc(alias = "<=")]
Expand Down
1 change: 0 additions & 1 deletion src/librustc/middle/lang_items.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 29e5b0a

Please sign in to comment.