Merge #11292
11292: internal: Decrease PartialOrd and PartialEq trait methods completion relevance r=Veykril a=Veykril Fixes https://github.com/rust-analyzer/rust-analyzer/issues/10245 bors r+ Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
commit
9ee5b89e52
@ -940,6 +940,7 @@ fn has_ref(token: &SyntaxToken) -> bool {
|
||||
"deref",
|
||||
"div_assign",
|
||||
"div",
|
||||
"eq",
|
||||
"fn_mut",
|
||||
"fn_once",
|
||||
"fn",
|
||||
@ -949,6 +950,7 @@ fn has_ref(token: &SyntaxToken) -> bool {
|
||||
"mul",
|
||||
"neg",
|
||||
"not",
|
||||
"partial_ord",
|
||||
"rem_assign",
|
||||
"rem",
|
||||
"shl_assign",
|
||||
@ -956,7 +958,6 @@ fn has_ref(token: &SyntaxToken) -> bool {
|
||||
"shr_assign",
|
||||
"shr",
|
||||
"sub",
|
||||
"sub",
|
||||
];
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
|
@ -139,7 +139,7 @@ pub struct CompletionRelevance {
|
||||
/// }
|
||||
/// ```
|
||||
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,
|
||||
/// This is set in cases like these:
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user