Commit dc31cef
committed
Auto merge of rust-lang#16268 - Veykril:method-trait-completion-limit, r=Veykril
Remove completion limit for trait importing method completions
Fixes rust-lang/rust-analyzer#16075
The < 3 char limit never applied to methods and the amount of completions generated due this is not absolutely massive as not all traits in a project are ever applicable so there is little reason to employ the limit here. Especially as it limits the number of traits we consider, not items (after my changes yesterday), and the number of traits is not the slowing factor here. Tested this in r-a where we have ~800 traits project wide and even when ~260 are applicable there was no noticable slow down from it.File tree
2 files changed
+9
-11
lines changed- crates
- ide-completion/src/tests
- ide-db/src/imports
2 files changed
+9
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
| 602 | + | |
602 | 603 | | |
603 | 604 | | |
604 | 605 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
503 | | - | |
| 503 | + | |
504 | 504 | | |
505 | 505 | | |
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
511 | 515 | | |
512 | 516 | | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
| 517 | + | |
517 | 518 | | |
| 519 | + | |
| 520 | + | |
518 | 521 | | |
519 | | - | |
520 | 522 | | |
521 | 523 | | |
522 | 524 | | |
| |||
531 | 533 | | |
532 | 534 | | |
533 | 535 | | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | 536 | | |
540 | 537 | | |
541 | 538 | | |
| |||
0 commit comments