@@ -43,30 +43,30 @@ declare_lint_pass!(StableSortPrimitive => [STABLE_SORT_PRIMITIVE]);
4343/// The three "kinds" of sorts
4444enum SortingKind {
4545 Vanilla ,
46- // The other kinds of lint are currently commented out because they
47- // can map distinct values to equal ones. If the key function is
48- // provably one-to-one, or if the Cmp function conserves equality,
49- // then they could be linted on, but I don't know if we can check
50- // for that.
46+ /* The other kinds of lint are currently commented out because they
47+ * can map distinct values to equal ones. If the key function is
48+ * provably one-to-one, or if the Cmp function conserves equality,
49+ * then they could be linted on, but I don't know if we can check
50+ * for that. */
5151
52- // ByKey,
53- // ByCmp,
52+ /* ByKey,
53+ * ByCmp, */
5454}
5555impl SortingKind {
5656 /// The name of the stable version of this kind of sort
5757 fn stable_name ( & self ) -> & str {
5858 match self {
5959 SortingKind :: Vanilla => "sort" ,
60- // SortingKind::ByKey => "sort_by_key",
61- // SortingKind::ByCmp => "sort_by",
60+ /* SortingKind::ByKey => "sort_by_key",
61+ * SortingKind::ByCmp => "sort_by", */
6262 }
6363 }
6464 /// The name of the unstable version of this kind of sort
6565 fn unstable_name ( & self ) -> & str {
6666 match self {
6767 SortingKind :: Vanilla => "sort_unstable" ,
68- // SortingKind::ByKey => "sort_unstable_by_key",
69- // SortingKind::ByCmp => "sort_unstable_by",
68+ /* SortingKind::ByKey => "sort_unstable_by_key",
69+ * SortingKind::ByCmp => "sort_unstable_by", */
7070 }
7171 }
7272 /// Takes the name of a function call and returns the kind of sort
0 commit comments