mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 04:53:34 +00:00
internal: Decrease PartialOrd and PartialEq trait methods completion relevance
This commit is contained in:
parent
fc331fe831
commit
2c36102722
2 changed files with 3 additions and 2 deletions
|
@ -940,6 +940,7 @@ const OP_TRAIT_LANG_NAMES: &[&str] = &[
|
||||||
"deref",
|
"deref",
|
||||||
"div_assign",
|
"div_assign",
|
||||||
"div",
|
"div",
|
||||||
|
"eq",
|
||||||
"fn_mut",
|
"fn_mut",
|
||||||
"fn_once",
|
"fn_once",
|
||||||
"fn",
|
"fn",
|
||||||
|
@ -949,6 +950,7 @@ const OP_TRAIT_LANG_NAMES: &[&str] = &[
|
||||||
"mul",
|
"mul",
|
||||||
"neg",
|
"neg",
|
||||||
"not",
|
"not",
|
||||||
|
"partial_ord",
|
||||||
"rem_assign",
|
"rem_assign",
|
||||||
"rem",
|
"rem",
|
||||||
"shl_assign",
|
"shl_assign",
|
||||||
|
@ -956,7 +958,6 @@ const OP_TRAIT_LANG_NAMES: &[&str] = &[
|
||||||
"shr_assign",
|
"shr_assign",
|
||||||
"shr",
|
"shr",
|
||||||
"sub",
|
"sub",
|
||||||
"sub",
|
|
||||||
];
|
];
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
|
|
|
@ -139,7 +139,7 @@ pub struct CompletionRelevance {
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
pub is_local: bool,
|
pub is_local: bool,
|
||||||
/// Set for method completions of the `core::ops` family.
|
/// Set for method completions of the `core::ops` and `core::cmp` family.
|
||||||
pub is_op_method: bool,
|
pub is_op_method: bool,
|
||||||
/// This is set in cases like these:
|
/// This is set in cases like these:
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in a new issue