rust/crates
bors[bot] 8a084e6aca
Merge #10902
10902: Handle multiple cargo check quick fix spans r=Veykril a=brandondong

Resolves https://github.com/rust-analyzer/rust-analyzer/issues/10705.

**Cause:**
- For a cargo check diagnostic with multiple spans, only a single quick fix action would be created at the location of `spans[0]`. Additionally, the hover window details would only show the location of `spans[0]` next to the message.

**Fix:**
- Allow cargo check quick fix actions to be triggerable from multiple selection ranges. Specifically, if the selection intersects with any of the replacement spans, the quick fix action is shown.
- No change in behavior for the hover window details. It's pretty minor and I think showing multiple locations next to the message may be more confusing anyways.

Co-authored-by: Brandon <brandondong604@hotmail.com>
2021-12-05 10:52:54 +00:00
..
base_db Merge #10872 2021-11-30 14:07:39 +00:00
cfg
flycheck Don't discard flycheck error messages 2021-11-27 18:57:51 +01:00
hir Improve hover message for inert attributes 2021-12-03 20:28:15 +01:00
hir_def Merge #10921 2021-12-03 23:52:28 +00:00
hir_expand minor: Update list of safe intrinsics 2021-12-04 00:51:50 +01:00
hir_ty Bump chalk 2021-12-04 15:08:43 +02:00
ide Merge #10930 2021-12-04 18:08:11 +00:00
ide_assists fix: defer condition construction 2021-12-04 04:50:06 +09:00
ide_completion Introduce SymbolKind::Derive 2021-12-04 18:18:09 +01:00
ide_db Introduce SymbolKind::Derive 2021-12-04 18:18:09 +01:00
ide_diagnostics minor: Shorten spans of mismatched_arg_count diag 2021-12-04 00:27:29 +01:00
ide_ssr
limit
mbe Fix mbe::Shift::new not accounting for non-ident token ids 2021-11-22 18:00:32 +01:00
parser
paths
proc_macro_api
proc_macro_srv
proc_macro_test
profile Bump countme 2021-12-04 15:14:31 +02:00
project_model Merge #10841 2021-11-29 11:13:39 +00:00
rust-analyzer Merge #10902 2021-12-05 10:52:54 +00:00
sourcegen
stdx Bump miow 2021-12-04 15:17:30 +02:00
syntax Remove possible multiline details in completions 2021-11-24 16:08:11 +01:00
test_utils
text_edit
toolchain
tt
vfs
vfs-notify