未验证 提交 1303bf2f 编写于 作者: M Mazdak Farrokhzad 提交者: GitHub

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.
...@@ -534,7 +534,6 @@ fn cmp(&self, other: &Reverse<T>) -> Ordering { ...@@ -534,7 +534,6 @@ fn cmp(&self, other: &Reverse<T>) -> Ordering {
/// } /// }
/// } /// }
/// ``` /// ```
#[lang = "ord"]
#[doc(alias = "<")] #[doc(alias = "<")]
#[doc(alias = ">")] #[doc(alias = ">")]
#[doc(alias = "<=")] #[doc(alias = "<=")]
......
...@@ -358,7 +358,6 @@ pub fn collect<'tcx>(tcx: TyCtxt<'tcx>) -> LanguageItems { ...@@ -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`. // 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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册