rust-analyzer/crates
bors 653b69eb42 Auto merge of #17270 - davidbarsky:david/fix-completions-from-associated-types, r=Veykril
fix: ensure implied bounds from associated types are considered in autocomplete

closes: #16989

rust-analyzer needs to consider implied bounds from associated types in order to get all methods suggestions people expect. A pretty easy way to do that is to keep the `candidate_trait_id`'s receiver if it matches `TyFingerprint::Unnameable`.  When benchmarking this change, I didn't notice a meaningful difference in autocomplete latency.

(`TyFingerprint::Unnameable` corresponds to `TyKind::AssociatedType`, `TyKind::OpaqueType`, `TyKind::FnDef`, `TyKind::Closure`, `TyKind::Coroutine`, and `TyKind::CoroutineWitness`.)
2024-05-22 20:38:28 +00:00
..
base-db Push macro-parsing error calculation out of fundamental queries 2024-05-13 16:56:26 +02:00
cfg fix: Fix doc comment desugaring for proc-macros 2024-04-27 13:30:51 +02:00
flycheck Support flychecking for cargo scripts 2024-04-21 17:40:17 +02:00
hir fix: ensure implied bounds from associated types are considered in autocomplete 2024-05-22 16:16:20 -04:00
hir-def Auto merge of #17251 - roife:fix-issue-17057, r=Veykril 2024-05-22 20:11:24 +00:00
hir-expand Auto merge of #17221 - Veykril:lazier-validation, r=Veykril 2024-05-13 15:16:46 +00:00
hir-ty Simplify 2024-05-22 21:57:44 +02:00
ide Show fn traits in signature info for trait implementors 2024-05-18 16:22:59 +02:00
ide-assists internal: refactor prefer_no_std/prefer_prelude bools into a struct 2024-05-22 20:46:30 +02:00
ide-completion fix: ensure implied bounds from associated types are considered in autocomplete 2024-05-22 16:16:20 -04:00
ide-db fix: ensure implied bounds from associated types are considered in autocomplete 2024-05-22 16:16:20 -04:00
ide-diagnostics internal: refactor prefer_no_std/prefer_prelude bools into a struct 2024-05-22 20:46:30 +02:00
ide-ssr internal: refactor prefer_no_std/prefer_prelude bools into a struct 2024-05-22 20:46:30 +02:00
intern Fix new clippy lints 2024-04-01 17:55:56 +02:00
limit Simplify 2024-04-06 13:12:07 +02:00
load-cargo Hash file contents to verify whether file actually changed 2024-05-14 11:55:12 +02:00
mbe fix: Fix doc comment desugaring for proc-macros 2024-04-27 13:30:51 +02:00
parser Merge from rust-lang/rust 2024-05-19 11:20:26 +03:00
paths fix: Don't assert paths being utf8 when filtering them in the watcher 2024-03-22 08:04:50 +01:00
proc-macro-api fix: Tracing span names should match function names 2024-04-30 11:22:47 -07:00
proc-macro-srv Auto merge of #16257 - lnicola:rustc-check-cfg, r=Veykril 2024-04-18 12:13:06 +00:00
proc-macro-srv-cli Auto merge of #16257 - lnicola:rustc-check-cfg, r=Veykril 2024-04-18 12:13:06 +00:00
profile Fix typos 2024-05-15 18:55:27 +02:00
project-model fix: Don't emit --keep-going for custom build script commands 2024-05-14 21:26:37 +02:00
rust-analyzer internal: refactor prefer_no_std/prefer_prelude bools into a struct 2024-05-22 20:46:30 +02:00
salsa Fix typos 2024-05-15 18:55:27 +02:00
sourcegen Fix new clippy lints 2024-04-01 17:55:56 +02:00
span Cleanup 2024-04-18 11:00:22 +02:00
stdx Track hashes for file contents 2024-05-14 11:21:04 +02:00
syntax Allow hir::Param to refer to other entity params aside from functions 2024-05-18 12:35:55 +02:00
test-fixture fix: Correctly handle no_core/no_std for preludes 2024-05-02 10:50:28 +02:00
test-utils Peek for panic message in test output 2024-04-21 08:50:25 +02:00
text-edit Merge commit 'ddf105b646c6749a2de2451c9a499a354eec79c2' into sync-from-ra 2024-02-11 08:40:19 +02:00
toolchain internal: Enforce utf8 paths 2024-03-19 15:39:00 +01:00
tt internal: Remove span trait 2024-03-21 20:08:30 +01:00
vfs Hash file contents to verify whether file actually changed 2024-05-14 11:55:12 +02:00
vfs-notify discard when the path is invalid utf8 symbol. 2024-04-30 15:39:05 +08:00