feat: Deprioritize ops methods in completion

This commit is contained in:
Lukas Wirth 2022-01-06 13:31:36 +01:00
parent 41a0e95d61
commit ca0633c808
6 changed files with 106 additions and 30 deletions

View file

@ -309,26 +309,6 @@ pub mod known {
wrapping_mul,
wrapping_sub,
// known methods of lang items
add,
mul,
sub,
div,
rem,
shl,
shr,
bitxor,
bitor,
bitand,
add_assign,
mul_assign,
sub_assign,
div_assign,
rem_assign,
shl_assign,
shr_assign,
bitxor_assign,
bitor_assign,
bitand_assign,
eq,
ne,
ge,
@ -336,12 +316,38 @@ pub mod known {
le,
lt,
// lang items
not,
neg,
add_assign,
add,
bitand_assign,
bitand,
bitor_assign,
bitor,
bitxor_assign,
bitxor,
deref_mut,
deref,
div_assign,
div,
fn_mut,
fn_once,
future_trait,
owned_box,
index,
partial_ord
index_mut,
mul_assign,
mul,
neg,
not,
owned_box,
partial_ord,
r#fn,
rem_assign,
rem,
shl_assign,
shl,
shr_assign,
shr,
sub_assign,
sub,
);
// self/Self cannot be used as an identifier