rust-analyzer/crates
bors[bot] 5d2cd18765
Merge #11780
11780: feat: Add type mismatch diagnostic r=flodiebold a=flodiebold

This adds a proper diagnostic for type mismatches, turning "Add reference here", "Missing Ok or Some" and "Remove this semicolon" into quickfixes for this single diagnostic.
The diagnostic is marked as experimental when it does not have one of these quickfixes, so it can be turned off with `rust-analyzer.diagnostics.enableExperimental` (or specifically with `rust-analyzer.diagnostics.disabled` of course, the ID is `type-mismatch`).
There will still be some false positives, but I think there shouldn't be too many especially when the Chalk fix lands, and it's still experimental anyway 🙂 
This also fixes type checking for `rustc_legacy_const_generics` just to avoid some errors in tests.

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
2022-03-22 10:40:23 +00:00
..
base_db Replace write! with direct calls 2022-03-21 10:43:36 +02:00
cfg Replace write! with direct calls 2022-03-21 10:43:36 +02:00
flycheck Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
hir Fix expect 2022-03-21 17:00:03 +01:00
hir_def Add new type-mismatch diagnostic 2022-03-21 16:46:01 +01:00
hir_expand Replace write! with direct calls 2022-03-21 10:43:36 +02:00
hir_ty Fix unreachable_pub 2022-03-21 18:54:20 +01:00
ide Replace write! with direct calls 2022-03-21 10:43:36 +02:00
ide_assists Merge #11690 2022-03-20 21:15:49 +00:00
ide_completion fix: Fix tuple- and record struct completions not working with existing braces 2022-03-21 22:01:26 +01:00
ide_db fix: Fix flyimport showing functions in pattern position 2022-03-21 19:41:39 +01:00
ide_diagnostics Clean up commented-out lines 2022-03-21 19:16:58 +01:00
ide_ssr Disable one of the failing SSR test cases 2022-03-09 02:08:44 +01:00
limit Use compare_exchange_weak in limit::Limit::check 2022-01-28 18:19:35 +03:00
mbe fix clippy::needless_borrow 2022-03-12 16:50:49 +01:00
parser refactor: Rename and move const_arg_path 2022-03-11 22:28:38 +00:00
paths Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
proc_macro_api Replace write! with direct calls 2022-03-21 10:43:36 +02:00
proc_macro_srv fix clippy::needless_borrow 2022-03-12 16:50:49 +01:00
proc_macro_test Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
profile Replace write! with direct calls 2022-03-21 10:43:36 +02:00
project_model Update project_model test outputs 2022-03-09 22:34:42 +01:00
rust-analyzer Merge #11771 2022-03-20 13:47:16 +00:00
sourcegen Bump xshell and fix dist 2022-03-17 08:53:33 +02:00
stdx Generate AnyHasDocComments node 2022-01-07 12:38:18 +01:00
syntax Merge #11690 2022-03-20 21:15:49 +00:00
test_utils feat: Implement lifetime elision hints 2022-03-18 18:11:16 +01:00
text_edit more clippy fixes: 2022-03-12 16:50:49 +01:00
toolchain Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
tt Track synthetic tokens, to be able to remove them again later 2022-02-08 18:13:18 +01:00
vfs Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
vfs-notify Bump deps 2022-03-17 19:24:37 +02:00