about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-03-22 10:40:23 +0000
committerGitHub <noreply@github.com>2022-03-22 10:40:23 +0000
commit5d2cd18765abb681cacc2a57aebde13fa1dc32c1 (patch)
treedf82ab0c7753485d6e53e322ce0f3929b168c7ca /src/test/codegen/src-hash-algorithm
parent754d8687f4952e0dca50eca95aded4cf58a07fdf (diff)
parent3bdb68d80f583032e2d4da4ba34bdacc588b8095 (diff)
downloadrust-5d2cd18765abb681cacc2a57aebde13fa1dc32c1.tar.gz
rust-5d2cd18765abb681cacc2a57aebde13fa1dc32c1.zip
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 :slightly_smiling_face: 
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>
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions