rust-analyzer/crates
bors 642084093a Auto merge of #12634 - iDawer:match-check.witnesses, r=flodiebold
feat: Show witnesses of non-exhaustiveness in `missing-match-arm` diagnostic

Shamelessly copied from rustc. Thus reporting format is same.

This extends public api  `hir::diagnostics::MissingMatchArms` with `uncovered_patterns: String` field. It does not expose data for implementing a quick fix yet.

-----
Worth to note: current implementation does not give a comprehensive list of missing patterns. Also mentioned in [paper](http://moscova.inria.fr/~maranget/papers/warn/warn.pdf):

> One may think that algorithm I should make an additional effort to provide more
> non-matching values, by systematically computing recursive calls on specialized
> matrices when possible, and by returning a list of all pattern vectors returned by
> recursive calls. We can first observe that it is not possible in general to supply the
> users with all non-matching values, since the signature of integers is (potentially)
> infinite.
2022-06-30 14:51:58 +00:00
..
base-db Show proc-macro loading errors in unresolved-proc-macro diagnostics 2022-06-15 17:34:01 +02:00
cfg internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
flycheck Send a DidCancel event when restarting flychecks 2022-06-16 15:25:50 +02:00
hir Auto merge of #12634 - iDawer:match-check.witnesses, r=flodiebold 2022-06-30 14:51:58 +00:00
hir-def Auto merge of #12428 - lowr:experimental/destructuring-assignment, r=flodiebold 2022-06-30 09:14:12 +00:00
hir-expand fix: Report proc macro errors in expressions correctly as well 2022-06-28 10:43:22 +02:00
hir-ty Auto merge of #12634 - iDawer:match-check.witnesses, r=flodiebold 2022-06-30 14:51:58 +00:00
ide clarify comment and add autolink test case 2022-06-23 19:02:30 -04:00
ide-assists restrict the assist so that it only appears if the cursor is on the loop keyword 2022-06-11 07:11:56 +08:00
ide-completion Auto merge of #12643 - Veykril:macro-compl, r=Veykril 2022-06-27 12:40:46 +00:00
ide-db fix: inserted imports must come after a shebang if present 2022-06-15 19:42:43 +00:00
ide-diagnostics Auto merge of #12634 - iDawer:match-check.witnesses, r=flodiebold 2022-06-30 14:51:58 +00:00
ide-ssr internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
limit Use compare_exchange_weak in limit::Limit::check 2022-01-28 18:19:35 +03:00
mbe internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
parser internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
paths Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
proc-macro-api Show proc-macro loading errors in unresolved-proc-macro diagnostics 2022-06-15 17:34:01 +02:00
proc-macro-srv Auto merge of #12502 - Veykril:deps, r=Veykril 2022-06-10 19:51:04 +00:00
proc-macro-test delete a generated swap file 2022-05-01 10:48:58 +00:00
profile internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
project-model fix: Report proc macro errors in expressions correctly as well 2022-06-28 10:43:22 +02:00
rust-analyzer fix: Report proc macro errors in expressions correctly as well 2022-06-28 10:43:22 +02:00
sourcegen internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
stdx Polish 2022-06-15 18:35:48 +02:00
syntax internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
test-utils internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
text-edit style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
toolchain Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
tt internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
vfs internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
vfs-notify internal: Bump Dependencies 2022-06-10 17:30:02 +02:00