Skip to content

Commit 2c36102

Browse files
committed
internal: Decrease PartialOrd and PartialEq trait methods completion relevance
1 parent fc331fe commit 2c36102

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

crates/ide_completion/src/context.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,6 +940,7 @@ const OP_TRAIT_LANG_NAMES: &[&str] = &[
940940
"deref",
941941
"div_assign",
942942
"div",
943+
"eq",
943944
"fn_mut",
944945
"fn_once",
945946
"fn",
@@ -949,14 +950,14 @@ const OP_TRAIT_LANG_NAMES: &[&str] = &[
949950
"mul",
950951
"neg",
951952
"not",
953+
"partial_ord",
952954
"rem_assign",
953955
"rem",
954956
"shl_assign",
955957
"shl",
956958
"shr_assign",
957959
"shr",
958960
"sub",
959-
"sub",
960961
];
961962
#[cfg(test)]
962963
mod tests {

crates/ide_completion/src/item.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ pub struct CompletionRelevance {
139139
/// }
140140
/// ```
141141
pub is_local: bool,
142-
/// Set for method completions of the `core::ops` family.
142+
/// Set for method completions of the `core::ops` and `core::cmp` family.
143143
pub is_op_method: bool,
144144
/// This is set in cases like these:
145145
///

0 commit comments

Comments
 (0)